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

Unified Diff: sky/compositor/surface_holder.h

Issue 871373015: De-Client Surface interface (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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
Index: sky/compositor/surface_holder.h
diff --git a/sky/compositor/surface_holder.h b/sky/compositor/surface_holder.h
index 5f08e468fe05d1d5d6885888bd53ab332c9a3b6e..607d2e4af11bc658b3b80b4c864a441285bec96e 100644
--- a/sky/compositor/surface_holder.h
+++ b/sky/compositor/surface_holder.h
@@ -19,7 +19,7 @@ class Shell;
namespace sky {
class SurfaceAllocator;
-class SurfaceHolder : public mojo::SurfaceClient {
+class SurfaceHolder : public mojo::ResourceReturner {
public:
class Client {
public:
@@ -38,11 +38,11 @@ class SurfaceHolder : public mojo::SurfaceClient {
void SubmitFrame(mojo::FramePtr frame, const base::Closure& callback);
private:
- // mojo::SurfaceClient
- void SetIdNamespace(uint32_t id_namespace) override;
+ // mojo::ResourceReturner
void ReturnResources(
mojo::Array<mojo::ReturnedResourcePtr> resources) override;
+ void SetIdNamespace(uint32_t id_namespace);
void SetQualifiedId();
Client* client_;
@@ -50,6 +50,7 @@ class SurfaceHolder : public mojo::SurfaceClient {
uint32_t id_namespace_;
uint32_t local_id_;
mojo::SurfacePtr surface_;
+ mojo::Binding<mojo::ResourceReturner> returner_binding_;
base::WeakPtrFactory<SurfaceHolder> weak_factory_;

Powered by Google App Engine
This is Rietveld 408576698