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

Side by Side Diff: cc/ipc/display_compositor.mojom

Issue 2669183002: Seems incorrect to se device_scale_factor in SetLocalSurfaceId.
Patch Set: Seems incorrect to set device_scale_factor in SetLocalSurfaceId. Added new function SetDeviceScaleF… Created 3 years, 10 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
« no previous file with comments | « no previous file | cc/surfaces/direct_compositor_frame_sink.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 cc.mojom; 5 module cc.mojom;
6 6
7 import "cc/ipc/frame_sink_id.mojom"; 7 import "cc/ipc/frame_sink_id.mojom";
8 import "cc/ipc/local_surface_id.mojom"; 8 import "cc/ipc/local_surface_id.mojom";
9 import "cc/ipc/mojo_compositor_frame_sink.mojom"; 9 import "cc/ipc/mojo_compositor_frame_sink.mojom";
10 import "cc/ipc/surface_id.mojom"; 10 import "cc/ipc/surface_id.mojom";
11 import "cc/ipc/surface_info.mojom"; 11 import "cc/ipc/surface_info.mojom";
12 import "gpu/ipc/common/surface_handle.mojom"; 12 import "gpu/ipc/common/surface_handle.mojom";
13 import "mojo/common/time.mojom"; 13 import "mojo/common/time.mojom";
14 import "ui/gfx/geometry/mojo/geometry.mojom"; 14 import "ui/gfx/geometry/mojo/geometry.mojom";
15 import "ui/gfx/mojo/color_space.mojom"; 15 import "ui/gfx/mojo/color_space.mojom";
16 16
17 // See ui/compositor/compositor.h: ContextFactoryPrivate. 17 // See ui/compositor/compositor.h: ContextFactoryPrivate.
18 // The DisplayPrivate is used by privileged clients to talk to cc::Display. 18 // The DisplayPrivate is used by privileged clients to talk to cc::Display.
19 // DisplayPrivate would eventually replace or be used by ContextFactoryPrivate. 19 // DisplayPrivate would eventually replace or be used by ContextFactoryPrivate.
20 interface DisplayPrivate { 20 interface DisplayPrivate {
21 SetDisplayVisible(bool visible); 21 SetDisplayVisible(bool visible);
22 ResizeDisplay(gfx.mojom.Size size_in_pixel); 22 ResizeDisplay(gfx.mojom.Size size_in_pixel);
23 SetDisplayColorSpace(gfx.mojom.ColorSpace color_space); 23 SetDisplayColorSpace(gfx.mojom.ColorSpace color_space);
24 SetOutputIsSecure(bool secure); 24 SetOutputIsSecure(bool secure);
25 SetLocalSurfaceId(cc.mojom.LocalSurfaceId local_surface_id, 25 SetLocalSurfaceId(cc.mojom.LocalSurfaceId local_surface_id);
26 float scale_factor); 26 SetDeviceScaleFactor(float scale_factor);
27 }; 27 };
28 28
29 // The DisplayCompositor interface is a privileged interface that allows 29 // The DisplayCompositor interface is a privileged interface that allows
30 // the display compositor host (browser or window server) to create 30 // the display compositor host (browser or window server) to create
31 // CompositorFrameSinks. Clients acquire a CompositorFrameSink connection 31 // CompositorFrameSinks. Clients acquire a CompositorFrameSink connection
32 // through the display compositor host. Clients request a 32 // through the display compositor host. Clients request a
33 // MojoCompositorFrameSink interface, and implement a 33 // MojoCompositorFrameSink interface, and implement a
34 // MojoCompositorFrameSinkClient interface. The display compositor host 34 // MojoCompositorFrameSinkClient interface. The display compositor host
35 // holds one or more root CompositorFrameSinks that are tied to a valid 35 // holds one or more root CompositorFrameSinks that are tied to a valid
36 // |surface_handle|. All other CompositorFrameSinks are offscreen. FrameSinkIds 36 // |surface_handle|. All other CompositorFrameSinks are offscreen. FrameSinkIds
(...skipping 24 matching lines...) Expand all
61 61
62 // The DisplayCompositorClient interface is implemented by the Display 62 // The DisplayCompositorClient interface is implemented by the Display
63 // Compositor Host, a stable, and privileged peer service to the display 63 // Compositor Host, a stable, and privileged peer service to the display
64 // compositor. The display compositor host is either the browser process in 64 // compositor. The display compositor host is either the browser process in
65 // Chrome or the window server process. 65 // Chrome or the window server process.
66 interface DisplayCompositorClient { 66 interface DisplayCompositorClient {
67 // Called by the display compositor immediately upon receiving a 67 // Called by the display compositor immediately upon receiving a
68 // CompositorFrame with a new SurfaceId for the first time. 68 // CompositorFrame with a new SurfaceId for the first time.
69 OnSurfaceCreated(SurfaceInfo surface_info); 69 OnSurfaceCreated(SurfaceInfo surface_info);
70 }; 70 };
OLDNEW
« no previous file with comments | « no previous file | cc/surfaces/direct_compositor_frame_sink.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698