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

Unified Diff: examples/surfaces_app/embedder.h

Issue 940293003: Add a Display and ContextProvider concept to mojom, use to recreate (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « examples/surfaces_app/child_gl_impl.cc ('k') | examples/surfaces_app/embedder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: examples/surfaces_app/embedder.h
diff --git a/examples/surfaces_app/embedder.h b/examples/surfaces_app/embedder.h
index b8c70c4c5635040940ebcea2322d2d1b9cc2f00d..b4ceb59dd1dbda69792fae48eee880d55abdf8f9 100644
--- a/examples/surfaces_app/embedder.h
+++ b/examples/surfaces_app/embedder.h
@@ -7,23 +7,16 @@
#include "base/memory/scoped_ptr.h"
#include "cc/surfaces/surface_id.h"
-#include "mojo/services/surfaces/public/interfaces/surfaces.mojom.h"
+#include "mojo/services/surfaces/public/interfaces/display.mojom.h"
#include "ui/gfx/size.h"
-namespace cc {
-class CompositorFrame;
-}
-
namespace mojo {
-
-class ApplicationConnection;
-
namespace examples {
// Simple example of a surface embedder that embeds two other surfaces.
class Embedder {
public:
- Embedder(uint32_t local_id, Surface* surface);
+ explicit Embedder(Display* display);
~Embedder();
void ProduceFrame(cc::SurfaceId child_one,
@@ -32,9 +25,11 @@ class Embedder {
const gfx::Size& size,
int offset);
+ bool frame_pending() const { return frame_pending_; }
+
private:
- uint32_t local_id_;
- Surface* surface_;
+ Display* display_;
+ bool frame_pending_;
DISALLOW_COPY_AND_ASSIGN(Embedder);
};
« no previous file with comments | « examples/surfaces_app/child_gl_impl.cc ('k') | examples/surfaces_app/embedder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698