| 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
|
|
|