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_service_test.h" | 10 #include "gpu/command_buffer/service/gpu_service_test.h" |
(...skipping 24 matching lines...) Expand all Loading... |
35 namespace { | 35 namespace { |
36 const char kGLRendererStringANGLE[] = "ANGLE (some renderer)"; | 36 const char kGLRendererStringANGLE[] = "ANGLE (some renderer)"; |
37 } // anonymous namespace | 37 } // anonymous namespace |
38 | 38 |
39 class FeatureInfoTest : public GpuServiceTest { | 39 class FeatureInfoTest : public GpuServiceTest { |
40 public: | 40 public: |
41 FeatureInfoTest() { | 41 FeatureInfoTest() { |
42 } | 42 } |
43 | 43 |
44 void SetupInitExpectations(const char* extensions) { | 44 void SetupInitExpectations(const char* extensions) { |
45 SetupInitExpectationsWithGLVersion(extensions, "", ""); | 45 SetupInitExpectationsWithGLVersion(extensions, "", "3.0"); |
46 } | 46 } |
47 | 47 |
48 void SetupInitExpectationsWithGLVersion( | 48 void SetupInitExpectationsWithGLVersion( |
49 const char* extensions, const char* renderer, const char* version) { | 49 const char* extensions, const char* renderer, const char* version) { |
50 GpuServiceTest::SetUpWithGLVersion(version, extensions); | 50 GpuServiceTest::SetUpWithGLVersion(version, extensions); |
51 TestHelper::SetupFeatureInfoInitExpectationsWithGLVersion( | 51 TestHelper::SetupFeatureInfoInitExpectationsWithGLVersion( |
52 gl_.get(), extensions, renderer, version); | 52 gl_.get(), extensions, renderer, version); |
53 info_ = new FeatureInfo(); | 53 info_ = new FeatureInfo(); |
54 info_->Initialize(); | 54 info_->Initialize(); |
55 } | 55 } |
(...skipping 1415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1471 EXPECT_FALSE( | 1471 EXPECT_FALSE( |
1472 info_->GetTextureFormatValidator(GL_RG_EXT).IsValid(GL_HALF_FLOAT_OES)); | 1472 info_->GetTextureFormatValidator(GL_RG_EXT).IsValid(GL_HALF_FLOAT_OES)); |
1473 EXPECT_TRUE( | 1473 EXPECT_TRUE( |
1474 info_->GetTextureFormatValidator(GL_RED_EXT).IsValid(GL_UNSIGNED_BYTE)); | 1474 info_->GetTextureFormatValidator(GL_RED_EXT).IsValid(GL_UNSIGNED_BYTE)); |
1475 EXPECT_TRUE( | 1475 EXPECT_TRUE( |
1476 info_->GetTextureFormatValidator(GL_RG_EXT).IsValid(GL_UNSIGNED_BYTE)); | 1476 info_->GetTextureFormatValidator(GL_RG_EXT).IsValid(GL_UNSIGNED_BYTE)); |
1477 } | 1477 } |
1478 | 1478 |
1479 } // namespace gles2 | 1479 } // namespace gles2 |
1480 } // namespace gpu | 1480 } // namespace gpu |
OLD | NEW |