diff options
author | Louis Huemiller <lhuemill@google.com> | 2010-12-01 12:29:36 -0800 |
---|---|---|
committer | Louis Huemiller <lhuemill@google.com> | 2010-12-01 12:29:36 -0800 |
commit | 2dd198b9f85646ce2872d151c8685757c747f150 (patch) | |
tree | 2c4adeedf529091e36d76ba6291407bfe6e11862 /services | |
parent | 12df6f72a6b2bb17253ec8bfbbfb7ebf80cecc33 (diff) | |
download | frameworks_base-2dd198b9f85646ce2872d151c8685757c747f150.zip frameworks_base-2dd198b9f85646ce2872d151c8685757c747f150.tar.gz frameworks_base-2dd198b9f85646ce2872d151c8685757c747f150.tar.bz2 |
Remove const_cast to layer handle
Change-Id: Ica1e089cb56b5f9f46ab87abf735ffe7237fc926
Diffstat (limited to 'services')
-rw-r--r-- | services/surfaceflinger/Layer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ void Layer::setPerFrameData(hwc_layer_t* hwcl) { 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; |