OLD | NEW |
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 | |
7 #include "ui/gfx/native_pixmap_handle.h" | 5 #include "ui/gfx/native_pixmap_handle.h" |
8 | 6 |
9 namespace gfx { | 7 namespace gfx { |
10 | 8 |
11 NativePixmapPlane::NativePixmapPlane() | 9 NativePixmapPlane::NativePixmapPlane() : stride(0), offset(0), modifier(0) {} |
12 : stride(0), offset(0), size(0), modifier(0) {} | |
13 | 10 |
14 NativePixmapPlane::NativePixmapPlane(int stride, | 11 NativePixmapPlane::NativePixmapPlane(int stride, int offset, uint64_t modifier) |
15 int offset, | 12 : stride(stride), offset(offset), modifier(modifier) {} |
16 size_t size, | |
17 uint64_t modifier) | |
18 : stride(stride), offset(offset), size(size), modifier(modifier) {} | |
19 | 13 |
20 NativePixmapPlane::NativePixmapPlane(const NativePixmapPlane& other) = default; | 14 NativePixmapPlane::NativePixmapPlane(const NativePixmapPlane& other) = default; |
21 | 15 |
22 NativePixmapPlane::~NativePixmapPlane() {} | 16 NativePixmapPlane::~NativePixmapPlane() {} |
23 | 17 |
24 NativePixmapHandle::NativePixmapHandle() {} | 18 NativePixmapHandle::NativePixmapHandle() {} |
25 NativePixmapHandle::NativePixmapHandle(const NativePixmapHandle& other) = | 19 NativePixmapHandle::NativePixmapHandle(const NativePixmapHandle& other) = |
26 default; | 20 default; |
27 | 21 |
28 NativePixmapHandle::~NativePixmapHandle() {} | 22 NativePixmapHandle::~NativePixmapHandle() {} |
29 | 23 |
30 } // namespace gfx | 24 } // namespace gfx |
OLD | NEW |