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

Unified Diff: examples/surfaces_app/embedder.h

Issue 826423008: Use local ids for Surfaces APIs that can only apply to local surfaces (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: examples/surfaces_app/embedder.h
diff --git a/examples/surfaces_app/embedder.h b/examples/surfaces_app/embedder.h
index f7c08ff7dabd60e4693f50c0cf4221282485b2ea..b8c70c4c5635040940ebcea2322d2d1b9cc2f00d 100644
--- a/examples/surfaces_app/embedder.h
+++ b/examples/surfaces_app/embedder.h
@@ -23,12 +23,9 @@ namespace examples {
// Simple example of a surface embedder that embeds two other surfaces.
class Embedder {
public:
- Embedder();
+ Embedder(uint32_t local_id, Surface* surface);
~Embedder();
- void set_surface(Surface* surface) { surface_ = surface; }
- void set_surface_id(SurfaceIdPtr id) { id_ = id.Clone(); }
-
void ProduceFrame(cc::SurfaceId child_one,
cc::SurfaceId child_two,
const gfx::Size& child_size,
@@ -36,7 +33,7 @@ class Embedder {
int offset);
private:
- SurfaceIdPtr id_;
+ uint32_t local_id_;
Surface* surface_;
DISALLOW_COPY_AND_ASSIGN(Embedder);

Powered by Google App Engine
This is Rietveld 408576698