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

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

Issue 7633060: Add option to not generate resources on bind in OpenGL ES (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nacl fix Created 9 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) 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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 161
162 void SetBucketAsCString(uint32 bucket_id, const char* str); 162 void SetBucketAsCString(uint32 bucket_id, const char* str);
163 163
164 void InitDecoder( 164 void InitDecoder(
165 const char* extensions, 165 const char* extensions,
166 bool has_alpha, 166 bool has_alpha,
167 bool has_depth, 167 bool has_depth,
168 bool has_stencil, 168 bool has_stencil,
169 bool request_alpha, 169 bool request_alpha,
170 bool request_depth, 170 bool request_depth,
171 bool request_stencil); 171 bool request_stencil,
172 bool bind_generates_resource);
172 173
173 const ContextGroup& group() const { 174 const ContextGroup& group() const {
174 return *group_.get(); 175 return *group_.get();
175 } 176 }
176 177
177 struct AttribInfo { 178 struct AttribInfo {
178 const char* name; 179 const char* name;
179 GLint size; 180 GLint size;
180 GLenum type; 181 GLenum type;
181 GLint location; 182 GLint location;
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 void DeleteIndexBuffer(); 416 void DeleteIndexBuffer();
416 417
417 GLuint client_vertex_shader_id_; 418 GLuint client_vertex_shader_id_;
418 GLuint client_fragment_shader_id_; 419 GLuint client_fragment_shader_id_;
419 }; 420 };
420 421
421 } // namespace gles2 422 } // namespace gles2
422 } // namespace gpu 423 } // namespace gpu
423 424
424 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_ 425 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698