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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #include <stdint.h>
6
5 #include "ui/gfx/native_pixmap_handle.h" 7 #include "ui/gfx/native_pixmap_handle.h"
6 8
7 namespace gfx { 9 namespace gfx {
8 10
9 NativePixmapPlane::NativePixmapPlane() : stride(0), offset(0), modifier(0) {} 11 NativePixmapPlane::NativePixmapPlane()
12 : stride(0), offset(0), size(0), modifier(0) {}
10 13
11 NativePixmapPlane::NativePixmapPlane(int stride, int offset, uint64_t modifier) 14 NativePixmapPlane::NativePixmapPlane(int stride,
12 : stride(stride), offset(offset), modifier(modifier) {} 15 int offset,
16 size_t size,
17 uint64_t modifier)
18 : stride(stride), offset(offset), size(size), modifier(modifier) {}
13 19
14 NativePixmapPlane::NativePixmapPlane(const NativePixmapPlane& other) = default; 20 NativePixmapPlane::NativePixmapPlane(const NativePixmapPlane& other) = default;
15 21
16 NativePixmapPlane::~NativePixmapPlane() {} 22 NativePixmapPlane::~NativePixmapPlane() {}
17 23
18 NativePixmapHandle::NativePixmapHandle() {} 24 NativePixmapHandle::NativePixmapHandle() {}
19 NativePixmapHandle::NativePixmapHandle(const NativePixmapHandle& other) = 25 NativePixmapHandle::NativePixmapHandle(const NativePixmapHandle& other) =
20 default; 26 default;
21 27
22 NativePixmapHandle::~NativePixmapHandle() {} 28 NativePixmapHandle::~NativePixmapHandle() {}
23 29
24 } // namespace gfx 30 } // namespace gfx
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698