summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xservices/camera/libcameraservice/CameraHardwareInterface.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/services/camera/libcameraservice/CameraHardwareInterface.h b/services/camera/libcameraservice/CameraHardwareInterface.h
index a3400919e5..356bc303cf 100755
--- a/services/camera/libcameraservice/CameraHardwareInterface.h
+++ b/services/camera/libcameraservice/CameraHardwareInterface.h
@@ -664,6 +664,9 @@ private:
static int __set_usage(struct preview_stream_ops* w, int usage)
{
+#ifdef SEMC_ICS_CAMERA_BLOB
+ usage |= GRALLOC_USAGE_PRIVATE_0;
+#endif
ANativeWindow *a = anw(w);
return native_window_set_usage(a, usage);
}