Skip to content

Commit c70e89e

Browse files
ChrisCraikJean-Baptiste Queru
authored andcommitted
Fix hybrid build
Change-Id: Ieef556473e1878d1319f9844fb0bbb974637999e
1 parent 8ea93aa commit c70e89e

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

include/private/hwui/DrawGlInfo.h

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,34 @@ struct DrawGlInfo {
4242
float dirtyTop;
4343
float dirtyRight;
4444
float dirtyBottom;
45+
46+
/**
47+
* Values used as the "what" parameter of the functor.
48+
*/
49+
enum Mode {
50+
// Indicates that the functor is called to perform a draw
51+
kModeDraw,
52+
// Indicates the the functor is called only to perform
53+
// processing and that no draw should be attempted
54+
kModeProcess
55+
};
56+
57+
/**
58+
* Values used by OpenGL functors to tell the framework
59+
* what to do next.
60+
*/
61+
enum Status {
62+
// The functor is done
63+
kStatusDone = 0x0,
64+
// The functor is requesting a redraw (the clip rect
65+
// used by the redraw is specified by DrawGlInfo.)
66+
// The rest of the UI might redraw too.
67+
kStatusDraw = 0x1,
68+
// The functor needs to be invoked again but will
69+
// not redraw. Only the functor is invoked again
70+
// (unless another functor requests a redraw.)
71+
kStatusInvoke = 0x2
72+
};
4573
}; // struct DrawGlInfo
4674

4775
}; // namespace uirenderer

0 commit comments

Comments
 (0)