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

Side by Side 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, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CC_TEST_TEST_GLES2_INTERFACE_H_ 5 #ifndef CC_TEST_TEST_GLES2_INTERFACE_H_
6 #define CC_TEST_TEST_GLES2_INTERFACE_H_ 6 #define CC_TEST_TEST_GLES2_INTERFACE_H_
7 7
8 #include "gpu/command_buffer/client/gles2_interface_stub.h" 8 #include "gpu/command_buffer/client/gles2_interface_stub.h"
9 #include "ui/gfx/rect.h"
9 10
10 namespace cc { 11 namespace cc {
11 class TestWebGraphicsContext3D; 12 class TestWebGraphicsContext3D;
12 13
13 class TestGLES2Interface : public gpu::gles2::GLES2InterfaceStub { 14 class TestGLES2Interface : public gpu::gles2::GLES2InterfaceStub {
14 public: 15 public:
15 explicit TestGLES2Interface(TestWebGraphicsContext3D* test_context); 16 explicit TestGLES2Interface(TestWebGraphicsContext3D* test_context);
16 virtual ~TestGLES2Interface(); 17 virtual ~TestGLES2Interface();
17 18
18 virtual void GenTextures(GLsizei n, GLuint* textures) OVERRIDE; 19 virtual void GenTextures(GLsizei n, GLuint* textures) OVERRIDE;
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 const GLbyte* mailbox) OVERRIDE; 183 const GLbyte* mailbox) OVERRIDE;
183 virtual GLuint CreateAndConsumeTextureCHROMIUM( 184 virtual GLuint CreateAndConsumeTextureCHROMIUM(
184 GLenum target, 185 GLenum target,
185 const GLbyte* mailbox) OVERRIDE; 186 const GLbyte* mailbox) OVERRIDE;
186 187
187 virtual void ResizeCHROMIUM(GLuint width, 188 virtual void ResizeCHROMIUM(GLuint width,
188 GLuint height, 189 GLuint height,
189 float device_scale) OVERRIDE; 190 float device_scale) OVERRIDE;
190 virtual void LoseContextCHROMIUM(GLenum current, GLenum other) OVERRIDE; 191 virtual void LoseContextCHROMIUM(GLenum current, GLenum other) OVERRIDE;
191 192
193 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
194 virtual void PostSubBufferCHROMIUM(GLint x,
195 GLint y,
196 GLint width,
197 GLint height) OVERRIDE;
198
199 enum SwapType {
200 NO_SWAP,
201 SWAP,
202 PARTIAL_SWAP
203 };
204 SwapType last_swap_type() const { return last_swap_type_; }
205 gfx::Rect last_partial_swap_rect() const { return last_partial_swap_rect_; }
206
192 private: 207 private:
193 TestWebGraphicsContext3D* test_context_; 208 TestWebGraphicsContext3D* test_context_;
209
210 SwapType last_swap_type_;
211 gfx::Rect last_partial_swap_rect_;
194 }; 212 };
195 213
196 } // namespace cc 214 } // namespace cc
197 215
198 #endif // CC_TEST_TEST_GLES2_INTERFACE_H_ 216 #endif // CC_TEST_TEST_GLES2_INTERFACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698