| Index: gpu/command_buffer/service/feature_info_unittest.cc
|
| diff --git a/gpu/command_buffer/service/feature_info_unittest.cc b/gpu/command_buffer/service/feature_info_unittest.cc
|
| index 62c3a2e0aecc8e0e7f73a7100f9cedf09edaa3c0..b631d0dd9b8cb482b9e26f9c129ed09b69a1cec3 100644
|
| --- a/gpu/command_buffer/service/feature_info_unittest.cc
|
| +++ b/gpu/command_buffer/service/feature_info_unittest.cc
|
| @@ -77,7 +77,8 @@ class FeatureInfoTest
|
| GpuServiceTest::SetUpWithGLVersion(version, extensions);
|
| TestHelper::SetupFeatureInfoInitExpectationsWithGLVersion(
|
| gl_.get(), extensions, renderer, version);
|
| - info_ = new FeatureInfo();
|
| + gpu::GpuDriverBugWorkarounds::Initialize(gpu_driver_bug_workarounds_);
|
| + info_ = new FeatureInfo(gpu_driver_bug_workarounds_);
|
| info_->InitializeForTesting();
|
| }
|
|
|
| @@ -89,7 +90,8 @@ class FeatureInfoTest
|
| GpuServiceTest::SetUpWithGLVersion(version, extensions);
|
| TestHelper::SetupFeatureInfoInitExpectationsWithGLVersion(
|
| gl_.get(), extensions, renderer, version);
|
| - info_ = new FeatureInfo();
|
| + gpu::GpuDriverBugWorkarounds::Initialize(gpu_driver_bug_workarounds_);
|
| + info_ = new FeatureInfo(gpu_driver_bug_workarounds_);
|
| info_->InitializeForTesting(disallowed_features);
|
| }
|
|
|
| @@ -101,13 +103,17 @@ class FeatureInfoTest
|
| GpuServiceTest::SetUpWithGLVersion(version, extensions);
|
| TestHelper::SetupFeatureInfoInitExpectationsWithGLVersion(
|
| gl_.get(), extensions, renderer, version);
|
| - info_ = new FeatureInfo(command_line);
|
| + gpu::GpuDriverBugWorkarounds::Initialize(&command_line,
|
| + gpu_driver_bug_workarounds_);
|
| + info_ = new FeatureInfo(command_line, gpu_driver_bug_workarounds_);
|
| info_->InitializeForTesting();
|
| }
|
|
|
| void SetupWithCommandLine(const base::CommandLine& command_line) {
|
| GpuServiceTest::SetUp();
|
| - info_ = new FeatureInfo(command_line);
|
| + gpu::GpuDriverBugWorkarounds::Initialize(&command_line,
|
| + gpu_driver_bug_workarounds_);
|
| + info_ = new FeatureInfo(command_line, gpu_driver_bug_workarounds_);
|
| }
|
|
|
| void SetupInitExpectationsWithCommandLine(
|
| @@ -116,13 +122,16 @@ class FeatureInfoTest
|
| GpuServiceTest::SetUpWithGLVersion("2.0", extensions);
|
| TestHelper::SetupFeatureInfoInitExpectationsWithGLVersion(
|
| gl_.get(), extensions, "", "");
|
| - info_ = new FeatureInfo(command_line);
|
| + gpu::GpuDriverBugWorkarounds::Initialize(&command_line,
|
| + gpu_driver_bug_workarounds_);
|
| + info_ = new FeatureInfo(command_line, gpu_driver_bug_workarounds_);
|
| info_->InitializeForTesting();
|
| }
|
|
|
| void SetupWithoutInit() {
|
| GpuServiceTest::SetUp();
|
| - info_ = new FeatureInfo();
|
| + gpu::GpuDriverBugWorkarounds::Initialize(gpu_driver_bug_workarounds_);
|
| + info_ = new FeatureInfo(gpu_driver_bug_workarounds_);
|
| }
|
|
|
| protected:
|
|
|