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

Commit afd7bc60 authored by John Reck's avatar John Reck Committed by Android (Google) Code Review
Browse files

Merge "Add GL_CHECKPOINT before invoking webview" into sc-dev

parents 97a00801 7e18b475
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -24,6 +24,7 @@
#include "SkClipStack.h"
#include "SkClipStack.h"
#include "SkRect.h"
#include "SkRect.h"
#include "SkM44.h"
#include "SkM44.h"
#include "utils/GLUtils.h"


namespace android {
namespace android {
namespace uirenderer {
namespace uirenderer {
@@ -170,6 +171,8 @@ void GLFunctorDrawable::onDraw(SkCanvas* canvas) {
        setScissor(info.height, clipRegion.getBounds());
        setScissor(info.height, clipRegion.getBounds());
    }
    }


    // WebView may swallow GL errors, so catch them here
    GL_CHECKPOINT(LOW);
    mWebViewHandle->drawGl(info);
    mWebViewHandle->drawGl(info);


    if (clearStencilAfterFunctor) {
    if (clearStencilAfterFunctor) {