Skip to content

Commit

Permalink
Fix compile error in runtime holder (flutter#4312)
Browse files Browse the repository at this point in the history
  • Loading branch information
mravn-google authored Nov 2, 2017
1 parent 8eb37a1 commit ce7202d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion content_handler/runtime_holder.cc
Original file line number Diff line number Diff line change
Expand Up @@ -302,8 +302,10 @@ std::string RuntimeHolder::DefaultRouteName() {
return "/";
}

void RuntimeHolder::ScheduleFrame() {
void RuntimeHolder::ScheduleFrame(bool regenerate_layer_tree) {
ASSERT_IS_UI_THREAD;
// TODO(mravn): We assume regenerate_layer_tree is true (and thus ignore
// that we may be able to reuse the current layer tree.)
if (!frame_scheduled_) {
frame_scheduled_ = true;
if (!frame_outstanding_)
Expand Down
2 changes: 1 addition & 1 deletion content_handler/runtime_holder.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class RuntimeHolder : public blink::RuntimeDelegate,
private:
// |blink::RuntimeDelegate| implementation:
std::string DefaultRouteName() override;
void ScheduleFrame() override;
void ScheduleFrame(bool regenerate_layer_tree = true) override;
void Render(std::unique_ptr<flow::LayerTree> layer_tree) override;
void UpdateSemantics(std::vector<blink::SemanticsNode> update) override;
void HandlePlatformMessage(
Expand Down

0 comments on commit ce7202d

Please sign in to comment.