summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Craik <ccraik@google.com>2012-04-03 15:28:22 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2012-04-03 15:28:22 -0700
commit0f9e4bc54411c7e1c1f08299282a8bd0cd9b8d34 (patch)
treea5a3e321aefa0c2532b0daf8ebee95774b1a0977
parent8167faa029485acc3245991d492ef951eb655399 (diff)
parentad5789c6dcad930f1fce34685b7ca84df4d68e90 (diff)
downloadframeworks_base-0f9e4bc54411c7e1c1f08299282a8bd0cd9b8d34.zip
frameworks_base-0f9e4bc54411c7e1c1f08299282a8bd0cd9b8d34.tar.gz
frameworks_base-0f9e4bc54411c7e1c1f08299282a8bd0cd9b8d34.tar.bz2
am ad5789c6: am c70e89e2: Fix hybrid build
* commit 'ad5789c6dcad930f1fce34685b7ca84df4d68e90': Fix hybrid build
-rw-r--r--include/private/hwui/DrawGlInfo.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/include/private/hwui/DrawGlInfo.h b/include/private/hwui/DrawGlInfo.h
index 1e9912b..8028bf3 100644
--- a/include/private/hwui/DrawGlInfo.h
+++ b/include/private/hwui/DrawGlInfo.h
@@ -42,6 +42,34 @@ struct DrawGlInfo {
float dirtyTop;
float dirtyRight;
float dirtyBottom;
+
+ /**
+ * Values used as the "what" parameter of the functor.
+ */
+ enum Mode {
+ // Indicates that the functor is called to perform a draw
+ kModeDraw,
+ // Indicates the the functor is called only to perform
+ // processing and that no draw should be attempted
+ kModeProcess
+ };
+
+ /**
+ * Values used by OpenGL functors to tell the framework
+ * what to do next.
+ */
+ enum Status {
+ // The functor is done
+ kStatusDone = 0x0,
+ // The functor is requesting a redraw (the clip rect
+ // used by the redraw is specified by DrawGlInfo.)
+ // The rest of the UI might redraw too.
+ kStatusDraw = 0x1,
+ // The functor needs to be invoked again but will
+ // not redraw. Only the functor is invoked again
+ // (unless another functor requests a redraw.)
+ kStatusInvoke = 0x2
+ };
}; // struct DrawGlInfo
}; // namespace uirenderer