commit | 2dd198b9f85646ce2872d151c8685757c747f150 | [log] [tgz] |
---|---|---|
author | Louis Huemiller <lhuemill@google.com> | Wed Dec 01 12:29:36 2010 -0800 |
committer | Louis Huemiller <lhuemill@google.com> | Wed Dec 01 12:29:36 2010 -0800 |
tree | 2c4adeedf529091e36d76ba6291407bfe6e11862 | |
parent | 12df6f72a6b2bb17253ec8bfbbfb7ebf80cecc33 [diff] [blame] |
Remove const_cast to layer handle Change-Id: Ica1e089cb56b5f9f46ab87abf735ffe7237fc926
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;