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

Unified Diff: cc/test/test_gles2_interface.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/test/test_gles2_interface.h ('k') | cc/test/test_in_process_context_provider.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..38b1d2014797665dea5105a779a359d3f859a036 100644
--- a/cc/test/test_gles2_interface.cc
+++ b/cc/test/test_gles2_interface.cc
@@ -6,6 +6,7 @@
#include "base/logging.h"
#include "cc/test/test_web_graphics_context_3d.h"
+#include "gpu/GLES2/gl2extchromium.h"
namespace cc {
@@ -423,4 +424,10 @@ void TestGLES2Interface::LoseContextCHROMIUM(GLenum current, GLenum other) {
test_context_->loseContextCHROMIUM(current, other);
}
+GLenum TestGLES2Interface::GetGraphicsResetStatusKHR() {
+ if (test_context_->isContextLost())
+ return GL_UNKNOWN_CONTEXT_RESET_KHR;
+ return GL_NO_ERROR;
+}
+
} // namespace cc
« no previous file with comments | « cc/test/test_gles2_interface.h ('k') | cc/test/test_in_process_context_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698