forked from flutter/engine
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "fuchsia: Delete all the legacy code! (flutter#26422)" (flutte…
- Loading branch information
Showing
71 changed files
with
3,053 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// Copyright 2013 The Flutter 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/child_scene_layer.h" | ||
|
||
namespace flutter { | ||
|
||
ChildSceneLayer::ChildSceneLayer(zx_koid_t layer_id, | ||
const SkPoint& offset, | ||
const SkSize& size, | ||
bool hit_testable) | ||
: layer_id_(layer_id), | ||
offset_(offset), | ||
size_(size), | ||
hit_testable_(hit_testable) {} | ||
|
||
void ChildSceneLayer::Preroll(PrerollContext* context, const SkMatrix& matrix) { | ||
TRACE_EVENT0("flutter", "ChildSceneLayer::Preroll"); | ||
|
||
context->child_scene_layer_exists_below = true; | ||
CheckForChildLayerBelow(context); | ||
} | ||
|
||
void ChildSceneLayer::Paint(PaintContext& context) const {} | ||
|
||
void ChildSceneLayer::UpdateScene(std::shared_ptr<SceneUpdateContext> context) { | ||
TRACE_EVENT0("flutter", "ChildSceneLayer::UpdateScene"); | ||
FML_DCHECK(needs_system_composite()); | ||
context->UpdateView(layer_id_, offset_, size_, hit_testable_); | ||
} | ||
|
||
} // namespace flutter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
// Copyright 2013 The Flutter Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
#ifndef FLUTTER_FLOW_LAYERS_CHILD_SCENE_LAYER_H_ | ||
#define FLUTTER_FLOW_LAYERS_CHILD_SCENE_LAYER_H_ | ||
|
||
#include "flutter/flow/layers/layer.h" | ||
#include "flutter/flow/scene_update_context.h" | ||
#include "third_party/skia/include/core/SkMatrix.h" | ||
#include "third_party/skia/include/core/SkPoint.h" | ||
#include "third_party/skia/include/core/SkSize.h" | ||
|
||
namespace flutter { | ||
|
||
// Layer that represents an embedded child. | ||
class ChildSceneLayer : public Layer { | ||
public: | ||
ChildSceneLayer(zx_koid_t layer_id, | ||
const SkPoint& offset, | ||
const SkSize& size, | ||
bool hit_testable); | ||
~ChildSceneLayer() override = default; | ||
|
||
void Preroll(PrerollContext* context, const SkMatrix& matrix) override; | ||
|
||
void Paint(PaintContext& context) const override; | ||
|
||
void UpdateScene(std::shared_ptr<SceneUpdateContext> context) override; | ||
|
||
private: | ||
zx_koid_t layer_id_ = ZX_KOID_INVALID; | ||
SkPoint offset_; | ||
SkSize size_; | ||
bool hit_testable_ = true; | ||
|
||
FML_DISALLOW_COPY_AND_ASSIGN(ChildSceneLayer); | ||
}; | ||
|
||
} // namespace flutter | ||
|
||
#endif // FLUTTER_FLOW_LAYERS_CHILD_SCENE_LAYER_H_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.