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

Unified Diff: sky/compositor/surface_holder.h

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.h
diff --git a/sky/compositor/surface_holder.h b/sky/compositor/surface_holder.h
index 59a0fdb1dfaa48261362a6c15164bac18d9725bc..4abeb3f668cd1bc7b708283b8714773595e555d0 100644
--- a/sky/compositor/surface_holder.h
+++ b/sky/compositor/surface_holder.h
@@ -5,6 +5,7 @@
#ifndef SKY_COMPOSITOR_SURFACE_HOLDER_H_
#define SKY_COMPOSITOR_SURFACE_HOLDER_H_
+#include "base/callback_forward.h"
#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
#include "mojo/services/public/interfaces/surfaces/surface_id.mojom.h"
@@ -23,6 +24,7 @@ class SurfaceHolder : public mojo::SurfaceClient {
public:
class Client {
public:
+ virtual void OnSurfaceConnectionCreated() = 0;
virtual void OnSurfaceIdAvailable(mojo::SurfaceIdPtr surface_id) = 0;
virtual void ReturnResources(
mojo::Array<mojo::ReturnedResourcePtr> resources) = 0;
@@ -37,7 +39,7 @@ class SurfaceHolder : public mojo::SurfaceClient {
bool IsReadyForFrame() const;
void SetSize(const gfx::Size& size);
- void SubmitFrame(mojo::FramePtr frame);
+ void SubmitFrame(mojo::FramePtr frame, const base::Closure& callback);
private:
// mojo::SurfaceClient

Powered by Google App Engine
This is Rietveld 408576698