| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 619 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 630 static const char* kOutputVariable1NameESSL3; | 630 static const char* kOutputVariable1NameESSL3; |
| 631 | 631 |
| 632 // Use StrictMock to make 100% sure we know how GL will be called. | 632 // Use StrictMock to make 100% sure we know how GL will be called. |
| 633 std::unique_ptr<::testing::StrictMock<::gl::MockGLInterface>> gl_; | 633 std::unique_ptr<::testing::StrictMock<::gl::MockGLInterface>> gl_; |
| 634 scoped_refptr<gl::GLSurfaceStub> surface_; | 634 scoped_refptr<gl::GLSurfaceStub> surface_; |
| 635 scoped_refptr<GLContextMock> context_; | 635 scoped_refptr<GLContextMock> context_; |
| 636 std::unique_ptr<MockGLES2Decoder> mock_decoder_; | 636 std::unique_ptr<MockGLES2Decoder> mock_decoder_; |
| 637 std::unique_ptr<GLES2Decoder> decoder_; | 637 std::unique_ptr<GLES2Decoder> decoder_; |
| 638 MemoryTracker* memory_tracker_; | 638 MemoryTracker* memory_tracker_; |
| 639 | 639 |
| 640 bool surface_supports_draw_rectangle_ = false; |
| 641 |
| 640 GLuint client_buffer_id_; | 642 GLuint client_buffer_id_; |
| 641 GLuint client_framebuffer_id_; | 643 GLuint client_framebuffer_id_; |
| 642 GLuint client_program_id_; | 644 GLuint client_program_id_; |
| 643 GLuint client_renderbuffer_id_; | 645 GLuint client_renderbuffer_id_; |
| 644 GLuint client_sampler_id_; | 646 GLuint client_sampler_id_; |
| 645 GLuint client_shader_id_; | 647 GLuint client_shader_id_; |
| 646 GLuint client_texture_id_; | 648 GLuint client_texture_id_; |
| 647 GLuint client_element_buffer_id_; | 649 GLuint client_element_buffer_id_; |
| 648 GLuint client_vertex_shader_id_; | 650 GLuint client_vertex_shader_id_; |
| 649 GLuint client_fragment_shader_id_; | 651 GLuint client_fragment_shader_id_; |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 784 if (arg[i] != array[i]) | 786 if (arg[i] != array[i]) |
| 785 return false; | 787 return false; |
| 786 } | 788 } |
| 787 return true; | 789 return true; |
| 788 } | 790 } |
| 789 | 791 |
| 790 } // namespace gles2 | 792 } // namespace gles2 |
| 791 } // namespace gpu | 793 } // namespace gpu |
| 792 | 794 |
| 793 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_ | 795 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_UNITTEST_BASE_H_ |
| OLD | NEW |