summaryrefslogtreecommitdiffstats
path: root/mojo/services/public/interfaces
diff options
context:
space:
mode:
authorrockot <rockot@chromium.org>2014-12-02 02:48:08 -0800
committerCommit bot <commit-bot@chromium.org>2014-12-02 10:49:17 +0000
commit48847895beb5eb7da6e25d0d21e72a57a6d6d0a7 (patch)
tree380c73a4756bff4188af25ba0df924e78689faf9 /mojo/services/public/interfaces
parent5affb709cd2953c5c0c4c2db97da420851ab31cb (diff)
downloadchromium_src-48847895beb5eb7da6e25d0d21e72a57a6d6d0a7.zip
chromium_src-48847895beb5eb7da6e25d0d21e72a57a6d6d0a7.tar.gz
chromium_src-48847895beb5eb7da6e25d0d21e72a57a6d6d0a7.tar.bz2
Update mojo sdk to rev 98d8236f7eea383e5214254c8d045df6c7a6297a
BUG=435144 TBR=jamesr@chromium.org TBR=dalecurtis@chromium.org for media test update Review URL: https://codereview.chromium.org/769753003 Cr-Commit-Position: refs/heads/master@{#306367}
Diffstat (limited to 'mojo/services/public/interfaces')
-rw-r--r--mojo/services/public/interfaces/gpu/BUILD.gn1
-rw-r--r--mojo/services/public/interfaces/gpu/gpu.mojom6
-rw-r--r--mojo/services/public/interfaces/gpu/viewport_parameter_listener.mojom12
-rw-r--r--mojo/services/public/interfaces/surfaces/surfaces.mojom11
4 files changed, 26 insertions, 4 deletions
diff --git a/mojo/services/public/interfaces/gpu/BUILD.gn b/mojo/services/public/interfaces/gpu/BUILD.gn
index efb72a5..8fe2f9c 100644
--- a/mojo/services/public/interfaces/gpu/BUILD.gn
+++ b/mojo/services/public/interfaces/gpu/BUILD.gn
@@ -9,6 +9,7 @@ mojom("gpu") {
"command_buffer.mojom",
"gpu.mojom",
"gpu_capabilities.mojom",
+ "viewport_parameter_listener.mojom",
]
deps = [
diff --git a/mojo/services/public/interfaces/gpu/gpu.mojom b/mojo/services/public/interfaces/gpu/gpu.mojom
index c3d473d..a765c1c 100644
--- a/mojo/services/public/interfaces/gpu/gpu.mojom
+++ b/mojo/services/public/interfaces/gpu/gpu.mojom
@@ -6,8 +6,12 @@ module mojo;
import "mojo/services/public/interfaces/geometry/geometry.mojom";
import "mojo/services/public/interfaces/gpu/command_buffer.mojom";
+import "mojo/services/public/interfaces/gpu/viewport_parameter_listener.mojom";
interface Gpu {
- CreateOnscreenGLES2Context(uint64 native_viewport_id, Size? size, CommandBuffer&? gles2_client);
+ CreateOnscreenGLES2Context(uint64 native_viewport_id,
+ Size? size,
+ CommandBuffer&? gles2_client,
+ ViewportParameterListener? listener);
CreateOffscreenGLES2Context(CommandBuffer&? gles2_client);
};
diff --git a/mojo/services/public/interfaces/gpu/viewport_parameter_listener.mojom b/mojo/services/public/interfaces/gpu/viewport_parameter_listener.mojom
new file mode 100644
index 0000000..5afa931
--- /dev/null
+++ b/mojo/services/public/interfaces/gpu/viewport_parameter_listener.mojom
@@ -0,0 +1,12 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+module mojo;
+
+interface ViewportParameterListener {
+ // These parameters describe the refresh rate of the viewport. The viewport
+ // refreshes every |interval| time ticks. The phase of the refresh is
+ // indicated by |timebase|, which is synchronized with MojoGetTimeTicksNow.
+ OnVSyncParametersUpdated(int64 timebase, int64 interval);
+};
diff --git a/mojo/services/public/interfaces/surfaces/surfaces.mojom b/mojo/services/public/interfaces/surfaces/surfaces.mojom
index 21149ab..0df7ea4c 100644
--- a/mojo/services/public/interfaces/surfaces/surfaces.mojom
+++ b/mojo/services/public/interfaces/surfaces/surfaces.mojom
@@ -6,6 +6,7 @@ module mojo;
import "mojo/services/public/interfaces/geometry/geometry.mojom";
import "mojo/services/public/interfaces/gpu/command_buffer.mojom";
+import "mojo/services/public/interfaces/gpu/viewport_parameter_listener.mojom";
import "mojo/services/public/interfaces/surfaces/quads.mojom";
import "mojo/services/public/interfaces/surfaces/surface_id.mojom";
@@ -61,11 +62,15 @@ interface Surface {
// connection's namespace in the upper 32 bits.
CreateSurface(SurfaceId id, Size size);
- // The client can only submit frames to surfaces created with this connection.
- SubmitFrame(SurfaceId id, Frame frame);
+ // The client can only submit frames to surfaces created with this
+ // connection. After the submitted frame is drawn for the first time, the
+ // surface will respond to the SubmitFrame message. Clients should use this
+ // acknowledgement to ratelimit frame submissions.
+ SubmitFrame(SurfaceId id, Frame frame) => ();
DestroySurface(SurfaceId id);
CreateGLES2BoundSurface(CommandBuffer gles2_client,
SurfaceId id,
- Size size);
+ Size size,
+ ViewportParameterListener& listener);
};