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

Unified Diff: cc/test/test_context_provider.h

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_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();

Powered by Google App Engine
This is Rietveld 408576698