File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed
Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments