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

Side by Side Diff: gpu/command_buffer/client/gles2_implementation.h

Issue 663363002: Standardize usage of virtual/override/final in gpu/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update generator script 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ 5 #ifndef GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_
6 #define GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ 6 #define GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_
7 7
8 #include <GLES2/gl2.h> 8 #include <GLES2/gl2.h>
9 9
10 #include <list> 10 #include <list>
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 // Number of swap buffers allowed before waiting. 184 // Number of swap buffers allowed before waiting.
185 static const size_t kMaxSwapBuffers = 2; 185 static const size_t kMaxSwapBuffers = 2;
186 186
187 GLES2Implementation(GLES2CmdHelper* helper, 187 GLES2Implementation(GLES2CmdHelper* helper,
188 ShareGroup* share_group, 188 ShareGroup* share_group,
189 TransferBufferInterface* transfer_buffer, 189 TransferBufferInterface* transfer_buffer,
190 bool bind_generates_resource, 190 bool bind_generates_resource,
191 bool lose_context_when_out_of_memory, 191 bool lose_context_when_out_of_memory,
192 GpuControl* gpu_control); 192 GpuControl* gpu_control);
193 193
194 virtual ~GLES2Implementation(); 194 ~GLES2Implementation() override;
195 195
196 bool Initialize( 196 bool Initialize(
197 unsigned int starting_transfer_buffer_size, 197 unsigned int starting_transfer_buffer_size,
198 unsigned int min_transfer_buffer_size, 198 unsigned int min_transfer_buffer_size,
199 unsigned int max_transfer_buffer_size, 199 unsigned int max_transfer_buffer_size,
200 unsigned int mapped_memory_limit); 200 unsigned int mapped_memory_limit);
201 201
202 // The GLES2CmdHelper being used by this GLES2Implementation. You can use 202 // The GLES2CmdHelper being used by this GLES2Implementation. You can use
203 // this to issue cmds at a lower level for certain kinds of optimization. 203 // this to issue cmds at a lower level for certain kinds of optimization.
204 GLES2CmdHelper* helper() const; 204 GLES2CmdHelper* helper() const;
205 205
206 // Gets client side generated errors. 206 // Gets client side generated errors.
207 GLenum GetClientSideGLError(); 207 GLenum GetClientSideGLError();
208 208
209 // Include the auto-generated part of this class. We split this because 209 // Include the auto-generated part of this class. We split this because
210 // it means we can easily edit the non-auto generated parts right here in 210 // it means we can easily edit the non-auto generated parts right here in
211 // this file instead of having to edit some template or the code generator. 211 // this file instead of having to edit some template or the code generator.
212 #include "gpu/command_buffer/client/gles2_implementation_autogen.h" 212 #include "gpu/command_buffer/client/gles2_implementation_autogen.h"
213 213
214 virtual void DisableVertexAttribArray(GLuint index) override; 214 void DisableVertexAttribArray(GLuint index) override;
215 virtual void EnableVertexAttribArray(GLuint index) override; 215 void EnableVertexAttribArray(GLuint index) override;
216 virtual void GetVertexAttribfv( 216 void GetVertexAttribfv(GLuint index, GLenum pname, GLfloat* params) override;
217 GLuint index, GLenum pname, GLfloat* params) override; 217 void GetVertexAttribiv(GLuint index, GLenum pname, GLint* params) override;
218 virtual void GetVertexAttribiv(
219 GLuint index, GLenum pname, GLint* params) override;
220 218
221 // ContextSupport implementation. 219 // ContextSupport implementation.
222 virtual void Swap() override; 220 void Swap() override;
223 virtual void PartialSwapBuffers(const gfx::Rect& sub_buffer) override; 221 void PartialSwapBuffers(const gfx::Rect& sub_buffer) override;
224 virtual void ScheduleOverlayPlane(int plane_z_order, 222 void ScheduleOverlayPlane(int plane_z_order,
225 gfx::OverlayTransform plane_transform, 223 gfx::OverlayTransform plane_transform,
226 unsigned overlay_texture_id, 224 unsigned overlay_texture_id,
227 const gfx::Rect& display_bounds, 225 const gfx::Rect& display_bounds,
228 const gfx::RectF& uv_rect) override; 226 const gfx::RectF& uv_rect) override;
229 virtual GLuint InsertFutureSyncPointCHROMIUM() override; 227 GLuint InsertFutureSyncPointCHROMIUM() override;
230 virtual void RetireSyncPointCHROMIUM(GLuint sync_point) override; 228 void RetireSyncPointCHROMIUM(GLuint sync_point) override;
231 229
232 void GetProgramInfoCHROMIUMHelper(GLuint program, std::vector<int8>* result); 230 void GetProgramInfoCHROMIUMHelper(GLuint program, std::vector<int8>* result);
233 GLint GetAttribLocationHelper(GLuint program, const char* name); 231 GLint GetAttribLocationHelper(GLuint program, const char* name);
234 GLint GetUniformLocationHelper(GLuint program, const char* name); 232 GLint GetUniformLocationHelper(GLuint program, const char* name);
235 bool GetActiveAttribHelper( 233 bool GetActiveAttribHelper(
236 GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, 234 GLuint program, GLuint index, GLsizei bufsize, GLsizei* length,
237 GLint* size, GLenum* type, char* name); 235 GLint* size, GLenum* type, char* name);
238 bool GetActiveUniformHelper( 236 bool GetActiveUniformHelper(
239 GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, 237 GLuint program, GLuint index, GLsizei bufsize, GLsizei* length,
240 GLint* size, GLenum* type, char* name); 238 GLint* size, GLenum* type, char* name);
241 239
242 void FreeUnusedSharedMemory(); 240 void FreeUnusedSharedMemory();
243 void FreeEverything(); 241 void FreeEverything();
244 242
245 // ContextSupport implementation. 243 // ContextSupport implementation.
246 virtual void SignalSyncPoint(uint32 sync_point, 244 void SignalSyncPoint(uint32 sync_point,
247 const base::Closure& callback) override; 245 const base::Closure& callback) override;
248 virtual void SignalQuery(uint32 query, 246 void SignalQuery(uint32 query, const base::Closure& callback) override;
249 const base::Closure& callback) override; 247 void SetSurfaceVisible(bool visible) override;
250 virtual void SetSurfaceVisible(bool visible) override;
251 248
252 void SetErrorMessageCallback( 249 void SetErrorMessageCallback(
253 GLES2ImplementationErrorMessageCallback* callback) { 250 GLES2ImplementationErrorMessageCallback* callback) {
254 error_message_callback_ = callback; 251 error_message_callback_ = callback;
255 } 252 }
256 253
257 ShareGroup* share_group() const { 254 ShareGroup* share_group() const {
258 return share_group_.get(); 255 return share_group_.get();
259 } 256 }
260 257
(...skipping 551 matching lines...) Expand 10 before | Expand all | Expand 10 after
812 809
813 inline bool GLES2Implementation::GetTexParameterivHelper( 810 inline bool GLES2Implementation::GetTexParameterivHelper(
814 GLenum /* target */, GLenum /* pname */, GLint* /* params */) { 811 GLenum /* target */, GLenum /* pname */, GLint* /* params */) {
815 return false; 812 return false;
816 } 813 }
817 814
818 } // namespace gles2 815 } // namespace gles2
819 } // namespace gpu 816 } // namespace gpu
820 817
821 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_ 818 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/client/gles2_cmd_helper.h ('k') | gpu/command_buffer/client/gles2_implementation_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698