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

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

Issue 2547243002: Set device scale factor in CompositorFrame and scale frame size in WS. (Closed)
Patch Set: Created 4 years 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 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/mojo_compositor_frame_sink.mojom"; 8 import "cc/ipc/mojo_compositor_frame_sink.mojom";
9 import "cc/ipc/surface_id.mojom"; 9 import "cc/ipc/surface_id.mojom";
10 import "cc/ipc/surface_sequence.mojom"; 10 import "cc/ipc/surface_sequence.mojom";
(...skipping 30 matching lines...) Expand all
41 }; 41 };
42 42
43 // The DisplayCompositorClient interface is implemented by the Display 43 // The DisplayCompositorClient interface is implemented by the Display
44 // Compositor Host, a stable, and privileged peer service to the display 44 // Compositor Host, a stable, and privileged peer service to the display
45 // compositor. The display compositor host is either the browser process in 45 // compositor. The display compositor host is either the browser process in
46 // Chrome or the window server process. 46 // Chrome or the window server process.
47 interface DisplayCompositorClient { 47 interface DisplayCompositorClient {
48 // Called by the display compositor immediately upon receiving a 48 // Called by the display compositor immediately upon receiving a
49 // CompositorFrame with a new SurfaceId for the first time. 49 // CompositorFrame with a new SurfaceId for the first time.
50 OnSurfaceCreated(cc.mojom.SurfaceId surface_id, 50 OnSurfaceCreated(cc.mojom.SurfaceId surface_id,
51 gfx.mojom.Size frame_size, 51 gfx.mojom.Size frame_size_in_dip,
kylechar 2016/12/05 14:46:11 This is comes via SurfaceManager like so: Surface
52 float device_scale_factor); 52 float device_scale_factor);
53 }; 53 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698