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

Unified Diff: mojo/services/public/interfaces/surfaces/surfaces.mojom

Issue 361123002: Mojo surfaces service and example app (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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: mojo/services/public/interfaces/surfaces/surfaces.mojom
diff --git a/mojo/services/public/interfaces/surfaces/surfaces.mojom b/mojo/services/public/interfaces/surfaces/surfaces.mojom
index f9c54687268ff4af856084d4876753bb3130e834..82cda76921e9603f32c346fa563e88b925d0fd1b 100644
--- a/mojo/services/public/interfaces/surfaces/surfaces.mojom
+++ b/mojo/services/public/interfaces/surfaces/surfaces.mojom
@@ -3,6 +3,7 @@
// found in the LICENSE file.
import "mojo/services/public/interfaces/geometry/geometry.mojom"
+import "mojo/services/gles2/command_buffer.mojom"
import "mojo/services/public/interfaces/surfaces/quads.mojom"
import "mojo/services/public/interfaces/surfaces/surface_id.mojom"
@@ -50,14 +51,17 @@ struct Frame {
};
interface SurfaceClient {
+ SetIdNamespace(uint32 id);
ReturnResources(ReturnedResource[] resources);
};
[Client=SurfaceClient]
interface Surface {
- CreateSurface(mojo.Size size) => (SurfaceId id);
+ CreateSurface(SurfaceId id, mojo.Size size);
SubmitFrame(SurfaceId id, Frame frame);
DestroySurface(SurfaceId id);
+
+ CreateGLES2BoundSurface(mojo.CommandBuffer gles2_client, SurfaceId id, mojo.Size size);
Ben Goodger (Google) 2014/07/07 21:07:33 nit: 80-col
};
}

Powered by Google App Engine
This is Rietveld 408576698