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

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

Issue 2134006: Added EGL based GLContext.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 6 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.h" 8 #include "app/gfx/gl/gl_context_stub.h"
9 #include "app/gfx/gl/gl_mock.h"
9 #include "gpu/command_buffer/common/gles2_cmd_format.h" 10 #include "gpu/command_buffer/common/gles2_cmd_format.h"
10 #include "gpu/command_buffer/common/gles2_cmd_utils.h" 11 #include "gpu/command_buffer/common/gles2_cmd_utils.h"
11 #include "gpu/command_buffer/service/buffer_manager.h" 12 #include "gpu/command_buffer/service/buffer_manager.h"
12 #include "gpu/command_buffer/service/cmd_buffer_engine.h" 13 #include "gpu/command_buffer/service/cmd_buffer_engine.h"
13 #include "gpu/command_buffer/service/context_group.h" 14 #include "gpu/command_buffer/service/context_group.h"
14 #include "gpu/command_buffer/service/framebuffer_manager.h" 15 #include "gpu/command_buffer/service/framebuffer_manager.h"
15 #include "gpu/command_buffer/service/gl_mock.h"
16 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" 16 #include "gpu/command_buffer/service/gles2_cmd_decoder.h"
17 #include "gpu/command_buffer/service/program_manager.h" 17 #include "gpu/command_buffer/service/program_manager.h"
18 #include "gpu/command_buffer/service/renderbuffer_manager.h" 18 #include "gpu/command_buffer/service/renderbuffer_manager.h"
19 #include "gpu/command_buffer/service/shader_manager.h" 19 #include "gpu/command_buffer/service/shader_manager.h"
20 #include "gpu/command_buffer/service/texture_manager.h" 20 #include "gpu/command_buffer/service/texture_manager.h"
21 #include "gpu/GLES2/gles2_command_buffer.h" 21 #include "gpu/GLES2/gles2_command_buffer.h"
22 #include "testing/gtest/include/gtest/gtest.h" 22 #include "testing/gtest/include/gtest/gtest.h"
23 23
24 namespace gpu { 24 namespace gpu {
25 namespace gles2 { 25 namespace gles2 {
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 GLenum format, GLenum type, 208 GLenum format, GLenum type,
209 uint32 shared_memory_id, uint32 shared_memory_offset); 209 uint32 shared_memory_id, uint32 shared_memory_offset);
210 void DoVertexAttribPointer( 210 void DoVertexAttribPointer(
211 GLuint index, GLint size, GLenum type, GLsizei stride, GLuint offset); 211 GLuint index, GLint size, GLenum type, GLsizei stride, GLuint offset);
212 212
213 GLvoid* BufferOffset(unsigned i) { 213 GLvoid* BufferOffset(unsigned i) {
214 return static_cast<int8 *>(NULL)+(i); 214 return static_cast<int8 *>(NULL)+(i);
215 } 215 }
216 216
217 // Use StrictMock to make 100% sure we know how GL will be called. 217 // Use StrictMock to make 100% sure we know how GL will be called.
218 scoped_ptr< ::testing::StrictMock< ::gles2::MockGLInterface> > gl_; 218 scoped_ptr< ::testing::StrictMock< ::gfx::MockGLInterface> > gl_;
219 scoped_ptr<gfx::GLContext> context_; 219 scoped_ptr<gfx::StubGLContext> context_;
220 scoped_ptr<GLES2Decoder> decoder_; 220 scoped_ptr<GLES2Decoder> decoder_;
221 221
222 GLuint client_buffer_id_; 222 GLuint client_buffer_id_;
223 GLuint client_framebuffer_id_; 223 GLuint client_framebuffer_id_;
224 GLuint client_program_id_; 224 GLuint client_program_id_;
225 GLuint client_renderbuffer_id_; 225 GLuint client_renderbuffer_id_;
226 GLuint client_shader_id_; 226 GLuint client_shader_id_;
227 GLuint client_texture_id_; 227 GLuint client_texture_id_;
228 GLuint client_element_buffer_id_; 228 GLuint client_element_buffer_id_;
229 229
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 358
359 GLuint client_vertex_shader_id_; 359 GLuint client_vertex_shader_id_;
360 GLuint client_fragment_shader_id_; 360 GLuint client_fragment_shader_id_;
361 }; 361 };
362 362
363 } // namespace gles2 363 } // namespace gles2
364 } // namespace gpu 364 } // namespace gpu
365 365
366 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_ 366 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_
367 367
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698