commit | 040481419473cb9913b632cd8973b1d7065f9c9c | [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 | d0bc6f70bc48a6d18f0ca954a3b4a5dcc2e830b6 | |
parent | 061b61046d3d01060e15b95ff0f040d348001bda [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;