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

Unified Diff: cc/test/test_gles2_interface.cc

Issue 619453002: gpu: Remove Echo and SwapCompletion GL interfacess (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@tits
Patch Set: rebase Created 6 years, 3 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 c0a986d215918a05c3307e2a8ced74e29588bc8c..321165eb989a54451025986f2293b706b4fb7490 100644
--- a/cc/test/test_gles2_interface.cc
+++ b/cc/test/test_gles2_interface.cc
@@ -10,7 +10,7 @@
namespace cc {
TestGLES2Interface::TestGLES2Interface(TestWebGraphicsContext3D* test_context)
- : test_context_(test_context) {
+ : test_context_(test_context), last_swap_type_(NO_SWAP) {
DCHECK(test_context_);
}
@@ -420,4 +420,16 @@ void TestGLES2Interface::LoseContextCHROMIUM(GLenum current, GLenum other) {
test_context_->loseContextCHROMIUM(current, other);
}
+void TestGLES2Interface::SwapBuffers() {
+ last_swap_type_ = SWAP;
+}
+
+void TestGLES2Interface::PostSubBufferCHROMIUM(GLint x,
+ GLint y,
+ GLint width,
+ GLint height) {
+ last_swap_type_ = PARTIAL_SWAP;
+ last_partial_swap_rect_ = gfx::Rect(x, y, width, height);
+}
+
} // namespace cc

Powered by Google App Engine
This is Rietveld 408576698