From c70e89e2a024645d425b49db2bbf3f20ed68e518 Mon Sep 17 00:00:00 2001 From: Chris Craik Date: Tue, 3 Apr 2012 13:53:46 -0700 Subject: [PATCH] Fix hybrid build Change-Id: Ieef556473e1878d1319f9844fb0bbb974637999e --- include/private/hwui/DrawGlInfo.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/include/private/hwui/DrawGlInfo.h b/include/private/hwui/DrawGlInfo.h index 1e9912bd02ee..8028bf3bb3f5 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 -- 2.11.0