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

Side by Side Diff: ui/gfx/image/mojo/image.mojom

Issue 2770693002: ash: HiDPI user avatar for SessionController (Closed)
Patch Set: fix compile Created 3 years, 9 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
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 module gfx.mojom;
6
7 // Mojo transport for a SkBitmap via shared buffer.
8 // TODO: Merge into bitmap.mojom in skia and maybe share pixel buffer directly
9 // to make less copies.
msw 2017/03/24 17:59:32 optional nit: indent two more spaces?
xiyuan 2017/03/24 18:36:53 Done.
10 struct SharedBufferSkBitmap {
11 // Shared buffer handle to hold a serialized SkBitmap.
12 handle<shared_buffer> shared_buffer_handle;
13
14 // Byte size of the shared buffer.
15 uint64 buffer_byte_size;
16 };
17
18 // Mojo transport for an ImageSkiaRep using SharedBufferSkBitmap.
19 struct ImageSkiaRep {
20 // Transport of the bitmap in this representation.
21 SharedBufferSkBitmap bitmap;
22
23 // Corresponding scale of the bitmap or 0 if unscaled.
24 float scale;
25 };
26
27 // Mojo transport for an ImageSkia via shared buffer. Note the ImageSkia would
28 // be made thread-safe (all reps loaded and be immutable) after using this.
msw 2017/03/24 17:59:32 Does calling EnsureRepsForSupportedScales actually
xiyuan 2017/03/24 18:36:53 Oops. Forgot to update this after switching back f
29 struct ImageSkia {
30 array<ImageSkiaRep> image_reps;
31 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698