Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Unified Diff: sky/engine/public/sky/sky_view.cc

Issue 1212623002: Support snapshots in sky_shell (again) (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/engine/core/script/dart_controller.cc ('k') | sky/services/viewport/viewport_observer.mojom » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/public/sky/sky_view.cc
diff --git a/sky/engine/public/sky/sky_view.cc b/sky/engine/public/sky/sky_view.cc
index b18677c65e437c8d0151571712d1fba794da721c..a761bbaf3063bbf38f144f3cafdd64595166253f 100644
--- a/sky/engine/public/sky/sky_view.cc
+++ b/sky/engine/public/sky/sky_view.cc
@@ -48,7 +48,8 @@ void SkyView::RunFromLibrary(const WebString& name,
void SkyView::RunFromSnapshot(const WebString& name,
mojo::ScopedDataPipeConsumerHandle snapshot) {
- // TODO(abarth): Implement.
+ CreateView(name);
+ dart_controller_->RunFromSnapshot(snapshot.Pass());
}
void SkyView::BeginFrame(base::TimeTicks frame_time) {
« no previous file with comments | « sky/engine/core/script/dart_controller.cc ('k') | sky/services/viewport/viewport_observer.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698