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

Unified Diff: components/mus/gles2/command_buffer_driver.cc

Issue 1716813002: Use GpuPreferences to avoid directly accessing switches in gpu related code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update Created 4 years, 10 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 | « android_webview/browser/deferred_gpu_command_service.cc ('k') | 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 e9c6a50d97b11ac802108a9d9f095019fe83fe30..efe155604dacbb8cadd4e91e38bf5ebf821cf2c6 100644
--- a/components/mus/gles2/command_buffer_driver.cc
+++ b/components/mus/gles2/command_buffer_driver.cc
@@ -111,8 +111,9 @@ bool CommandBufferDriver::Initialize(
const bool bind_generates_resource = attrib_helper.bind_generates_resource;
scoped_refptr<gpu::gles2::ContextGroup> context_group =
new gpu::gles2::ContextGroup(
- gpu_state_->mailbox_manager(), new GpuMemoryTracker,
- new gpu::gles2::ShaderTranslatorCache,
+ gpu_state_->gpu_preferences(), gpu_state_->mailbox_manager(),
+ new GpuMemoryTracker,
+ new gpu::gles2::ShaderTranslatorCache(gpu_state_->gpu_preferences()),
new gpu::gles2::FramebufferCompletenessCache, nullptr, nullptr,
nullptr, bind_generates_resource);
« no previous file with comments | « android_webview/browser/deferred_gpu_command_service.cc ('k') | components/mus/gles2/gpu_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698