flutter_flutter/flow/layers/platform_view_layer.cc
Amir Hardon a1bbea77cf
Add a no-op platform view layer. (#6505)
This will be used for embedding UIViews on iOS.

Landing a no-op layer as a first incremental step to keep PRs small.
2018-10-12 19:40:21 -07:00

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