OLD | NEW |
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_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/gles2_cmd_format.h" | 8 #include "gpu/command_buffer/common/gles2_cmd_format.h" |
9 #include "gpu/command_buffer/common/gles2_cmd_utils.h" | 9 #include "gpu/command_buffer/common/gles2_cmd_utils.h" |
10 #include "gpu/command_buffer/service/buffer_manager.h" | 10 #include "gpu/command_buffer/service/buffer_manager.h" |
(...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
459 static const GLenum kUniform2Type = GL_INT_VEC2; | 459 static const GLenum kUniform2Type = GL_INT_VEC2; |
460 static const GLenum kUniform3Type = GL_FLOAT_VEC3; | 460 static const GLenum kUniform3Type = GL_FLOAT_VEC3; |
461 static const GLenum kUniformCubemapType = GL_SAMPLER_CUBE; | 461 static const GLenum kUniformCubemapType = GL_SAMPLER_CUBE; |
462 static const GLint kInvalidUniformLocation = 30; | 462 static const GLint kInvalidUniformLocation = 30; |
463 static const GLint kBadUniformIndex = 1000; | 463 static const GLint kBadUniformIndex = 1000; |
464 | 464 |
465 // Use StrictMock to make 100% sure we know how GL will be called. | 465 // Use StrictMock to make 100% sure we know how GL will be called. |
466 scoped_ptr< ::testing::StrictMock< ::gfx::MockGLInterface> > gl_; | 466 scoped_ptr< ::testing::StrictMock< ::gfx::MockGLInterface> > gl_; |
467 scoped_refptr<gfx::GLSurfaceStub> surface_; | 467 scoped_refptr<gfx::GLSurfaceStub> surface_; |
468 scoped_refptr<gfx::GLContextStub> context_; | 468 scoped_refptr<gfx::GLContextStub> context_; |
| 469 scoped_ptr<GLES2Decoder> mock_decoder_; |
469 scoped_ptr<GLES2Decoder> decoder_; | 470 scoped_ptr<GLES2Decoder> decoder_; |
470 | 471 |
471 GLuint client_buffer_id_; | 472 GLuint client_buffer_id_; |
472 GLuint client_framebuffer_id_; | 473 GLuint client_framebuffer_id_; |
473 GLuint client_program_id_; | 474 GLuint client_program_id_; |
474 GLuint client_renderbuffer_id_; | 475 GLuint client_renderbuffer_id_; |
475 GLuint client_shader_id_; | 476 GLuint client_shader_id_; |
476 GLuint client_texture_id_; | 477 GLuint client_texture_id_; |
477 GLuint client_element_buffer_id_; | 478 GLuint client_element_buffer_id_; |
478 GLuint client_vertex_shader_id_; | 479 GLuint client_vertex_shader_id_; |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
531 protected: | 532 protected: |
532 virtual void SetUp() OVERRIDE; | 533 virtual void SetUp() OVERRIDE; |
533 virtual void TearDown() OVERRIDE; | 534 virtual void TearDown() OVERRIDE; |
534 | 535 |
535 }; | 536 }; |
536 | 537 |
537 } // namespace gles2 | 538 } // namespace gles2 |
538 } // namespace gpu | 539 } // namespace gpu |
539 | 540 |
540 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_ | 541 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_ |
OLD | NEW |