• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#objective-cqt誰得cocoawindowspythonrubyphpgameguibathyscaphec翻訳omegat計画中(planning stage)frameworktwittertestdombtronvb.netdirectxarduinopreviewerゲームエンジン

external/gbm_gralloc


Commit MetaInfo

Revisionf4a52c35ececdb13f1ac806daccb413501a462ea (tree)
Time2016-04-23 02:54:14
AuthorRob Herring <robh@kern...>
CommiterRob Herring

Log Message

Clean-up of unused code

Remove some unused code throwing warnings.

Signed-off-by: Rob Herring <robh@kernel.org>

Change Summary

Incremental Difference

--- a/gralloc_gbm.cpp
+++ b/gralloc_gbm.cpp
@@ -115,7 +115,6 @@ static struct gralloc_gbm_bo_t *gbm_import(struct gbm_device *gbm,
115115 struct gralloc_gbm_bo_t *buf;
116116 struct gbm_import_fd_data data;
117117 int format = get_gbm_format(handle->format);
118- int usage = get_pipe_bind(handle->usage);
119118
120119 if (handle->prime_fd < 0)
121120 return NULL;
@@ -435,13 +434,6 @@ struct gbm_bo *gralloc_gbm_bo_to_gbm_bo(struct gralloc_gbm_bo_t *_bo)
435434 }
436435
437436 /*
438- * Query YUV component offsets for a buffer handle
439- */
440-void gralloc_gbm_resolve_format(buffer_handle_t _handle,
441- uint32_t *pitches, uint32_t *offsets, uint32_t *handles)
442-{}
443-
444-/*
445437 * Lock a bo. XXX thread-safety?
446438 */
447439 int gralloc_gbm_bo_lock(struct gralloc_gbm_bo_t *bo,
--- a/gralloc_gbm_priv.h
+++ b/gralloc_gbm_priv.h
@@ -45,9 +45,6 @@ void gralloc_gbm_bo_decref(struct gralloc_gbm_bo_t *bo);
4545 struct gralloc_gbm_bo_t *gralloc_gbm_bo_from_handle(buffer_handle_t handle);
4646 buffer_handle_t gralloc_gbm_bo_get_handle(struct gralloc_gbm_bo_t *bo);
4747 int gralloc_gbm_get_gem_handle(buffer_handle_t handle);
48-void gralloc_gbm_resolve_format(buffer_handle_t _handle, uint32_t *pitches, uint32_t *offsets, uint32_t *handles);
49-//unsigned int planes_for_format(struct gralloc_gbm_t *gbm, int hal_format);
50-
5148 struct gbm_bo *gralloc_gbm_bo_to_gbm_bo(struct gralloc_gbm_bo_t *_bo);
5249
5350 int gralloc_gbm_bo_lock(struct gralloc_gbm_bo_t *bo, int x, int y, int w, int h, int enable_write, void **addr);