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

Unified Diff: gpu/command_buffer/client/gles2_implementation.cc

Issue 1160863007: DCHECK if shader compilation fails that it's due to context loss. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: glhelperlost: gles2interface? 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
Index: gpu/command_buffer/client/gles2_implementation.cc
diff --git a/gpu/command_buffer/client/gles2_implementation.cc b/gpu/command_buffer/client/gles2_implementation.cc
index 7708bc129c7aec036cc6186e7ab3d128beec0a79..c8618f4c16d405d36964eee2e85b325c2b1702a3 100644
--- a/gpu/command_buffer/client/gles2_implementation.cc
+++ b/gpu/command_buffer/client/gles2_implementation.cc
@@ -4103,6 +4103,12 @@ void GLES2Implementation::GetVertexAttribIuiv(
CheckGLError();
}
+GLboolean GLES2Implementation::IsContextLost() {
+ GPU_CLIENT_SINGLE_THREAD_CHECK();
+ GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glIsContextLost()");
+ return helper_->IsContextLost();
+}
+
void GLES2Implementation::Swap() {
SwapBuffers();
}

Powered by Google App Engine
This is Rietveld 408576698