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

Side by Side Diff: components/mus/public/interfaces/gpu/display_compositor.mojom

Issue 2019833002: Implement StructTraits for various cc and gpu types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mailbox_name by ref to make windows happy 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 module mus.gpu.mojom; 5 module mus.gpu.mojom;
6 6
7 import "cc/ipc/returned_resource.mojom";
7 import "components/mus/public/interfaces/compositor_frame.mojom"; 8 import "components/mus/public/interfaces/compositor_frame.mojom";
8 9
9 10
10 // Indicates whether the submitted CompositorFrame has been drawn to the display 11 // Indicates whether the submitted CompositorFrame has been drawn to the display
11 // or has been skipped (e.g. another frame may have been submitted before 12 // or has been skipped (e.g. another frame may have been submitted before
12 // vblank). 13 // vblank).
13 enum CompositorFrameDrawStatus { 14 enum CompositorFrameDrawStatus {
14 DRAW_SKIPPED, 15 DRAW_SKIPPED,
15 DRAWN 16 DRAWN
16 }; 17 };
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 (CompositorFrameDrawStatus status); 50 (CompositorFrameDrawStatus status);
50 51
51 // Lets the display compositor know that the client wishes to receive the next 52 // Lets the display compositor know that the client wishes to receive the next
52 // BeginFrame event. 53 // BeginFrame event.
53 SetNeedsBeginFrame(bool needs_begin_frame); 54 SetNeedsBeginFrame(bool needs_begin_frame);
54 55
55 // TODO(fsamuel): ReadbackBitmap API would be useful here. 56 // TODO(fsamuel): ReadbackBitmap API would be useful here.
56 }; 57 };
57 58
58 interface CompositorFrameSinkClient { 59 interface CompositorFrameSinkClient {
59 ReturnResources(array<mus.mojom.ReturnedResource> resources); 60 ReturnResources(array<cc.mojom.ReturnedResource> resources);
60 }; 61 };
61 62
62 // This is a public interface implemented by Display clients. 63 // This is a public interface implemented by Display clients.
63 // Each client implements a single instance of the DisplayClient interface. 64 // Each client implements a single instance of the DisplayClient interface.
64 interface DisplayClient { 65 interface DisplayClient {
65 // Clients can register CompositorFrameSinks via the provided |factory|. 66 // Clients can register CompositorFrameSinks via the provided |factory|.
66 OnClientCreated(uint32 client_id, CompositorFrameSinkFactory factory); 67 OnClientCreated(uint32 client_id, CompositorFrameSinkFactory factory);
67 68
68 // TODO(fsamuel): OnBeginFrame needs to take a BeginFrameArgs instance per 69 // TODO(fsamuel): OnBeginFrame needs to take a BeginFrameArgs instance per
69 // cc/output/begin_frame_args.h. 70 // cc/output/begin_frame_args.h.
70 OnBeginFrame(); 71 OnBeginFrame();
71 }; 72 };
OLDNEW
« no previous file with comments | « components/mus/public/interfaces/compositor_frame.mojom ('k') | components/mus/ws/server_window_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698