summaryrefslogtreecommitdiff
path: root/libs/hwui/renderthread/DrawFrameTask.h
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2014-11-07 11:02:07 -0800
committerJohn Reck <jreck@google.com>2014-11-07 11:02:07 -0800
commitaa95a88327d9a3ac8a4a00b065b78ac0f28b3a19 (patch)
tree1e2e65ec4a7d28ea3b0a253be0d31eaf397dd005 /libs/hwui/renderthread/DrawFrameTask.h
parentb9744c1c1f5e8cc936da7f1832665f77ad5bb18f (diff)
Have an actual fallback if the surface is lost
Bug: 17516789 This will force a relayout/reinitialize pass if the Surface is lost mid-render instead of crashing on the next frame Change-Id: If08bfa16f740728fa7c05904fa11e26f07b81e2e
Diffstat (limited to 'libs/hwui/renderthread/DrawFrameTask.h')
-rw-r--r--libs/hwui/renderthread/DrawFrameTask.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/hwui/renderthread/DrawFrameTask.h b/libs/hwui/renderthread/DrawFrameTask.h
index 243cc5d1e3cc..28f6cb26fb57 100644
--- a/libs/hwui/renderthread/DrawFrameTask.h
+++ b/libs/hwui/renderthread/DrawFrameTask.h
@@ -42,6 +42,7 @@ class RenderThread;
enum SyncResult {
kSync_OK = 0,
kSync_UIRedrawRequired = 1 << 0,
+ kSync_LostSurfaceRewardIfFound = 1 << 1,
};
/*