diff options
author | John Reck <jreck@google.com> | 2016-04-18 11:17:52 -0700 |
---|---|---|
committer | John Reck <jreck@google.com> | 2016-04-18 11:29:35 -0700 |
commit | 9a17da8125c36c82ba73e7f4b3ed80b9c633767f (patch) | |
tree | ff3412c792110b31f7a0a31611cef862a32400a1 /libs/hwui/renderthread/DrawFrameTask.h | |
parent | 7d0b8d792886b2ed5ff89ac6c2723fba9d44c7d4 (diff) |
Don't reuse LOST_SURFACE for stopped
Fixes: 28218991
If a draw() happens while we are stopped, don't report
that the surface is lost because this will prompt
a tear-down of the surface which isn't desired. It can
result in ViewRootImpl ending up in an internally-bad state
in this case.
Change-Id: If3eb8c6bc8702299e5330bc0917952624dce3b7e
Diffstat (limited to 'libs/hwui/renderthread/DrawFrameTask.h')
-rw-r--r-- | libs/hwui/renderthread/DrawFrameTask.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/libs/hwui/renderthread/DrawFrameTask.h b/libs/hwui/renderthread/DrawFrameTask.h index 9bba0656b822..c02d376098a6 100644 --- a/libs/hwui/renderthread/DrawFrameTask.h +++ b/libs/hwui/renderthread/DrawFrameTask.h @@ -40,11 +40,14 @@ namespace renderthread { class CanvasContext; class RenderThread; -enum SyncResult { - kSync_OK = 0, - kSync_UIRedrawRequired = 1 << 0, - kSync_LostSurfaceRewardIfFound = 1 << 1, +namespace SyncResult { +enum { + OK = 0, + UIRedrawRequired = 1 << 0, + LostSurfaceRewardIfFound = 1 << 1, + ContextIsStopped = 1 << 2, }; +} /* * This is a special Super Task. It is re-used multiple times by RenderProxy, |