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

Side by Side Diff: components/mus/public/interfaces/compositor_frame.mojom

Issue 1406153004: components/mus/public/interfaces View => Window (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Yet another rebase Created 5 years, 2 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 mojo; 5 module mus.mojom;
6 6
7 import "ui/mojo/geometry/geometry.mojom"; 7 import "ui/mojo/geometry/geometry.mojom";
8 import "components/mus/public/interfaces/quads.mojom"; 8 import "components/mus/public/interfaces/quads.mojom";
9 9
10 enum ResourceFormat { 10 enum ResourceFormat {
11 RGBA_8888, 11 RGBA_8888,
12 RGBA_4444, 12 RGBA_4444,
13 BGRA_8888, 13 BGRA_8888,
14 ALPHA_8, 14 ALPHA_8,
15 LUMINANCE_8, 15 LUMINANCE_8,
(...skipping 24 matching lines...) Expand all
40 // A TransferableResource is a graphics resource such as a texture or a bitmap 40 // A TransferableResource is a graphics resource such as a texture or a bitmap
41 // in shared memory (software mode) that is shared between the View Manager and 41 // in shared memory (software mode) that is shared between the View Manager and
42 // a client. This data structure is used to manage reuse of 42 // a client. This data structure is used to manage reuse of
43 // the memory once it is no longer needed by the View Manager and GPU service. 43 // the memory once it is no longer needed by the View Manager and GPU service.
44 struct TransferableResource { 44 struct TransferableResource {
45 // |id| is an integer that uniquely identifies this resource in the client so 45 // |id| is an integer that uniquely identifies this resource in the client so
46 // that the View Manager can return this resource back to the client. 46 // that the View Manager can return this resource back to the client.
47 uint32 id; 47 uint32 id;
48 ResourceFormat format; 48 ResourceFormat format;
49 uint32 filter; 49 uint32 filter;
50 Size size; 50 mojo.Size size;
51 MailboxHolder mailbox_holder; 51 MailboxHolder mailbox_holder;
52 bool is_repeated; 52 bool is_repeated;
53 bool is_software; 53 bool is_software;
54 }; 54 };
55 55
56 // See cc/output/compositor_frame_metadata.h. 56 // See cc/output/compositor_frame_metadata.h.
57 struct CompositorFrameMetadata { 57 struct CompositorFrameMetadata {
58 float device_scale_factor; 58 float device_scale_factor;
59 }; 59 };
60 60
(...skipping 10 matching lines...) Expand all
71 interface Surface { 71 interface Surface {
72 // After the submitted frame is drawn for the first time, the receiver will 72 // After the submitted frame is drawn for the first time, the receiver will
73 // respond to the SubmitFrame message. Clients should use this acknowledgement 73 // respond to the SubmitFrame message. Clients should use this acknowledgement
74 // to ratelimit frame submissions. 74 // to ratelimit frame submissions.
75 SubmitCompositorFrame(CompositorFrame frame) => (); 75 SubmitCompositorFrame(CompositorFrame frame) => ();
76 }; 76 };
77 77
78 interface SurfaceClient { 78 interface SurfaceClient {
79 ReturnResources(array<ReturnedResource> resources); 79 ReturnResources(array<ReturnedResource> resources);
80 }; 80 };
OLDNEW
« no previous file with comments | « components/mus/public/interfaces/command_buffer.mojom ('k') | components/mus/public/interfaces/gpu.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698