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

2
DEPS
View File

@@ -19,7 +19,7 @@
vars = {
'chromium_git': 'https://chromium.googlesource.com',
'mojo_sdk_revision': '8d13caec84db234e320129722d2f0d5d873def11',
'mojo_sdk_revision': '11e4cee4bc0d7093f7c672c35dda2ffbc1affc91',
'base_revision': '672b04e54b937ec899429a6bd5409c5a6300d151',
'skia_revision': 'ddf0713f0ba4ea75ca49a4ed6b4249eef72da1ce',

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'