Index: cc/test/test_context_provider.h |
diff --git a/cc/test/test_context_provider.h b/cc/test/test_context_provider.h |
index 75c7663351681aa690cd8d0dc906589e4b188df4..dfdc7fd90a10bedc4349bb8b035e1eaa3d699f01 100644 |
--- a/cc/test/test_context_provider.h |
+++ b/cc/test/test_context_provider.h |
@@ -12,11 +12,12 @@ |
#include "base/threading/thread_checker.h" |
#include "cc/output/context_provider.h" |
#include "cc/test/test_context_support.h" |
+#include "cc/test/test_gles2_interface.h" |
#include "gpu/command_buffer/client/gles2_interface_stub.h" |
+#include "ui/gfx/rect.h" |
namespace cc { |
class TestWebGraphicsContext3D; |
-class TestGLES2Interface; |
class TestContextProvider : public ContextProvider { |
public: |
@@ -54,6 +55,13 @@ class TestContextProvider : public ContextProvider { |
void SetMaxTransferBufferUsageBytes(size_t max_transfer_buffer_usage_bytes); |
+ TestGLES2Interface::SwapType last_swap_type() const { |
+ return context_gl_->last_swap_type(); |
+ } |
+ gfx::Rect last_partial_swap_rect() const { |
+ return context_gl_->last_partial_swap_rect(); |
+ } |
+ |
protected: |
explicit TestContextProvider(scoped_ptr<TestWebGraphicsContext3D> context); |
virtual ~TestContextProvider(); |