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 #include "gpu/command_buffer/service/memory_program_cache.h" | 5 #include "gpu/command_buffer/service/memory_program_cache.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
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/service/gl_utils.h" | 9 #include "gpu/command_buffer/service/gl_utils.h" |
10 #include "gpu/command_buffer/service/gpu_service_test.h" | 10 #include "gpu/command_buffer/service/gpu_service_test.h" |
11 #include "gpu/command_buffer/service/shader_manager.h" | 11 #include "gpu/command_buffer/service/shader_manager.h" |
12 #include "gpu/command_buffer/service/shader_translator.h" | 12 #include "gpu/command_buffer/service/shader_translator.h" |
13 #include "gpu/command_buffer/service/test_helper.h" | 13 #include "gpu/command_buffer/service/test_helper.h" |
14 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
15 #include "ui/gl/gl_bindings.h" | 15 #include "ui/gl/gl_bindings.h" |
16 #include "ui/gl/gl_mock.h" | 16 #include "ui/gl/gl_mock.h" |
17 | 17 |
18 using ::testing::_; | 18 using ::testing::_; |
19 using ::testing::ElementsAreArray; | |
20 using ::testing::Invoke; | 19 using ::testing::Invoke; |
21 using ::testing::SetArgPointee; | 20 using ::testing::SetArgPointee; |
22 using ::testing::SetArrayArgument; | |
23 | 21 |
24 namespace gpu { | 22 namespace gpu { |
25 namespace gles2 { | 23 namespace gles2 { |
26 | 24 |
27 class ProgramBinaryEmulator { | 25 class ProgramBinaryEmulator { |
28 public: | 26 public: |
29 ProgramBinaryEmulator(GLsizei length, | 27 ProgramBinaryEmulator(GLsizei length, |
30 GLenum format, | 28 GLenum format, |
31 const char* binary) | 29 const char* binary) |
32 : length_(length), | 30 : length_(length), |
(...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
624 NULL, | 622 NULL, |
625 fragment_shader_, | 623 fragment_shader_, |
626 NULL, | 624 NULL, |
627 NULL, | 625 NULL, |
628 base::Bind(&MemoryProgramCacheTest::ShaderCacheCb, | 626 base::Bind(&MemoryProgramCacheTest::ShaderCacheCb, |
629 base::Unretained(this)))); | 627 base::Unretained(this)))); |
630 } | 628 } |
631 | 629 |
632 } // namespace gles2 | 630 } // namespace gles2 |
633 } // namespace gpu | 631 } // namespace gpu |
OLD | NEW |