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

Unified Diff: ui/ozone/platform/cast/ozone_platform_cast.cc

Issue 1478753003: [Chromecast] Support software rendering when disable-gpu used (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add comment on switch Created 5 years 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 | ui/ozone/platform/cast/surface_factory_cast.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/cast/ozone_platform_cast.cc
diff --git a/ui/ozone/platform/cast/ozone_platform_cast.cc b/ui/ozone/platform/cast/ozone_platform_cast.cc
index bd4053e9ae93765a4a5ab7c37bf41195e2f241cf..338fac226edf869234c7518e4a02d7299ed63705 100644
--- a/ui/ozone/platform/cast/ozone_platform_cast.cc
+++ b/ui/ozone/platform/cast/ozone_platform_cast.cc
@@ -80,6 +80,11 @@ class OzonePlatformCast : public OzonePlatform {
cursor_factory_.reset(new CursorFactoryOzone());
input_controller_ = CreateStubInputController();
gpu_platform_support_host_.reset(CreateStubGpuPlatformSupportHost());
+
+ // Enable dummy software rendering support if GPU process disabled
+ // Note: switch is kDisableGpu from content/public/common/content_switches.h
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch("disable-gpu"))
+ surface_factory_.reset(new SurfaceFactoryCast());
}
void InitializeGPU() override {
surface_factory_.reset(new SurfaceFactoryCast(egl_platform_.Pass()));
« no previous file with comments | « no previous file | ui/ozone/platform/cast/surface_factory_cast.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698