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

Unified Diff: cc/test/test_gles2_interface.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_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

Powered by Google App Engine
This is Rietveld 408576698