blob: f4bc15b1d19ef376f4f1aba330ac77a4f26f292f [file] [log] [blame]
// 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 "sky/shell/mac/platform_view_mac.h"
namespace sky {
namespace shell {
PlatformView* PlatformView::Create(const Config& config) {
return new PlatformViewMac(config);
}
PlatformViewMac::PlatformViewMac(const Config& config) : PlatformView(config) {}
PlatformViewMac::~PlatformViewMac() {}
void PlatformViewMac::SurfaceCreated(gfx::AcceleratedWidget widget) {
DCHECK(window_ == 0);
window_ = widget;
SurfaceWasCreated();
}
void PlatformViewMac::SurfaceDestroyed() {
DCHECK(window_);
window_ = 0;
SurfaceWasDestroyed();
}
} // namespace shell
} // namespace sky