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

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: 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 9c739b6d224ad70e46c759dfef76c23e31a59020..472908f57cfe1cf471648c9ff5bac1db4350ec4c 100644
--- a/content/browser/renderer_host/render_widget_host_view_android.cc
+++ b/content/browser/renderer_host/render_widget_host_view_android.cc
@@ -129,7 +129,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