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

Unified Diff: gpu/command_buffer/service/context_group.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: Rebase 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/context_group.cc
diff --git a/gpu/command_buffer/service/context_group.cc b/gpu/command_buffer/service/context_group.cc
index 56f70303af63af2016fb3037a538fbeeea596e6e..001b43c9d4db5e874113a5547e93ed75d3f41d29 100644
--- a/gpu/command_buffer/service/context_group.cc
+++ b/gpu/command_buffer/service/context_group.cc
@@ -104,14 +104,13 @@ ContextGroup::ContextGroup(
program_cache_(NULL),
feature_info_(feature_info) {
{
+ DCHECK(feature_info_);
if (!mailbox_manager_.get())
mailbox_manager_ = new MailboxManagerImpl;
if (!subscription_ref_set_.get())
subscription_ref_set_ = new SubscriptionRefSet();
if (!pending_valuebuffer_state_.get())
pending_valuebuffer_state_ = new ValueStateMap();
- if (!feature_info.get())
- feature_info_ = new FeatureInfo;
transfer_buffer_manager_ = new TransferBufferManager(memory_tracker_.get());
}
}
« no previous file with comments | « gpu/command_buffer/service/buffer_manager_unittest.cc ('k') | gpu/command_buffer/service/context_group_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698