summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain Guy <romainguy@google.com>2012-03-26 16:51:22 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-03-26 16:51:22 -0700
commit5a5491c17d74bd2c80cf451c6ddbba22d5d5f08a (patch)
treeaf90de36d219d425d5eac27a8159f3c608851ece
parent4116807a35a27abf635bf6199ed9ad8703c9e94d (diff)
parent00a10e8eb39526df06779e0cdb6e6871752934d7 (diff)
downloadframeworks_av-5a5491c17d74bd2c80cf451c6ddbba22d5d5f08a.zip
frameworks_av-5a5491c17d74bd2c80cf451c6ddbba22d5d5f08a.tar.gz
frameworks_av-5a5491c17d74bd2c80cf451c6ddbba22d5d5f08a.tar.bz2
Merge "Use a status_t return type for GL functors"
-rw-r--r--include/private/hwui/DrawGlInfo.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/private/hwui/DrawGlInfo.h b/include/private/hwui/DrawGlInfo.h
index 1e9912b..abcf41d 100644
--- a/include/private/hwui/DrawGlInfo.h
+++ b/include/private/hwui/DrawGlInfo.h
@@ -42,6 +42,23 @@ struct DrawGlInfo {
float dirtyTop;
float dirtyRight;
float dirtyBottom;
+
+ /**
+ * Values used by OpenGL functors to tell the framework
+ * what to do next.
+ */
+ enum Status {
+ // The functor is done
+ kStatusDone,
+ // 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,
+ // The functor needs to be invoked again but will
+ // not redraw. Only the functor is invoked again
+ // (unless another functor requests a redraw.)
+ kStatusInvoke
+ };
}; // struct DrawGlInfo
}; // namespace uirenderer