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

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: Address review comments 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..6f2675a9d1ad297672162ec2bf781b82541fd87b 100644
--- a/ui/ozone/platform/cast/ozone_platform_cast.cc
+++ b/ui/ozone/platform/cast/ozone_platform_cast.cc
@@ -80,6 +80,10 @@ 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
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch("disable-gpu"))
+ surface_factory_.reset(new SurfaceFactoryCast());
}
void InitializeGPU() override {
slan 2015/12/09 21:22:06 I assume that InitializeGPU won't be called when -
halliwell 2015/12/09 21:39:02 Not necessary. InitializeUI and InitializeGPU are
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