Flutter Engine Uber Docs
Docs for the entire Flutter Engine repo.
 
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>
9#include <unordered_set>
11#include "flow/embedded_views.h"
12
13namespace flutter {
14
15/// @brief Compute the required overlay layers and clip the view slices
16/// according to the size and position of the platform views.
17/// @param views_with_underlay_preserved The platform view IDs for which we
18/// should not subtract the overlap from the background canvas.
19std::unordered_map<int64_t, DlRect> SliceViews(
20 DlCanvas* background_canvas,
21 const std::vector<int64_t>& composition_order,
22 const std::unordered_map<int64_t, std::unique_ptr<EmbedderViewSlice>>&
23 slices,
24 const std::unordered_map<int64_t, DlRect>& view_rects,
25 const std::unordered_set<int64_t>& views_with_underlay_preserved);
26
27} // namespace flutter
28
29#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, const std::unordered_set< int64_t > &views_with_underlay_preserved)
Compute the required overlay layers and clip the view slices according to the size and position of th...