Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(197)

Unified Diff: gpu/command_buffer/service/mailbox_manager_unittest.cc

Issue 1871613002: Compute GpuDriverBugWorkarounds only one time in the GPU process (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: gpu/command_buffer/service/mailbox_manager_unittest.cc
diff --git a/gpu/command_buffer/service/mailbox_manager_unittest.cc b/gpu/command_buffer/service/mailbox_manager_unittest.cc
index 735fd4a151250f8814628b5221e078ff82a37bee..bb39d722e10f060a2928dfdff161e82144b7ba11 100644
--- a/gpu/command_buffer/service/mailbox_manager_unittest.cc
+++ b/gpu/command_buffer/service/mailbox_manager_unittest.cc
@@ -32,14 +32,16 @@ class MailboxManagerTest : public GpuServiceTest {
protected:
void SetUp() override {
GpuServiceTest::SetUp();
- feature_info_ = new FeatureInfo;
+ GpuDriverBugWorkarounds::Initialize(gpu_driver_bug_workarounds_);
+ feature_info_ = new FeatureInfo(gpu_driver_bug_workarounds_);
manager_ = new MailboxManagerImpl;
DCHECK(!manager_->UsesSync());
}
virtual void SetUpWithSynchronizer() {
GpuServiceTest::SetUp();
- feature_info_ = new FeatureInfo;
+ GpuDriverBugWorkarounds::Initialize(gpu_driver_bug_workarounds_);
+ feature_info_ = new FeatureInfo(gpu_driver_bug_workarounds_);
manager_ = new MailboxManagerSync();
DCHECK(manager_->UsesSync());
}

Powered by Google App Engine
This is Rietveld 408576698