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

Unified Diff: components/mus/common/gpu_service.cc

Issue 2097533005: Set Chrome command buffer to be the default GPU command buffer (was mojo command buffer) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added #else Created 4 years, 6 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/common/switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/common/gpu_service.cc
diff --git a/components/mus/common/gpu_service.cc b/components/mus/common/gpu_service.cc
index 0c4d3427f94158f1e5edfda8755cda57dc7d742b..c3b15ff7cbf367a08a042f556ee07bd6f3771316 100644
--- a/components/mus/common/gpu_service.cc
+++ b/components/mus/common/gpu_service.cc
@@ -7,6 +7,7 @@
#include "base/command_line.h"
#include "base/memory/singleton.h"
#include "base/threading/thread_task_runner_handle.h"
+#include "build/build_config.h"
#include "components/mus/common/gpu_type_converters.h"
#include "components/mus/common/mojo_gpu_memory_buffer_manager.h"
#include "components/mus/common/switches.h"
@@ -32,8 +33,14 @@ GpuService::~GpuService() {}
// static
bool GpuService::UseChromeGpuCommandBuffer() {
- return base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kUseChromeGpuCommandBufferInMus);
+// TODO(penghuang): Kludge: Running with Chrome GPU command buffer by default
+// breaks unit tests on Windows
+#if defined(OS_WIN)
+ return false;
+#else
+ return !base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kUseMojoGpuCommandBufferInMus);
+#endif
}
// static
« no previous file with comments | « no previous file | components/mus/common/switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698