Flutter Engine
child_scene_layer.cc
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 #include "flutter/flow/layers/child_scene_layer.h"
6 
7 namespace flutter {
8 
10  const SkPoint& offset,
11  const SkSize& size,
12  bool hit_testable)
13  : layer_id_(layer_id),
14  offset_(offset),
15  size_(size),
16  hit_testable_(hit_testable) {}
17 
18 void ChildSceneLayer::Preroll(PrerollContext* context, const SkMatrix& matrix) {
19  TRACE_EVENT0("flutter", "ChildSceneLayer::Preroll");
20 
21  context->child_scene_layer_exists_below = true;
22  CheckForChildLayerBelow(context);
23 }
24 
25 void ChildSceneLayer::Paint(PaintContext& context) const {}
26 
28  TRACE_EVENT0("flutter", "ChildSceneLayer::UpdateScene");
30  context.UpdateView(layer_id_, offset_, size_, hit_testable_);
31 }
32 
33 } // namespace flutter
void Paint(PaintContext &context) const override
void Preroll(PrerollContext *context, const SkMatrix &matrix) override
ChildSceneLayer(zx_koid_t layer_id, const SkPoint &offset, const SkSize &size, bool hit_testable)
#define TRACE_EVENT0(category_group, name)
Definition: trace_event.h:75
#define FML_DCHECK(condition)
Definition: logging.h:86
constexpr std::size_t size(T(&array)[N])
Definition: size.h:13
bool needs_system_composite() const
Definition: layer.h:161
void UpdateView(int64_t view_id, bool hit_testable, bool focusable)
void UpdateScene(SceneUpdateContext &context) override