Update code to account for Mozart changes

The layout protocol in Mozart changed. Now we need to pipe a scene version
through the system to the compositor.
This commit is contained in:
Adam Barth
2016-03-30 15:13:58 -07:00
parent 5f5448137a
commit 1bdaa49f9a
4 changed files with 9 additions and 3 deletions

View File

@@ -9,7 +9,7 @@
namespace flow {
LayerTree::LayerTree() : rasterizer_tracing_threashold_(0) {
LayerTree::LayerTree() : scene_version_(0), rasterizer_tracing_threashold_(0) {
}
LayerTree::~LayerTree() {

View File

@@ -38,6 +38,11 @@ class LayerTree {
void set_frame_size(const SkISize& frame_size) { frame_size_ = frame_size; }
uint32_t scene_version() const { return scene_version_; }
void set_scene_version(uint32_t scene_version) {
scene_version_ = scene_version;
}
void set_construction_time(const base::TimeDelta& delta) {
construction_time_ = delta;
}
@@ -59,6 +64,7 @@ class LayerTree {
private:
SkISize frame_size_; // Physical pixels.
uint32_t scene_version_;
std::unique_ptr<Layer> root_layer_;
base::TimeDelta construction_time_;

View File

@@ -4,6 +4,6 @@ author: Flutter Authors <flutter-dev@googlegroups.com>
description: Mojom interfaces associated with Flutter
homepage: http://flutter.io
dependencies:
mojo_sdk: 0.2.20
mojo_sdk: 0.2.22
environment:
sdk: '>=1.8.0 <2.0.0'