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

Unified Diff: examples/surfaces_app/embedder.h

Issue 807733002: Split surface id and simplify connecting to surfaces service (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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: examples/surfaces_app/embedder.h
diff --git a/examples/surfaces_app/embedder.h b/examples/surfaces_app/embedder.h
index b3d616d2d6c15af9d64d1a225b13cf902e2965ab..f7c08ff7dabd60e4693f50c0cf4221282485b2ea 100644
--- a/examples/surfaces_app/embedder.h
+++ b/examples/surfaces_app/embedder.h
@@ -23,10 +23,12 @@ namespace examples {
// Simple example of a surface embedder that embeds two other surfaces.
class Embedder {
public:
- explicit Embedder(Surface* surface);
+ Embedder();
~Embedder();
- void SetSurfaceId(cc::SurfaceId id) { id_ = id; }
+ void set_surface(Surface* surface) { surface_ = surface; }
+ void set_surface_id(SurfaceIdPtr id) { id_ = id.Clone(); }
sky 2014/12/16 03:34:04 id.Pass()?
+
void ProduceFrame(cc::SurfaceId child_one,
cc::SurfaceId child_two,
const gfx::Size& child_size,
@@ -34,7 +36,7 @@ class Embedder {
int offset);
private:
- cc::SurfaceId id_;
+ SurfaceIdPtr id_;
Surface* surface_;
DISALLOW_COPY_AND_ASSIGN(Embedder);

Powered by Google App Engine
This is Rietveld 408576698