mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
32 lines
756 B
Plaintext
32 lines
756 B
Plaintext
// 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
|