Skip to content

Commit

Permalink
replace GRALLOC_USAGE_SW_READ_OFTEN by GRALLOC_USAGE_HW_RENDER
Browse files Browse the repository at this point in the history
  • Loading branch information
Quarx2k committed Jul 6, 2012
1 parent bc5b566 commit 9fcd425
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libcamera/cameraHal.cpp
Expand Up @@ -458,7 +458,7 @@ static int camera_set_preview_window(struct camera_device * device, struct previ
LOGD("%s: preview format %s", __FUNCTION__, previewFormat);
lcdev->previewFormat = Overlay::getFormatFromString(previewFormat);

if (window->set_usage(window, GRALLOC_USAGE_SW_WRITE_OFTEN | GRALLOC_USAGE_SW_READ_OFTEN)) {
if (window->set_usage(window, GRALLOC_USAGE_SW_WRITE_OFTEN | GRALLOC_USAGE_HW_RENDER)) {
LOGE("%s: could not set usage on gralloc buffer", __FUNCTION__);
return -1;
}
Expand Down

0 comments on commit 9fcd425

Please sign in to comment.