| Index: ui/ozone/public/client_pixmap_manager.cc
|
| diff --git a/ui/ozone/public/client_pixmap_manager.cc b/ui/ozone/public/client_pixmap_manager.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..51ac8f742df1199046761dfda29d17ba5ce1f53f
|
| --- /dev/null
|
| +++ b/ui/ozone/public/client_pixmap_manager.cc
|
| @@ -0,0 +1,42 @@
|
| +// 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/ozone/public/client_pixmap_manager.h"
|
| +
|
| +#include "base/trace_event/trace_event.h"
|
| +#include "ui/ozone/platform_object.h"
|
| +#include "ui/ozone/platform_selection.h"
|
| +
|
| +namespace ui {
|
| +
|
| +namespace {
|
| +
|
| +ClientPixmapManager* g_instance = nullptr;
|
| +
|
| +} // namespace
|
| +
|
| +// static
|
| +ClientPixmapManager* ClientPixmapManager::GetInstance() {
|
| + return g_instance;
|
| +}
|
| +
|
| +// static
|
| +void ClientPixmapManager::SetInstance(ClientPixmapManager* instance) {
|
| + DCHECK(!g_instance);
|
| + DCHECK(instance);
|
| + g_instance = instance;
|
| +}
|
| +
|
| +// static
|
| +scoped_ptr<ClientPixmapManager> ClientPixmapManager::Create() {
|
| + TRACE_EVENT1("ozone", "ClientPixmapManager::Create", "platform",
|
| + GetOzonePlatformName());
|
| + return PlatformObject<ClientPixmapManager>::Create();
|
| +}
|
| +
|
| +ClientPixmapManager::ClientPixmapManager() {}
|
| +
|
| +ClientPixmapManager::~ClientPixmapManager() {}
|
| +
|
| +} // namespace ui
|
|
|