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

Unified Diff: components/mus/gles2/command_buffer_driver.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
« no previous file with comments | « no previous file | components/mus/gles2/gpu_state.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/gles2/command_buffer_driver.cc
diff --git a/components/mus/gles2/command_buffer_driver.cc b/components/mus/gles2/command_buffer_driver.cc
index 1968114ae11eafcee53d711dfb0f836af69f58a4..3bb89a7f6108c34a9271adad9c83f65e06a0757f 100644
--- a/components/mus/gles2/command_buffer_driver.cc
+++ b/components/mus/gles2/command_buffer_driver.cc
@@ -129,12 +129,14 @@ bool CommandBufferDriver::Initialize(
// TODO(piman): ShaderTranslatorCache is currently per-ContextGroup but
// only needs to be per-thread.
const bool bind_generates_resource = attrib_helper.bind_generates_resource;
+ scoped_refptr<gpu::gles2::FeatureInfo> feature_info =
+ new gpu::gles2::FeatureInfo(gpu_state_->gpu_driver_bug_workarounds());
scoped_refptr<gpu::gles2::ContextGroup> context_group =
new gpu::gles2::ContextGroup(
gpu_state_->gpu_preferences(), gpu_state_->mailbox_manager(),
new GpuMemoryTracker,
new gpu::gles2::ShaderTranslatorCache(gpu_state_->gpu_preferences()),
- new gpu::gles2::FramebufferCompletenessCache, nullptr, nullptr,
+ new gpu::gles2::FramebufferCompletenessCache, feature_info, nullptr,
nullptr, bind_generates_resource);
command_buffer_.reset(
« no previous file with comments | « no previous file | components/mus/gles2/gpu_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698