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

Unified Diff: components/mus/public/interfaces/gpu/display_compositor.mojom

Issue 2119963002: Move mus to //services/ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 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: components/mus/public/interfaces/gpu/display_compositor.mojom
diff --git a/components/mus/public/interfaces/gpu/display_compositor.mojom b/components/mus/public/interfaces/gpu/display_compositor.mojom
deleted file mode 100644
index f8460623ddff23f5594c6e3e6b5639a7083a9226..0000000000000000000000000000000000000000
--- a/components/mus/public/interfaces/gpu/display_compositor.mojom
+++ /dev/null
@@ -1,72 +0,0 @@
-// Copyright 2016 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 mus.gpu.mojom;
-
-import "cc/ipc/compositor_frame.mojom";
-import "cc/ipc/returned_resource.mojom";
-
-
-// Indicates whether the submitted CompositorFrame has been drawn to the display
-// or has been skipped (e.g. another frame may have been submitted before
-// vblank).
-enum CompositorFrameDrawStatus {
- DRAW_SKIPPED,
- DRAWN
-};
-
-// A CompositorFrameSinkFactory represents a single Display client.
-// The client (a process) can use this interface to create
-// CompositorFrameSinks.
-// TODO(fsamuel): This needs a better name.
-interface CompositorFrameSinkFactory {
- // Requests a CompositorFrameSink interface from the display compositor.
- // A CompositorFrameSink has an associated ID consisting of three components:
- // 1. Namespace picked by the service associated with this
- // CompositorFrameSinkFactory.
- // 2. |local_id| which is a monotonically increasing ID allocated by the
- // client.
- // 3. |nonce| is a cryptographically secure random number making this Sink
- // unguessable by other clients.
- CreateCompositorFrameSink(uint32 local_id,
- uint64 nonce,
- CompositorFrameSink& sink,
- CompositorFrameSinkClient client);
-};
-
-// A CompositorFrameSink is an interface for receiving CompositorFrame structs.
-// A CompositorFrame contains the complete output meant for display. Each time a
-// client has a graphical update, and receives an OnBeginFrame, it is
-// responsible for creating a CompositorFrame to update its portion of the
-// screen.
-interface CompositorFrameSink {
- // After the submitted frame is either drawn for the first time by the display
- // compositor or discarded, the callback will be called with the status of the
- // submitted frame. Clients should use this acknowledgement to ratelimit frame
- // submissions.
- // TODO(fsamuel): We should support identifying the CF in the callback.
- SubmitCompositorFrame(cc.mojom.CompositorFrame frame) =>
- (CompositorFrameDrawStatus status);
-
- // Lets the display compositor know that the client wishes to receive the next
- // BeginFrame event.
- SetNeedsBeginFrame(bool needs_begin_frame);
-
- // TODO(fsamuel): ReadbackBitmap API would be useful here.
-};
-
-interface CompositorFrameSinkClient {
- ReturnResources(array<cc.mojom.ReturnedResource> resources);
-};
-
-// This is a public interface implemented by Display clients.
-// Each client implements a single instance of the DisplayClient interface.
-interface DisplayClient {
- // Clients can register CompositorFrameSinks via the provided |factory|.
- OnClientCreated(uint32 client_id, CompositorFrameSinkFactory factory);
-
- // TODO(fsamuel): OnBeginFrame needs to take a BeginFrameArgs instance per
- // cc/output/begin_frame_args.h.
- OnBeginFrame();
-};
« no previous file with comments | « components/mus/public/interfaces/gpu/OWNERS ('k') | components/mus/public/interfaces/gpu/display_compositor_host.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698