Skip to content

Commit 3d4d215

Browse files
ChrisCraikAndroid (Google) Code Review
authored andcommitted
Merge "fix functor flag parsing, tweak process delay"
2 parents 5713c9c + 65924a3 commit 3d4d215

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

core/java/android/view/HardwareRenderer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@ static abstract class GlRenderer extends HardwareRenderer {
526526
static final int SURFACE_STATE_SUCCESS = 1;
527527
static final int SURFACE_STATE_UPDATED = 2;
528528

529-
static final int FUNCTOR_PROCESS_DELAY = 2;
529+
static final int FUNCTOR_PROCESS_DELAY = 4;
530530

531531
static EGL10 sEgl;
532532
static EGLDisplay sEglDisplay;

libs/hwui/OpenGLRenderer.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ status_t OpenGLRenderer::invokeFunctors(Rect& dirty) {
260260
Rect localDirty(info.dirtyLeft, info.dirtyTop, info.dirtyRight, info.dirtyBottom);
261261
dirty.unionWith(localDirty);
262262

263-
if (result == DrawGlInfo::kStatusInvoke) {
263+
if (result & DrawGlInfo::kStatusInvoke) {
264264
mFunctors.push(f);
265265
}
266266
}
@@ -300,7 +300,7 @@ status_t OpenGLRenderer::callDrawGLFunction(Functor* functor, Rect& dirty) {
300300
Rect localDirty(info.dirtyLeft, info.dirtyTop, info.dirtyRight, info.dirtyBottom);
301301
dirty.unionWith(localDirty);
302302

303-
if (result == DrawGlInfo::kStatusInvoke) {
303+
if (result & DrawGlInfo::kStatusInvoke) {
304304
mFunctors.push(functor);
305305
}
306306
}

0 commit comments

Comments
 (0)