| 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 "gpu/command_buffer/common/gl_mock.h" | |
| 8 #include "gpu/command_buffer/common/gles2_cmd_format.h" | 7 #include "gpu/command_buffer/common/gles2_cmd_format.h" |
| 9 #include "gpu/command_buffer/service/gl_utils.h" | 8 #include "gpu/command_buffer/service/gl_utils.h" |
| 10 #include "gpu/command_buffer/service/shader_translator.h" | 9 #include "gpu/command_buffer/service/shader_translator.h" |
| 11 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
| 12 #include "ui/gl/gl_bindings.h" | 11 #include "ui/gl/gl_bindings.h" |
| 12 #include "ui/gl/gl_mock.h" |
| 13 | 13 |
| 14 using ::testing::_; | 14 using ::testing::_; |
| 15 using ::testing::ElementsAreArray; | 15 using ::testing::ElementsAreArray; |
| 16 using ::testing::Invoke; | 16 using ::testing::Invoke; |
| 17 using ::testing::SetArgPointee; | 17 using ::testing::SetArgPointee; |
| 18 using ::testing::SetArrayArgument; | 18 using ::testing::SetArrayArgument; |
| 19 | 19 |
| 20 namespace { | 20 namespace { |
| 21 typedef gpu::gles2::ShaderTranslator::VariableMap VariableMap; | 21 typedef gpu::gles2::ShaderTranslator::VariableMap VariableMap; |
| 22 } // anonymous namespace | 22 } // anonymous namespace |
| (...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 440 SetExpectationsForLoadLinkedProgram(kProgramId, &emulator2); | 440 SetExpectationsForLoadLinkedProgram(kProgramId, &emulator2); |
| 441 EXPECT_EQ(ProgramCache::PROGRAM_LOAD_SUCCESS, cache_->LoadLinkedProgram( | 441 EXPECT_EQ(ProgramCache::PROGRAM_LOAD_SUCCESS, cache_->LoadLinkedProgram( |
| 442 kProgramId, | 442 kProgramId, |
| 443 vertex_shader_, | 443 vertex_shader_, |
| 444 fragment_shader_, | 444 fragment_shader_, |
| 445 NULL)); | 445 NULL)); |
| 446 } | 446 } |
| 447 | 447 |
| 448 } // namespace gles2 | 448 } // namespace gles2 |
| 449 } // namespace gpu | 449 } // namespace gpu |
| OLD | NEW |