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

Unified Diff: cc/test/test_gles2_interface.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: cc/test/test_gles2_interface.cc
diff --git a/cc/test/test_gles2_interface.cc b/cc/test/test_gles2_interface.cc
index 6ce087fe222e7579787a4ef373e4d63bd4164700..c1a26fad9c12679b8176d53ea666ae8011020ac1 100644
--- a/cc/test/test_gles2_interface.cc
+++ b/cc/test/test_gles2_interface.cc
@@ -423,4 +423,8 @@ void TestGLES2Interface::LoseContextCHROMIUM(GLenum current, GLenum other) {
test_context_->loseContextCHROMIUM(current, other);
}
+GLboolean TestGLES2Interface::IsContextLost() {
+ return test_context_->isContextLost();
+}
+
} // namespace cc

Powered by Google App Engine
This is Rietveld 408576698