blob: e5c62e83f384010fd641ec51ee7ee5cc3a0440ff [file] [log] [blame]
// Copyright 2016 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 "components/exo/wm_helper.h"
#include "ui/compositor/compositor_vsync_manager.h"
namespace exo {
namespace {
WMHelper* g_instance = nullptr;
} // namespace
WMHelper::WMHelper() {}
WMHelper::~WMHelper() {}
// static
void WMHelper::SetInstance(WMHelper* helper) {
DCHECK_NE(!!helper, !!g_instance);
g_instance = helper;
}
// static
WMHelper* WMHelper::GetInstance() {
DCHECK(g_instance);
return g_instance;
}
// static
bool WMHelper::HasInstance() {
return !!g_instance;
}
} // namespace exo