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

Unified Diff: cc/output/gl_renderer.cc

Issue 1168943002: Remove ContextProvider::IsContextLost. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: contextprovider: . Created 5 years, 6 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
« no previous file with comments | « cc/output/context_provider.h ('k') | cc/output/program_binding.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/gl_renderer.cc
diff --git a/cc/output/gl_renderer.cc b/cc/output/gl_renderer.cc
index faf6bbb0119b0ebbcafb3f9aa5b73b3e44fd3a02..0d8776ce624c8c87e8118b8e1d271245af153d15 100644
--- a/cc/output/gl_renderer.cc
+++ b/cc/output/gl_renderer.cc
@@ -3499,7 +3499,7 @@ void GLRenderer::RestoreFramebuffer(DrawingFrame* frame) {
}
bool GLRenderer::IsContextLost() {
- return output_surface_->context_provider()->IsContextLost();
+ return gl_->GetGraphicsResetStatusKHR() != GL_NO_ERROR;
}
void GLRenderer::ScheduleOverlays(DrawingFrame* frame) {
« no previous file with comments | « cc/output/context_provider.h ('k') | cc/output/program_binding.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698