Index: cc/test/test_gles2_interface.h |
diff --git a/cc/test/test_gles2_interface.h b/cc/test/test_gles2_interface.h |
index 68495f4a46f60351087e2e19dc09fd4d57a5d129..2ee6c5cdd8fd22458bad8d9d0b48441806a7720b 100644 |
--- a/cc/test/test_gles2_interface.h |
+++ b/cc/test/test_gles2_interface.h |
@@ -6,6 +6,7 @@ |
#define CC_TEST_TEST_GLES2_INTERFACE_H_ |
#include "gpu/command_buffer/client/gles2_interface_stub.h" |
+#include "ui/gfx/rect.h" |
namespace cc { |
class TestWebGraphicsContext3D; |
@@ -189,8 +190,25 @@ class TestGLES2Interface : public gpu::gles2::GLES2InterfaceStub { |
float device_scale) OVERRIDE; |
virtual void LoseContextCHROMIUM(GLenum current, GLenum other) OVERRIDE; |
+ virtual void SwapBuffers() OVERRIDE; |
jamesr
2014/10/01 00:06:28
sucks to encode these on GLES2Interface. I don't
no sievers
2014/10/01 00:12:52
In this patch I'm just removing a layer of indirec
|
+ virtual void PostSubBufferCHROMIUM(GLint x, |
+ GLint y, |
+ GLint width, |
+ GLint height) OVERRIDE; |
+ |
+ enum SwapType { |
+ NO_SWAP, |
+ SWAP, |
+ PARTIAL_SWAP |
+ }; |
+ SwapType last_swap_type() const { return last_swap_type_; } |
+ gfx::Rect last_partial_swap_rect() const { return last_partial_swap_rect_; } |
+ |
private: |
TestWebGraphicsContext3D* test_context_; |
+ |
+ SwapType last_swap_type_; |
+ gfx::Rect last_partial_swap_rect_; |
}; |
} // namespace cc |