Flutter Engine
 
Loading...
Searching...
No Matches
view_slicer.h
Go to the documentation of this file.
1// Copyright 2013 The Flutter Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef FLUTTER_FLOW_VIEW_SLICER_H_
6#define FLUTTER_FLOW_VIEW_SLICER_H_
7
8#include <unordered_map>
10#include "flow/embedded_views.h"
11
12namespace flutter {
13
14/// @brief Compute the required overlay layers and clip the view slices
15/// according to the size and position of the platform views.
16std::unordered_map<int64_t, DlRect> SliceViews(
17 DlCanvas* background_canvas,
18 const std::vector<int64_t>& composition_order,
19 const std::unordered_map<int64_t, std::unique_ptr<EmbedderViewSlice>>&
20 slices,
21 const std::unordered_map<int64_t, DlRect>& view_rects);
22
23} // namespace flutter
24
25#endif // FLUTTER_FLOW_VIEW_SLICER_H_
std::unordered_map< int64_t, DlRect > SliceViews(DlCanvas *background_canvas, const std::vector< int64_t > &composition_order, const std::unordered_map< int64_t, std::unique_ptr< EmbedderViewSlice > > &slices, const std::unordered_map< int64_t, DlRect > &view_rects)
Compute the required overlay layers and clip the view slices according to the size and position of th...