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

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: 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/native_pixmap_handle.h ('k') | ui/ozone/gl/gl_image_ozone_native_pixmap_drm_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..f0144a84c02a2e4b0baf9b4b6b1ee28f620fdd4a 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,
+ uint64_t size,
+ uint64_t modifier)
+ : stride(stride), offset(offset), size(size), modifier(modifier) {}
NativePixmapPlane::NativePixmapPlane(const NativePixmapPlane& other) = default;
« no previous file with comments | « ui/gfx/native_pixmap_handle.h ('k') | ui/ozone/gl/gl_image_ozone_native_pixmap_drm_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698