Skip to content

Commit 65924a3

Browse files
committed
fix functor flag parsing, tweak process delay
Change-Id: I0a679cc33f92ff6fd2e33db9ad58b52622def012
1 parent 7c8fd15 commit 65924a3

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
@@ -517,7 +517,7 @@ static abstract class GlRenderer extends HardwareRenderer {
517517
static final int SURFACE_STATE_SUCCESS = 1;
518518
static final int SURFACE_STATE_UPDATED = 2;
519519

520-
static final int FUNCTOR_PROCESS_DELAY = 2;
520+
static final int FUNCTOR_PROCESS_DELAY = 4;
521521

522522
static EGL10 sEgl;
523523
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)