mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
This will be used for embedding UIViews on iOS. Landing a no-op layer as a first incremental step to keep PRs small.
22 lines
674 B
C++
22 lines
674 B
C++
// Copyright 2018 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 "flutter/flow/layers/platform_view_layer.h"
|
|
|
|
namespace flow {
|
|
|
|
PlatformViewLayer::PlatformViewLayer() = default;
|
|
|
|
PlatformViewLayer::~PlatformViewLayer() = default;
|
|
|
|
void PlatformViewLayer::Preroll(PrerollContext* context,
|
|
const SkMatrix& matrix) {
|
|
set_paint_bounds(SkRect::MakeXYWH(offset_.x(), offset_.y(), size_.width(),
|
|
size_.height()));
|
|
}
|
|
|
|
void PlatformViewLayer::Paint(PaintContext& context) const {}
|
|
|
|
} // namespace flow
|