OLD | NEW |
(Empty) | |
| 1 /* |
| 2 * Copyright 2015 Google Inc. |
| 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. |
| 6 */ |
| 7 |
| 8 #ifndef SkMipMapLevel_DEFINED |
| 9 #define SkMipMapLevel_DEFINED |
| 10 |
| 11 #include "SkTypes.h" |
| 12 |
| 13 struct SkMipMapLevel { |
| 14 SkMipMapLevel(const void* texels, size_t rowBytes, uint32_t width, uint32_t
height); |
| 15 |
| 16 SkMipMapLevel() = delete; |
| 17 SkMipMapLevel(const SkMipMapLevel& rhs) = default; |
| 18 SkMipMapLevel(SkMipMapLevel&& rhs); // not "= default" because of VS2013 |
| 19 |
| 20 SkMipMapLevel& operator =(const SkMipMapLevel& rhs) = default; |
| 21 SkMipMapLevel& operator =(SkMipMapLevel&& rhs); // not "= default" because o
f VS2013 |
| 22 |
| 23 const void* fTexels; |
| 24 size_t fRowBytes; |
| 25 uint32_t fWidth; |
| 26 uint32_t fHeight; |
| 27 }; |
| 28 |
| 29 #endif |
OLD | NEW |