Remove const_cast to layer handle
Change-Id: Ica1e089cb56b5f9f46ab87abf735ffe7237fc926
This commit is contained in:
parent
061b61046d
commit
0404814194
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue