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

Unified Diff: ui/android/window_android_compositor.cc

Issue 1419123002: android: move overscroll effects to ui/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix exports for component build Created 5 years, 2 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 | « ui/android/window_android_compositor.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/android/window_android_compositor.cc
diff --git a/ui/android/window_android_compositor.cc b/ui/android/window_android_compositor.cc
new file mode 100644
index 0000000000000000000000000000000000000000..fd8b7661522f5e40a845f5eb58535246fc56cadc
--- /dev/null
+++ b/ui/android/window_android_compositor.cc
@@ -0,0 +1,28 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+//
+#include "ui/android/window_android_compositor.h"
+
+#include "base/lazy_instance.h"
+#include "cc/trees/layer_tree_settings.h"
+
+namespace ui {
+
+namespace {
+base::LazyInstance<cc::LayerSettings> g_layer_settings =
+ LAZY_INSTANCE_INITIALIZER;
+} // anonymous namespace
+
+// static
+const cc::LayerSettings& WindowAndroidCompositor::LayerSettings() {
+ return g_layer_settings.Get();
+}
+
+// static
+void WindowAndroidCompositor::SetLayerSettings(
+ const cc::LayerSettings& settings) {
+ g_layer_settings.Get() = settings;
+}
+
+} // namespace ui
« no previous file with comments | « ui/android/window_android_compositor.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698