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

Unified Diff: services/ui/surfaces/surfaces_context_provider.cc

Issue 2135713002: Use the chrome gpu command buffer on Windows for mus Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update Created 4 years, 5 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 | « services/ui/service.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/surfaces/surfaces_context_provider.cc
diff --git a/services/ui/surfaces/surfaces_context_provider.cc b/services/ui/surfaces/surfaces_context_provider.cc
index be9e5e5e82d66fcc0d83fd57bc7e12cff14b6085..6a900361d7e44594bedaf2ecaa85ad9d3f6a0c9d 100644
--- a/services/ui/surfaces/surfaces_context_provider.cc
+++ b/services/ui/surfaces/surfaces_context_provider.cc
@@ -35,15 +35,9 @@ SurfacesContextProvider::SurfacesContextProvider(
delegate_(nullptr),
widget_(widget),
command_buffer_local_(nullptr) {
-// TODO(penghuang): Kludge: Use mojo command buffer when running on Windows
-// since Chrome command buffer breaks unit tests
-#if defined(OS_WIN)
- use_chrome_gpu_command_buffer_ = false;
-#else
use_chrome_gpu_command_buffer_ =
!base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kUseMojoGpuCommandBufferInMus);
-#endif
if (!use_chrome_gpu_command_buffer_) {
command_buffer_local_ = new CommandBufferLocal(this, widget_, state);
} else {
« no previous file with comments | « services/ui/service.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698