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

Side by Side Diff: skia/public/interfaces/bitmap.mojom

Issue 2772113004: Make skia.mojom.Bitmap use shared buffer (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
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 // This file contains structures used to represent SkBitmaps in Mojo. 5 // This file contains structures used to represent SkBitmaps in Mojo.
6 module skia.mojom; 6 module skia.mojom;
7 7
8 // Mirror of SkColorType. 8 // Mirror of SkColorType.
9 enum ColorType { 9 enum ColorType {
10 UNKNOWN, 10 UNKNOWN,
(...skipping 23 matching lines...) Expand all
34 34
35 struct Bitmap { 35 struct Bitmap {
36 ColorType color_type; 36 ColorType color_type;
37 AlphaType alpha_type; 37 AlphaType alpha_type;
38 ColorProfileType profile_type; 38 ColorProfileType profile_type;
39 39
40 uint32 width; 40 uint32 width;
41 uint32 height; 41 uint32 height;
42 uint64 row_bytes; 42 uint64 row_bytes;
43 43
44 array<uint8> pixel_data; 44 // Handle could be null if the bitmap is empty.
45 handle<shared_buffer>? pixel_data_buffer_handle;
msw 2017/03/25 00:59:52 Does it make sense to have our only SkBitmap trans
Ken Rockot(use gerrit already) 2017/03/26 17:52:50 No, the shared buffer is allocated during serializ
45 }; 46 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698