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

Unified Diff: components/exo/display.cc

Issue 2008153002: Add initial implementation of cc::Surfaces backend for exo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 | « components/exo/BUILD.gn ('k') | components/exo/shell_surface_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/exo/display.cc
diff --git a/components/exo/display.cc b/components/exo/display.cc
index e40fc94b0b1c3c07b1981b1f5e94832baa5cebda..cbe710ae9814e0161029a9cc8f5d3783dd09c8db 100644
--- a/components/exo/display.cc
+++ b/components/exo/display.cc
@@ -8,6 +8,7 @@
#include <utility>
#include "ash/wm/common/wm_shell_window_ids.h"
+#include "base/command_line.h"
#include "base/memory/ptr_util.h"
#include "base/trace_event/trace_event.h"
#include "base/trace_event/trace_event_argument.h"
@@ -28,10 +29,15 @@
namespace exo {
+const char kUseExoSurfaceLayer[] = "use-exo-surface-layer";
+
////////////////////////////////////////////////////////////////////////////////
// Display, public:
-Display::Display() {}
+Display::Display() {
+ Surface::SetUseSurfaceLayer(
+ base::CommandLine::ForCurrentProcess()->HasSwitch(kUseExoSurfaceLayer));
+}
Display::~Display() {}
« no previous file with comments | « components/exo/BUILD.gn ('k') | components/exo/shell_surface_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698