| 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
|
|
|