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

Side by Side Diff: cc/test/test_gles2_interface.h

Issue 516663003: Surfaceless OutputSurface implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: implement GenRenderbuffers 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 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 9
10 namespace cc { 10 namespace cc {
11 class TestWebGraphicsContext3D; 11 class TestWebGraphicsContext3D;
12 12
13 class TestGLES2Interface : public gpu::gles2::GLES2InterfaceStub { 13 class TestGLES2Interface : public gpu::gles2::GLES2InterfaceStub {
14 public: 14 public:
15 explicit TestGLES2Interface(TestWebGraphicsContext3D* test_context); 15 explicit TestGLES2Interface(TestWebGraphicsContext3D* test_context);
16 virtual ~TestGLES2Interface(); 16 virtual ~TestGLES2Interface();
17 17
18 virtual void GenTextures(GLsizei n, GLuint* textures) OVERRIDE; 18 virtual void GenTextures(GLsizei n, GLuint* textures) OVERRIDE;
19 virtual void GenBuffers(GLsizei n, GLuint* buffers) OVERRIDE; 19 virtual void GenBuffers(GLsizei n, GLuint* buffers) OVERRIDE;
20 virtual void GenFramebuffers(GLsizei n, GLuint* framebuffers) OVERRIDE; 20 virtual void GenFramebuffers(GLsizei n, GLuint* framebuffers) OVERRIDE;
21 virtual void GenRenderbuffers(GLsizei n, GLuint* renderbuffers) OVERRIDE;
21 virtual void GenQueriesEXT(GLsizei n, GLuint* queries) OVERRIDE; 22 virtual void GenQueriesEXT(GLsizei n, GLuint* queries) OVERRIDE;
22 23
23 virtual void DeleteTextures(GLsizei n, const GLuint* textures) OVERRIDE; 24 virtual void DeleteTextures(GLsizei n, const GLuint* textures) OVERRIDE;
24 virtual void DeleteBuffers(GLsizei n, const GLuint* buffers) OVERRIDE; 25 virtual void DeleteBuffers(GLsizei n, const GLuint* buffers) OVERRIDE;
25 virtual void DeleteFramebuffers(GLsizei n, 26 virtual void DeleteFramebuffers(GLsizei n,
26 const GLuint* framebuffers) OVERRIDE; 27 const GLuint* framebuffers) OVERRIDE;
27 virtual void DeleteQueriesEXT(GLsizei n, const GLuint* queries) OVERRIDE; 28 virtual void DeleteQueriesEXT(GLsizei n, const GLuint* queries) OVERRIDE;
28 29
29 virtual GLuint CreateShader(GLenum type) OVERRIDE; 30 virtual GLuint CreateShader(GLenum type) OVERRIDE;
30 virtual GLuint CreateProgram() OVERRIDE; 31 virtual GLuint CreateProgram() OVERRIDE;
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 float device_scale) OVERRIDE; 175 float device_scale) OVERRIDE;
175 virtual void LoseContextCHROMIUM(GLenum current, GLenum other) OVERRIDE; 176 virtual void LoseContextCHROMIUM(GLenum current, GLenum other) OVERRIDE;
176 177
177 private: 178 private:
178 TestWebGraphicsContext3D* test_context_; 179 TestWebGraphicsContext3D* test_context_;
179 }; 180 };
180 181
181 } // namespace cc 182 } // namespace cc
182 183
183 #endif // CC_TEST_TEST_GLES2_INTERFACE_H_ 184 #endif // CC_TEST_TEST_GLES2_INTERFACE_H_
OLDNEW
« no previous file with comments | « no previous file | cc/test/test_gles2_interface.cc » ('j') | content/browser/compositor/gpu_browser_compositor_output_surface.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698