Remove const_cast to layer handle

Change-Id: Ica1e089cb56b5f9f46ab87abf735ffe7237fc926
This commit is contained in:
Louis Huemiller 2010-12-01 12:29:36 -08:00
parent 061b61046d
commit 0404814194
1 changed files with 1 additions and 1 deletions

View File

@ -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;