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

Unified Diff: sky/compositor/surface_holder.cc

Issue 756673004: Surfaces should acknowledge frame submissions (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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
Index: sky/compositor/surface_holder.cc
diff --git a/sky/compositor/surface_holder.cc b/sky/compositor/surface_holder.cc
index de9662209b5f2ebcca2f9dad5de07816020cb28a..26d2098c96061ef918b92ce79ed37c54a5247e2d 100644
--- a/sky/compositor/surface_holder.cc
+++ b/sky/compositor/surface_holder.cc
@@ -36,8 +36,9 @@ bool SurfaceHolder::IsReadyForFrame() const {
return surface_;
}
-void SurfaceHolder::SubmitFrame(mojo::FramePtr frame) {
- surface_->SubmitFrame(surface_id_.Clone(), frame.Pass());
+void SurfaceHolder::SubmitFrame(mojo::FramePtr frame,
+ const base::Closure& callback) {
+ surface_->SubmitFrame(surface_id_.Clone(), frame.Pass(), callback);
}
void SurfaceHolder::SetSize(const gfx::Size& size) {
@@ -70,6 +71,7 @@ void SurfaceHolder::OnSurfaceConnectionCreated(mojo::SurfacePtr surface,
surface_ = surface.Pass();
surface_.set_client(this);
surface_allocator_.reset(new SurfaceAllocator(id_namespace));
+ client_->OnSurfaceConnectionCreated();
}
} // namespace sky
« mojo/services/public/interfaces/surfaces/surfaces.mojom ('K') | « sky/compositor/surface_holder.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698