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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: skia/public/interfaces/bitmap.mojom
diff --git a/skia/public/interfaces/bitmap.mojom b/skia/public/interfaces/bitmap.mojom
index b02833af03fc8792aea533f8655f07544fa748e9..f3aae5e8e1ef5e898207af03a29af773c38ef5e5 100644
--- a/skia/public/interfaces/bitmap.mojom
+++ b/skia/public/interfaces/bitmap.mojom
@@ -41,5 +41,6 @@ struct Bitmap {
uint32 height;
uint64 row_bytes;
- array<uint8> pixel_data;
+ // Handle could be null if the bitmap is empty.
+ 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
};

Powered by Google App Engine
This is Rietveld 408576698