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

Unified Diff: cc/output/program_binding.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/program_binding.h ('k') | cc/raster/tile_task_worker_pool_perftest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/program_binding.cc
diff --git a/cc/output/program_binding.cc b/cc/output/program_binding.cc
index 7809e1085c7b11cd5e903e3dd911145eacacf7a1..c05447c7d65037c762a8bd590af50919be6e0910 100644
--- a/cc/output/program_binding.cc
+++ b/cc/output/program_binding.cc
@@ -6,6 +6,7 @@
#include "base/trace_event/trace_event.h"
#include "cc/output/geometry_binding.h"
+#include "gpu/GLES2/gl2extchromium.h"
#include "gpu/command_buffer/client/gles2_interface.h"
using gpu::gles2::GLES2Interface;
@@ -129,4 +130,8 @@ void ProgramBindingBase::CleanupShaders(GLES2Interface* context) {
}
}
+bool ProgramBindingBase::IsContextLost(GLES2Interface* context) {
+ return context->GetGraphicsResetStatusKHR() != GL_NO_ERROR;
+}
+
} // namespace cc
« no previous file with comments | « cc/output/program_binding.h ('k') | cc/raster/tile_task_worker_pool_perftest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698