diff options
author | Romain Guy <romainguy@google.com> | 2012-03-26 16:51:22 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2012-03-26 16:51:22 -0700 |
commit | 56485fe62882065688e70fcb1f4b5c3894ed2c87 (patch) | |
tree | 253c902bca219766169277bb2d27aa6135535ddf /include | |
parent | 994c26b2a600a5a9fb9fbada9c6299c0488ecda7 (diff) | |
parent | 6554943a1dd6854c0f4976900956e556767b49e1 (diff) | |
download | frameworks_base-56485fe62882065688e70fcb1f4b5c3894ed2c87.zip frameworks_base-56485fe62882065688e70fcb1f4b5c3894ed2c87.tar.gz frameworks_base-56485fe62882065688e70fcb1f4b5c3894ed2c87.tar.bz2 |
Merge "Use a status_t return type for GL functors"
Diffstat (limited to 'include')
-rw-r--r-- | include/private/hwui/DrawGlInfo.h | 17 |
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 |