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

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

Issue 105103004: Convert cc resource system over to GLES2Interface (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 | Annotate | Revision Log
« no previous file with comments | « cc/scheduler/texture_uploader_unittest.cc ('k') | cc/test/test_gles2_interface.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 {
(...skipping 13 matching lines...) Expand all
24 virtual void DeleteBuffers(GLsizei n, const GLuint* buffers) OVERRIDE; 24 virtual void DeleteBuffers(GLsizei n, const GLuint* buffers) OVERRIDE;
25 virtual void DeleteFramebuffers(GLsizei n, 25 virtual void DeleteFramebuffers(GLsizei n,
26 const GLuint* framebuffers) OVERRIDE; 26 const GLuint* framebuffers) OVERRIDE;
27 virtual void DeleteQueriesEXT(GLsizei n, const GLuint* queries) OVERRIDE; 27 virtual void DeleteQueriesEXT(GLsizei n, const GLuint* queries) OVERRIDE;
28 28
29 virtual GLuint CreateShader(GLenum type) OVERRIDE; 29 virtual GLuint CreateShader(GLenum type) OVERRIDE;
30 virtual GLuint CreateProgram() OVERRIDE; 30 virtual GLuint CreateProgram() OVERRIDE;
31 31
32 virtual void BindTexture(GLenum target, GLuint texture) OVERRIDE; 32 virtual void BindTexture(GLenum target, GLuint texture) OVERRIDE;
33 33
34 virtual void GetIntegerv(GLenum pname, GLint* params) OVERRIDE;
34 virtual void GetShaderiv(GLuint shader, GLenum pname, GLint* params) OVERRIDE; 35 virtual void GetShaderiv(GLuint shader, GLenum pname, GLint* params) OVERRIDE;
35 virtual void GetProgramiv(GLuint program, 36 virtual void GetProgramiv(GLuint program,
36 GLenum pname, 37 GLenum pname,
37 GLint* params) OVERRIDE; 38 GLint* params) OVERRIDE;
38 virtual void GetShaderPrecisionFormat(GLenum shadertype, 39 virtual void GetShaderPrecisionFormat(GLenum shadertype,
39 GLenum precisiontype, 40 GLenum precisiontype,
40 GLint* range, 41 GLint* range,
41 GLint* precision) OVERRIDE; 42 GLint* precision) OVERRIDE;
42 virtual GLenum CheckFramebufferStatus(GLenum target) OVERRIDE; 43 virtual GLenum CheckFramebufferStatus(GLenum target) OVERRIDE;
43 44
44 virtual void ActiveTexture(GLenum target) OVERRIDE; 45 virtual void ActiveTexture(GLenum target) OVERRIDE;
45 virtual void Viewport(GLint x, GLint y, GLsizei width, GLsizei height) 46 virtual void Viewport(GLint x, GLint y, GLsizei width, GLsizei height)
46 OVERRIDE; 47 OVERRIDE;
47 virtual void UseProgram(GLuint program) OVERRIDE; 48 virtual void UseProgram(GLuint program) OVERRIDE;
48 virtual void Scissor(GLint x, GLint y, GLsizei width, GLsizei height) 49 virtual void Scissor(GLint x, GLint y, GLsizei width, GLsizei height)
49 OVERRIDE; 50 OVERRIDE;
50 virtual void DrawElements(GLenum mode, 51 virtual void DrawElements(GLenum mode,
51 GLsizei count, 52 GLsizei count,
52 GLenum type, 53 GLenum type,
53 const void* indices) OVERRIDE; 54 const void* indices) OVERRIDE;
54 virtual void ClearColor(GLclampf red, 55 virtual void ClearColor(GLclampf red,
55 GLclampf green, 56 GLclampf green,
56 GLclampf blue, 57 GLclampf blue,
57 GLclampf alpha) OVERRIDE; 58 GLclampf alpha) OVERRIDE;
58 virtual void ClearStencil(GLint s) OVERRIDE; 59 virtual void ClearStencil(GLint s) OVERRIDE;
59 virtual void Clear(GLbitfield mask) OVERRIDE; 60 virtual void Clear(GLbitfield mask) OVERRIDE;
60 virtual void Flush() OVERRIDE; 61 virtual void Flush() OVERRIDE;
61 virtual void Finish() OVERRIDE; 62 virtual void Finish() OVERRIDE;
63 virtual void ShallowFlushCHROMIUM() OVERRIDE;
62 virtual void Enable(GLenum cap) OVERRIDE; 64 virtual void Enable(GLenum cap) OVERRIDE;
63 virtual void Disable(GLenum cap) OVERRIDE; 65 virtual void Disable(GLenum cap) OVERRIDE;
64 66
65 virtual void BindBuffer(GLenum target, GLuint buffer) OVERRIDE; 67 virtual void BindBuffer(GLenum target, GLuint buffer) OVERRIDE;
66 virtual void BindFramebuffer(GLenum target, GLuint buffer) OVERRIDE; 68 virtual void BindFramebuffer(GLenum target, GLuint buffer) OVERRIDE;
67 69
70 virtual void TexImage2D(GLenum target,
71 GLint level,
72 GLint internalformat,
73 GLsizei width,
74 GLsizei height,
75 GLint border,
76 GLenum format,
77 GLenum type,
78 const void* pixels) OVERRIDE;
79 virtual void TexSubImage2D(GLenum target,
80 GLint level,
81 GLint xoffset,
82 GLint yoffset,
83 GLsizei width,
84 GLsizei height,
85 GLenum format,
86 GLenum type,
87 const void* pixels) OVERRIDE;
88 virtual void TexStorage2DEXT(GLenum target,
89 GLsizei levels,
90 GLenum internalformat,
91 GLsizei width,
92 GLsizei height) OVERRIDE;
93 virtual void TexParameteri(GLenum target, GLenum pname, GLint param) OVERRIDE;
94
95 virtual void AsyncTexImage2DCHROMIUM(GLenum target,
96 GLint level,
97 GLint internalformat,
98 GLsizei width,
99 GLsizei height,
100 GLint border,
101 GLenum format,
102 GLenum type,
103 const void* pixels) OVERRIDE;
104 virtual void AsyncTexSubImage2DCHROMIUM(GLenum target,
105 GLint level,
106 GLint xoffset,
107 GLint yoffset,
108 GLsizei width,
109 GLsizei height,
110 GLenum format,
111 GLenum type,
112 const void* pixels) OVERRIDE;
113 virtual void CompressedTexImage2D(GLenum target,
114 GLint level,
115 GLenum internalformat,
116 GLsizei width,
117 GLsizei height,
118 GLint border,
119 GLsizei image_size,
120 const void* data) OVERRIDE;
121 virtual void WaitAsyncTexImage2DCHROMIUM(GLenum target) OVERRIDE;
122 virtual GLuint CreateImageCHROMIUM(GLsizei width,
123 GLsizei height,
124 GLenum internalformat) OVERRIDE;
125 virtual void DestroyImageCHROMIUM(GLuint image_id) OVERRIDE;
126 virtual void* MapImageCHROMIUM(GLuint image_id, GLenum access) OVERRIDE;
127 virtual void GetImageParameterivCHROMIUM(GLuint image_id,
128 GLenum pname,
129 GLint* params) OVERRIDE;
130 virtual void UnmapImageCHROMIUM(GLuint image_id) OVERRIDE;
131 virtual void BindTexImage2DCHROMIUM(GLenum target, GLint image_id) OVERRIDE;
132 virtual void ReleaseTexImage2DCHROMIUM(GLenum target,
133 GLint image_id) OVERRIDE;
134
68 virtual void* MapBufferCHROMIUM(GLuint target, GLenum access) OVERRIDE; 135 virtual void* MapBufferCHROMIUM(GLuint target, GLenum access) OVERRIDE;
69 virtual GLboolean UnmapBufferCHROMIUM(GLuint target) OVERRIDE; 136 virtual GLboolean UnmapBufferCHROMIUM(GLuint target) OVERRIDE;
70 virtual void BufferData(GLenum target, 137 virtual void BufferData(GLenum target,
71 GLsizeiptr size, 138 GLsizeiptr size,
72 const void* data, 139 const void* data,
73 GLenum usage) OVERRIDE; 140 GLenum usage) OVERRIDE;
74 141
75 virtual void WaitSyncPointCHROMIUM(GLuint sync_point) OVERRIDE; 142 virtual void WaitSyncPointCHROMIUM(GLuint sync_point) OVERRIDE;
76 virtual GLuint InsertSyncPointCHROMIUM() OVERRIDE; 143 virtual GLuint InsertSyncPointCHROMIUM() OVERRIDE;
77 144
78 virtual void BeginQueryEXT(GLenum target, GLuint id) OVERRIDE; 145 virtual void BeginQueryEXT(GLenum target, GLuint id) OVERRIDE;
79 virtual void EndQueryEXT(GLenum target) OVERRIDE; 146 virtual void EndQueryEXT(GLenum target) OVERRIDE;
147 virtual void GetQueryObjectuivEXT(GLuint id,
148 GLenum pname,
149 GLuint* params) OVERRIDE;
80 150
81 virtual void DiscardFramebufferEXT(GLenum target, 151 virtual void DiscardFramebufferEXT(GLenum target,
82 GLsizei count, 152 GLsizei count,
83 const GLenum* attachments) OVERRIDE; 153 const GLenum* attachments) OVERRIDE;
84 virtual void GenMailboxCHROMIUM(GLbyte* mailbox) OVERRIDE; 154 virtual void GenMailboxCHROMIUM(GLbyte* mailbox) OVERRIDE;
155 virtual void ProduceTextureCHROMIUM(GLenum target,
156 const GLbyte* mailbox) OVERRIDE;
157 virtual void ConsumeTextureCHROMIUM(GLenum target,
158 const GLbyte* mailbox) OVERRIDE;
85 159
86 private: 160 private:
87 TestWebGraphicsContext3D* test_context_; 161 TestWebGraphicsContext3D* test_context_;
88 }; 162 };
89 163
90 } // namespace cc 164 } // namespace cc
91 165
92 #endif // CC_TEST_TEST_GLES2_INTERFACE_H_ 166 #endif // CC_TEST_TEST_GLES2_INTERFACE_H_
OLDNEW
« no previous file with comments | « cc/scheduler/texture_uploader_unittest.cc ('k') | cc/test/test_gles2_interface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698