Add GL_CHECKPOINT before invoking webview

Fixes: 185351688
Test: builds
Change-Id: I57d184c4d252efef66cdf22e3b83d377a60c94e4
This commit is contained in:
John Reck
2021-04-14 14:17:14 -04:00
parent 9692654a41
commit 7e18b475d3

View File

@@ -24,6 +24,7 @@
#include "SkClipStack.h"
#include "SkRect.h"
#include "SkM44.h"
#include "utils/GLUtils.h"
namespace android {
namespace uirenderer {
@@ -170,6 +171,8 @@ void GLFunctorDrawable::onDraw(SkCanvas* canvas) {
setScissor(info.height, clipRegion.getBounds());
}
// WebView may swallow GL errors, so catch them here
GL_CHECKPOINT(LOW);
mWebViewHandle->drawGl(info);
if (clearStencilAfterFunctor) {