OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/browser/compositor/gpu_process_transport_factory.h" | 5 #include "content/browser/compositor/gpu_process_transport_factory.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 } | 263 } |
264 #elif defined(OS_ANDROID) | 264 #elif defined(OS_ANDROID) |
265 validator.reset( | 265 validator.reset( |
266 new display_compositor::CompositorOverlayCandidateValidatorAndroid()); | 266 new display_compositor::CompositorOverlayCandidateValidatorAndroid()); |
267 #endif | 267 #endif |
268 | 268 |
269 return validator; | 269 return validator; |
270 } | 270 } |
271 | 271 |
272 static bool ShouldCreateGpuOutputSurface(ui::Compositor* compositor) { | 272 static bool ShouldCreateGpuOutputSurface(ui::Compositor* compositor) { |
| 273 #if defined(MOJO_RUNNER_CLIENT) |
| 274 if (shell::ShellIsRemote() && !ui::GpuService::UseChromeGpuCommandBuffer()) |
| 275 return false; |
| 276 #endif |
| 277 |
273 #if defined(OS_CHROMEOS) | 278 #if defined(OS_CHROMEOS) |
274 // Software fallback does not happen on Chrome OS. | 279 // Software fallback does not happen on Chrome OS. |
275 return true; | 280 return true; |
276 #endif | 281 #endif |
277 | 282 |
278 #if defined(OS_WIN) | 283 #if defined(OS_WIN) |
279 if (::GetProp(compositor->widget(), kForceSoftwareCompositor) && | 284 if (::GetProp(compositor->widget(), kForceSoftwareCompositor) && |
280 ::RemoveProp(compositor->widget(), kForceSoftwareCompositor)) | 285 ::RemoveProp(compositor->widget(), kForceSoftwareCompositor)) |
281 return false; | 286 return false; |
282 #endif | 287 #endif |
(...skipping 614 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
897 shared_vulkan_context_provider_ = | 902 shared_vulkan_context_provider_ = |
898 cc::VulkanInProcessContextProvider::Create(); | 903 cc::VulkanInProcessContextProvider::Create(); |
899 } | 904 } |
900 | 905 |
901 shared_vulkan_context_provider_initialized_ = true; | 906 shared_vulkan_context_provider_initialized_ = true; |
902 } | 907 } |
903 return shared_vulkan_context_provider_; | 908 return shared_vulkan_context_provider_; |
904 } | 909 } |
905 | 910 |
906 } // namespace content | 911 } // namespace content |
OLD | NEW |