summaryrefslogtreecommitdiff
path: root/libs/hwui/renderthread/DrawFrameTask.h
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2014-05-02 18:21:16 -0700
committerJohn Reck <jreck@google.com>2014-05-05 12:35:30 -0700
commitf9be77940e365036fecd8cc0e491e8545c34e79b (patch)
tree1f15905e518d09309bb35b863d7697deb2975f78 /libs/hwui/renderthread/DrawFrameTask.h
parent5d039c458c67e8c08334e597a6a8781eda6aab13 (diff)
Make RenderNodeAnimator and WebView play nice
Change-Id: Ifaefcf510b2d377663fc86f60608d6ec9be8329a
Diffstat (limited to 'libs/hwui/renderthread/DrawFrameTask.h')
-rw-r--r--libs/hwui/renderthread/DrawFrameTask.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/libs/hwui/renderthread/DrawFrameTask.h b/libs/hwui/renderthread/DrawFrameTask.h
index ea009004a797..b9307e194d4e 100644
--- a/libs/hwui/renderthread/DrawFrameTask.h
+++ b/libs/hwui/renderthread/DrawFrameTask.h
@@ -37,6 +37,11 @@ namespace renderthread {
class CanvasContext;
class RenderThread;
+enum SyncResult {
+ kSync_OK = 0,
+ kSync_UIRedrawRequired = 1 << 1,
+};
+
/*
* This is a special Super Task. It is re-used multiple times by RenderProxy,
* and contains state (such as layer updaters & new DisplayListDatas) that is
@@ -54,7 +59,7 @@ public:
void removeLayer(DeferredLayerUpdater* layer);
void setDirty(int left, int top, int right, int bottom);
- void drawFrame(nsecs_t frameTimeNanos);
+ int drawFrame(nsecs_t frameTimeNanos);
virtual void run();
@@ -75,6 +80,8 @@ private:
Rect mDirty;
nsecs_t mFrameTimeNanos;
+ int mSyncResult;
+
/*********************************************
* Multi frame data
*********************************************/