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

Side by Side Diff: gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.h

Issue 9309047: Swizzle Uniform Locations (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove unsigned math Created 8 years, 10 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_ 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_
6 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_ 6 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_
7 7
8 #include "gpu/command_buffer/common/gl_mock.h" 8 #include "gpu/command_buffer/common/gl_mock.h"
9 #include "gpu/command_buffer/common/gles2_cmd_format.h" 9 #include "gpu/command_buffer/common/gles2_cmd_format.h"
10 #include "gpu/command_buffer/common/gles2_cmd_utils.h" 10 #include "gpu/command_buffer/common/gles2_cmd_utils.h"
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 } 194 }
195 195
196 ShaderManager::ShaderInfo* GetShaderInfo(GLuint service_id) { 196 ShaderManager::ShaderInfo* GetShaderInfo(GLuint service_id) {
197 return group_->shader_manager()->GetShaderInfo(service_id); 197 return group_->shader_manager()->GetShaderInfo(service_id);
198 } 198 }
199 199
200 ProgramManager::ProgramInfo* GetProgramInfo(GLuint service_id) { 200 ProgramManager::ProgramInfo* GetProgramInfo(GLuint service_id) {
201 return group_->program_manager()->GetProgramInfo(service_id); 201 return group_->program_manager()->GetProgramInfo(service_id);
202 } 202 }
203 203
204 ProgramManager* program_manager() {
205 return group_->program_manager();
206 }
207
204 void DoCreateProgram(GLuint client_id, GLuint service_id); 208 void DoCreateProgram(GLuint client_id, GLuint service_id);
205 void DoCreateShader(GLenum shader_type, GLuint client_id, GLuint service_id); 209 void DoCreateShader(GLenum shader_type, GLuint client_id, GLuint service_id);
206 210
207 void SetBucketAsCString(uint32 bucket_id, const char* str); 211 void SetBucketAsCString(uint32 bucket_id, const char* str);
208 212
209 void InitDecoder( 213 void InitDecoder(
210 const char* extensions, 214 const char* extensions,
211 bool has_alpha, 215 bool has_alpha,
212 bool has_depth, 216 bool has_depth,
213 bool has_stencil, 217 bool has_stencil,
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
468 protected: 472 protected:
469 virtual void SetUp() OVERRIDE; 473 virtual void SetUp() OVERRIDE;
470 virtual void TearDown() OVERRIDE; 474 virtual void TearDown() OVERRIDE;
471 475
472 }; 476 };
473 477
474 } // namespace gles2 478 } // namespace gles2
475 } // namespace gpu 479 } // namespace gpu
476 480
477 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_ 481 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder_unittest_2_autogen.h ('k') | gpu/command_buffer/service/program_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698