summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLingfeng Yang <lfy@google.com>2016-05-27 16:48:20 +0000
committerandroid-build-merger <android-build-merger@google.com>2016-05-27 16:48:20 +0000
commit745eb6090644ea5a79dcc1c4b835c253bf673ce0 (patch)
treeb7b18b5a1f70b4121326e15b8815bf3ec7a07b42
parent8a6571bd3a03fb2fc328b6f632052debca9f0db0 (diff)
parent03031766dd3978edbb4b6e6d39139d215036921c (diff)
downloadgoldfish-745eb6090644ea5a79dcc1c4b835c253bf673ce0.tar.gz
Don\'t optimize out rcUpdateColorBuffer
am: 03031766dd * commit '03031766dd3978edbb4b6e6d39139d215036921c': Don't optimize out rcUpdateColorBuffer Change-Id: Ia2771b7f6e88f7c319d700069061d64cbe4aa0a7
-rw-r--r--opengl/system/gralloc/gralloc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/opengl/system/gralloc/gralloc.cpp b/opengl/system/gralloc/gralloc.cpp
index f597d2bd..f8f92922 100644
--- a/opengl/system/gralloc/gralloc.cpp
+++ b/opengl/system/gralloc/gralloc.cpp
@@ -732,7 +732,7 @@ static int gralloc_unlock(gralloc_module_t const* module,
// if buffer was locked for s/w write, we need to update the host with
// the updated data
//
- if (cb->lockedWidth > 0 && cb->lockedHeight > 0 && cb->hostHandle) {
+ if (cb->hostHandle) {
// Make sure we have host connection
DEFINE_AND_VALIDATE_HOST_CONNECTION;