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 |
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 |
OLD | NEW |