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

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

Issue 3150026: Fixes for the default texture.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 4 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 "app/gfx/gl/gl_context_stub.h" 8 #include "app/gfx/gl/gl_context_stub.h"
9 #include "app/gfx/gl/gl_mock.h" 9 #include "app/gfx/gl/gl_mock.h"
10 #include "gpu/command_buffer/common/gles2_cmd_format.h" 10 #include "gpu/command_buffer/common/gles2_cmd_format.h"
(...skipping 30 matching lines...) Expand all
41 static const GLint kMaxTextureSize = 2048; 41 static const GLint kMaxTextureSize = 2048;
42 static const GLint kMaxCubeMapTextureSize = 256; 42 static const GLint kMaxCubeMapTextureSize = 256;
43 static const GLint kNumVertexAttribs = 16; 43 static const GLint kNumVertexAttribs = 16;
44 static const GLint kNumTextureUnits = 8; 44 static const GLint kNumTextureUnits = 8;
45 static const GLint kMaxTextureImageUnits = 8; 45 static const GLint kMaxTextureImageUnits = 8;
46 static const GLint kMaxVertexTextureImageUnits = 2; 46 static const GLint kMaxVertexTextureImageUnits = 2;
47 static const GLint kMaxFragmentUniformVectors = 16; 47 static const GLint kMaxFragmentUniformVectors = 16;
48 static const GLint kMaxVaryingVectors = 8; 48 static const GLint kMaxVaryingVectors = 8;
49 static const GLint kMaxVertexUniformVectors = 128; 49 static const GLint kMaxVertexUniformVectors = 128;
50 50
51 static const GLuint kServiceBlackTexture2dId = 701;
52 static const GLuint kServiceBlackTextureCubemapId = 702;
53
54 static const GLuint kServiceAttrib0BufferId = 801; 51 static const GLuint kServiceAttrib0BufferId = 801;
55 52
56 static const GLuint kServiceBufferId = 301; 53 static const GLuint kServiceBufferId = 301;
57 static const GLuint kServiceFramebufferId = 302; 54 static const GLuint kServiceFramebufferId = 302;
58 static const GLuint kServiceRenderbufferId = 303; 55 static const GLuint kServiceRenderbufferId = 303;
59 static const GLuint kServiceTextureId = 304; 56 static const GLuint kServiceTextureId = 304;
60 static const GLuint kServiceProgramId = 305; 57 static const GLuint kServiceProgramId = 305;
61 static const GLuint kServiceShaderId = 306; 58 static const GLuint kServiceShaderId = 306;
62 static const GLuint kServiceElementBufferId = 307; 59 static const GLuint kServiceElementBufferId = 307;
63 60
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 ProgramManager::ProgramInfo* GetProgramInfo(GLuint service_id) { 158 ProgramManager::ProgramInfo* GetProgramInfo(GLuint service_id) {
162 return group_.program_manager()->GetProgramInfo(service_id); 159 return group_.program_manager()->GetProgramInfo(service_id);
163 } 160 }
164 161
165 void DoCreateShader(GLenum shader_type, GLuint client_id, GLuint service_id); 162 void DoCreateShader(GLenum shader_type, GLuint client_id, GLuint service_id);
166 163
167 void SetBucketAsCString(uint32 bucket_id, const char* str); 164 void SetBucketAsCString(uint32 bucket_id, const char* str);
168 165
169 void InitDecoder(const char* extensions); 166 void InitDecoder(const char* extensions);
170 167
168 const ContextGroup& group() const {
169 return group_;
170 }
171
171 struct AttribInfo { 172 struct AttribInfo {
172 const char* name; 173 const char* name;
173 GLint size; 174 GLint size;
174 GLenum type; 175 GLenum type;
175 GLint location; 176 GLint location;
176 }; 177 };
177 178
178 struct UniformInfo { 179 struct UniformInfo {
179 const char* name; 180 const char* name;
180 GLint size; 181 GLint size;
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 375
375 GLuint client_vertex_shader_id_; 376 GLuint client_vertex_shader_id_;
376 GLuint client_fragment_shader_id_; 377 GLuint client_fragment_shader_id_;
377 }; 378 };
378 379
379 } // namespace gles2 380 } // namespace gles2
380 } // namespace gpu 381 } // namespace gpu
381 382
382 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_ 383 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_
383 384
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698