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

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

Issue 1325703002: Mandoline: Fix OOPIF high DPI sizing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Hopefully fixed on Windows Created 5 years, 3 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 mojo;
6 6
7 import "ui/mojo/geometry/geometry.mojom"; 7 import "ui/mojo/geometry/geometry.mojom";
8 import "components/view_manager/public/interfaces/quads.mojom"; 8 import "components/view_manager/public/interfaces/quads.mojom";
9 9
10 enum ResourceFormat { 10 enum ResourceFormat {
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 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.
57 struct CompositorFrameMetadata {
58 float device_scale_factor;
59 };
60
56 // See src/cc/output/compositor_frame.h. 61 // See src/cc/output/compositor_frame.h.
57 struct CompositorFrame { 62 struct CompositorFrame {
63 CompositorFrameMetadata metadata;
58 array<TransferableResource> resources; 64 array<TransferableResource> resources;
59 array<Pass> passes; 65 array<Pass> passes;
60 }; 66 };
61 67
62 // A Surface is an interface for receiving CompositorFrame structs. This is a 68 // A Surface is an interface for receiving CompositorFrame structs. This is a
63 // separate interface to allow CompositorFrames to be delivered from 69 // separate interface to allow CompositorFrames to be delivered from
64 // supplementary (not main) threads of a mojo app. 70 // supplementary (not main) threads of a mojo app.
65 interface Surface { 71 interface Surface {
66 // 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
67 // respond to the SubmitFrame message. Clients should use this acknowledgement 73 // respond to the SubmitFrame message. Clients should use this acknowledgement
68 // to ratelimit frame submissions. 74 // to ratelimit frame submissions.
69 SubmitCompositorFrame(CompositorFrame frame) => (); 75 SubmitCompositorFrame(CompositorFrame frame) => ();
70 }; 76 };
71 77
72 interface SurfaceClient { 78 interface SurfaceClient {
73 ReturnResources(array<ReturnedResource> resources); 79 ReturnResources(array<ReturnedResource> resources);
74 }; 80 };
OLDNEW
« no previous file with comments | « components/view_manager/connection_manager.cc ('k') | mojo/converters/surfaces/custom_surface_converter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698