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.
Merge pull request flutter#2310 from abarth/mozart
Port flutter.mojo to Mozart
- Loading branch information
Showing
55 changed files
with
1,522 additions
and
1,164 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// Copyright 2016 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 "flow/child_scene_layer.h" | ||
|
||
namespace flow { | ||
|
||
ChildSceneLayer::ChildSceneLayer() { | ||
} | ||
|
||
ChildSceneLayer::~ChildSceneLayer() { | ||
} | ||
|
||
void ChildSceneLayer::Paint(PaintContext::ScopedFrame& frame) { | ||
} | ||
|
||
} // namespace flow |
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,40 @@ | ||
// Copyright 2016 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. | ||
|
||
#ifndef FLOW_CHILD_SCENE_LAYER_H_ | ||
#define FLOW_CHILD_SCENE_LAYER_H_ | ||
|
||
#include "flow/layer.h" | ||
#include "mojo/services/gfx/composition/interfaces/scenes.mojom.h" | ||
|
||
namespace flow { | ||
|
||
class ChildSceneLayer : public Layer { | ||
public: | ||
ChildSceneLayer(); | ||
~ChildSceneLayer() override; | ||
|
||
void set_offset(const SkPoint& offset) { offset_ = offset; } | ||
|
||
void set_physical_size(const SkISize& physical_size) { | ||
physical_size_ = physical_size; | ||
} | ||
|
||
void set_scene_token(mojo::gfx::composition::SceneTokenPtr scene_token) { | ||
scene_token_ = scene_token.Pass(); | ||
} | ||
|
||
void Paint(PaintContext::ScopedFrame& frame) override; | ||
|
||
private: | ||
SkPoint offset_; | ||
SkISize physical_size_; | ||
mojo::gfx::composition::SceneTokenPtr scene_token_; | ||
|
||
DISALLOW_COPY_AND_ASSIGN(ChildSceneLayer); | ||
}; | ||
|
||
} // namespace flow | ||
|
||
#endif // FLOW_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 was deleted.
Oops, something went wrong.
Oops, something went wrong.