| 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/feature_info.h" | 5 #include "gpu/command_buffer/service/feature_info.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/strings/string_number_conversions.h" | 9 #include "base/strings/string_number_conversions.h" |
| 10 #include "gpu/command_buffer/service/gpu_driver_bug_workaround_type.h" | |
| 11 #include "gpu/command_buffer/service/gpu_switches.h" | 10 #include "gpu/command_buffer/service/gpu_switches.h" |
| 12 #include "gpu/command_buffer/service/test_helper.h" | 11 #include "gpu/command_buffer/service/test_helper.h" |
| 13 #include "gpu/command_buffer/service/texture_manager.h" | 12 #include "gpu/command_buffer/service/texture_manager.h" |
| 13 #include "gpu/config/gpu_driver_bug_workaround_type.h" |
| 14 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
| 15 #include "ui/gl/gl_implementation.h" | 15 #include "ui/gl/gl_implementation.h" |
| 16 #include "ui/gl/gl_mock.h" | 16 #include "ui/gl/gl_mock.h" |
| 17 | 17 |
| 18 using ::gfx::MockGLInterface; | 18 using ::gfx::MockGLInterface; |
| 19 using ::testing::_; | 19 using ::testing::_; |
| 20 using ::testing::DoAll; | 20 using ::testing::DoAll; |
| 21 using ::testing::HasSubstr; | 21 using ::testing::HasSubstr; |
| 22 using ::testing::InSequence; | 22 using ::testing::InSequence; |
| 23 using ::testing::MatcherCast; | 23 using ::testing::MatcherCast; |
| (...skipping 831 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 855 EXPECT_EQ(0, info_->workarounds().max_cube_map_texture_size); | 855 EXPECT_EQ(0, info_->workarounds().max_cube_map_texture_size); |
| 856 EXPECT_EQ(0, info_->workarounds().max_texture_size); | 856 EXPECT_EQ(0, info_->workarounds().max_texture_size); |
| 857 info_->AddFeatures(command_line); | 857 info_->AddFeatures(command_line); |
| 858 EXPECT_TRUE(info_->workarounds().exit_on_context_lost); | 858 EXPECT_TRUE(info_->workarounds().exit_on_context_lost); |
| 859 EXPECT_EQ(1024, info_->workarounds().max_cube_map_texture_size); | 859 EXPECT_EQ(1024, info_->workarounds().max_cube_map_texture_size); |
| 860 EXPECT_EQ(4096, info_->workarounds().max_texture_size); | 860 EXPECT_EQ(4096, info_->workarounds().max_texture_size); |
| 861 } | 861 } |
| 862 | 862 |
| 863 } // namespace gles2 | 863 } // namespace gles2 |
| 864 } // namespace gpu | 864 } // namespace gpu |
| OLD | NEW |