Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 00a10e8e authored by Romain Guy's avatar Romain Guy
Browse files

Use a status_t return type for GL functors

WebView needs more fine-grained control over the behavior of the
framework upon execution of the display lists. The new status_t
allows WebView to requests its functor to be re-executed directly
without causing a redraw of the entire hierarchy.

Change-Id: I97a8141dc5c6eeb6805b6024cc1e76fce07d24cc
parent ef36d496
Loading
Loading
Loading
Loading
+17 −0
Original line number Diff line number Diff line
@@ -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