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

Unified Diff: content/common/gpu/gpu_channel_test_common.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 | « content/common/gpu/gpu_channel_test_common.h ('k') | content/common/gpu/gpu_command_buffer_stub.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/gpu_channel_test_common.cc
diff --git a/content/common/gpu/gpu_channel_test_common.cc b/content/common/gpu/gpu_channel_test_common.cc
index ad83c2d5479a6072dd895b46c9a16e87449a0d5a..97d209952d28e746dac45f43ef890cafcf0338cb 100644
--- a/content/common/gpu/gpu_channel_test_common.cc
+++ b/content/common/gpu/gpu_channel_test_common.cc
@@ -60,12 +60,14 @@ void TestGpuChannelManagerDelegate::SendAcceleratedSurfaceCreatedChildWindow(
#endif
TestGpuChannelManager::TestGpuChannelManager(
+ const gpu::GpuPreferences& gpu_preferences,
GpuChannelManagerDelegate* delegate,
base::SingleThreadTaskRunner* task_runner,
base::SingleThreadTaskRunner* io_task_runner,
gpu::SyncPointManager* sync_point_manager,
GpuMemoryBufferFactory* gpu_memory_buffer_factory)
- : GpuChannelManager(delegate,
+ : GpuChannelManager(gpu_preferences,
+ delegate,
nullptr,
task_runner,
io_task_runner,
@@ -146,7 +148,8 @@ GpuChannelTestCommon::GpuChannelTestCommon()
sync_point_manager_(new gpu::SyncPointManager(false)),
channel_manager_delegate_(new TestGpuChannelManagerDelegate()),
channel_manager_(
- new TestGpuChannelManager(channel_manager_delegate_.get(),
+ new TestGpuChannelManager(gpu_preferences_,
+ channel_manager_delegate_.get(),
task_runner_.get(),
io_task_runner_.get(),
sync_point_manager_.get(),
« no previous file with comments | « content/common/gpu/gpu_channel_test_common.h ('k') | content/common/gpu/gpu_command_buffer_stub.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698