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

Unified Diff: ui/gfx/mojo/buffer_types_traits.h

Issue 2272153002: Add ClientNativePixmap multi-planar support. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@client-native-pixmap-dmabug-multiple-planes
Patch Set: ifdef USE_OZONE for unused variables. Created 4 years, 3 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
« no previous file with comments | « ui/gfx/mojo/buffer_types.mojom ('k') | ui/gfx/mojo/struct_traits_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/mojo/buffer_types_traits.h
diff --git a/ui/gfx/mojo/buffer_types_traits.h b/ui/gfx/mojo/buffer_types_traits.h
index 175a493be12773aecf0b6a5afb2b6dfbfe28b182..311f98e6e90c0c826d9d61c9699852a4b6d974c5 100644
--- a/ui/gfx/mojo/buffer_types_traits.h
+++ b/ui/gfx/mojo/buffer_types_traits.h
@@ -199,6 +199,9 @@ struct StructTraits<gfx::mojom::NativePixmapPlaneDataView,
static int32_t offset(const gfx::NativePixmapPlane& plane) {
return plane.offset;
}
+ static uint64_t size(const gfx::NativePixmapPlane& plane) {
+ return plane.size;
+ }
static uint64_t modifier(const gfx::NativePixmapPlane& plane) {
return plane.modifier;
}
@@ -206,6 +209,7 @@ struct StructTraits<gfx::mojom::NativePixmapPlaneDataView,
gfx::NativePixmapPlane* out) {
out->stride = data.stride();
out->offset = data.offset();
+ out->size = data.size();
out->modifier = data.modifier();
return true;
}
« no previous file with comments | « ui/gfx/mojo/buffer_types.mojom ('k') | ui/gfx/mojo/struct_traits_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698