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

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: Use disable-gpu to enable software canvas 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
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"))
derekjchow1 2015/12/08 22:03:15 define kDisableGpu
slan 2015/12/08 22:40:25 +1 Although I'm afraid we might be overloading th
halliwell 2015/12/08 23:27:56 Indeed, I'm using the switch from content, but can
derekjchow1 2015/12/09 21:19:34 Please redefine in a local anonymous namespace.
+ 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') | ui/ozone/platform/cast/surface_factory_cast.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698