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

Unified Diff: ui/gfx/native_pixmap_handle.cc

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: s/cstddef/stddef.h 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
Index: ui/gfx/native_pixmap_handle.cc
diff --git a/ui/gfx/native_pixmap_handle.cc b/ui/gfx/native_pixmap_handle.cc
index a3092b265a834176575d61bfa38cf138badbf960..aedc9f94462763933cb84ace2fcfc34445dc7695 100644
--- a/ui/gfx/native_pixmap_handle.cc
+++ b/ui/gfx/native_pixmap_handle.cc
@@ -2,14 +2,20 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include <stdint.h>
+
#include "ui/gfx/native_pixmap_handle.h"
namespace gfx {
-NativePixmapPlane::NativePixmapPlane() : stride(0), offset(0), modifier(0) {}
+NativePixmapPlane::NativePixmapPlane()
+ : stride(0), offset(0), size(0), modifier(0) {}
-NativePixmapPlane::NativePixmapPlane(int stride, int offset, uint64_t modifier)
- : stride(stride), offset(offset), modifier(modifier) {}
+NativePixmapPlane::NativePixmapPlane(int stride,
+ int offset,
+ size_t size,
+ uint64_t modifier)
+ : stride(stride), offset(offset), size(size), modifier(modifier) {}
NativePixmapPlane::NativePixmapPlane(const NativePixmapPlane& other) = default;

Powered by Google App Engine
This is Rietveld 408576698