commit | 500f22d794d50eb8f7204e1ade47ea9aa4ccf5da | [log] [tgz] |
---|---|---|
author | Louis Huemiller <lhuemill@google.com> | Thu Dec 02 10:31:19 2010 -0800 |
committer | Android (Google) Code Review <android-gerrit@google.com> | Thu Dec 02 10:31:19 2010 -0800 |
tree | d0bc6f70bc48a6d18f0ca954a3b4a5dcc2e830b6 | |
parent | a3a1ec93c6d5c2d6ed00a2daaed7ff0216bd23a3 [diff] | |
parent | 040481419473cb9913b632cd8973b1d7065f9c9c [diff] |
Merge "Remove const_cast to layer handle"
diff --git a/services/surfaceflinger/Layer.cpp b/services/surfaceflinger/Layer.cpp index 7be58c6..145618e 100644 --- a/services/surfaceflinger/Layer.cpp +++ b/services/surfaceflinger/Layer.cpp
@@ -231,7 +231,7 @@ hwcl->handle = NULL; return; } - hwcl->handle = const_cast<native_handle_t*>(buffer->handle); + hwcl->handle = buffer->handle; // TODO: set the crop value properly hwcl->sourceCrop.left = 0; hwcl->sourceCrop.top = 0;