Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1007)

Unified Diff: content/browser/renderer_host/render_widget_host_view_android.cc

Issue 1790753002: Expose GLES2Interface to blink, and delete isContextLost() from WGC3D. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: wgc3d: add platform build deps Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/render_widget_host_view_android.cc
diff --git a/content/browser/renderer_host/render_widget_host_view_android.cc b/content/browser/renderer_host/render_widget_host_view_android.cc
index 65ed654f0342d396762742fb6e6c2c96cb3bd857..3f15cf30caf49c5f5e1d6f5b273509d4c2d5bd98 100644
--- a/content/browser/renderer_host/render_widget_host_view_android.cc
+++ b/content/browser/renderer_host/render_widget_host_view_android.cc
@@ -128,7 +128,11 @@ class GLHelperHolder
void onContextLost() override;
GLHelper* GetGLHelper() { return gl_helper_.get(); }
- bool IsLost() { return !context_.get() || context_->isContextLost(); }
+ bool IsLost() {
+ return !context_ ||
+ context_->GetGLInterface()->GetGraphicsResetStatusKHR() !=
+ GL_NO_ERROR;
+ }
private:
GLHelperHolder();

Powered by Google App Engine
This is Rietveld 408576698