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

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

Issue 2770693002: ash: HiDPI user avatar for SessionController (Closed)
Patch Set: fix gn check 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 ImageSkiaRep via shared buffer.
msw 2017/03/23 20:47:51 I wonder if we should [add a todo/bug comment to]
xiyuan 2017/03/24 05:45:19 I think that would be helpful - Modified the CL to
8 struct ImageSkiaRep {
9 // Shared buffer handle to holds a serialized SkBitmap.
msw 2017/03/23 20:47:51 nit: "to hold" or "that holds"
xiyuan 2017/03/24 05:45:19 Done.
10 handle<shared_buffer> shared_buffer_handle;
msw 2017/03/23 20:47:51 I'm not well versed with shared memory patterns (m
xiyuan 2017/03/24 05:45:19 Acknowledged. Will ask sadrul@ to take a look.
11
12 // Byte size of the shared buffer.
13 uint32 buffer_byte_size;
14
15 // Corresponding scale of the bitmap.
16 float scale;
17 };
18
19 // Mojo transport for existing representations of an ImageSkia via shared
20 // buffer. Note it is caller's responsibility to ensure the ImageSkia contains
msw 2017/03/23 20:47:51 nit: "Note that it is the caller's"
xiyuan 2017/03/24 05:45:20 Update comment to reflect that we do MakeThreadSaf
21 // all needed representations.
22 struct ImageSkia {
23 array<ImageSkiaRep> image_reps;
24 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698