| Index: src/core/SkMipMapLevel.cpp
|
| diff --git a/src/core/SkMipMapLevel.cpp b/src/core/SkMipMapLevel.cpp
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..292337e9f9e32a5a4d80992923d848da58926bfd
|
| --- /dev/null
|
| +++ b/src/core/SkMipMapLevel.cpp
|
| @@ -0,0 +1,44 @@
|
| +/*
|
| + * Copyright 2015 Google Inc.
|
| + *
|
| + * Use of this source code is governed by a BSD-style license that can be
|
| + * found in the LICENSE file.
|
| + */
|
| +
|
| +
|
| +#include "SkMipMapLevel.h"
|
| +
|
| +SkMipMapLevel::SkMipMapLevel(const void* texelsOrOffset, size_t rowBytes, int width, int height)
|
| + : fTexelsOrOffset(texelsOrOffset)
|
| + , fRowBytes(rowBytes)
|
| + , fWidth(width)
|
| + , fHeight(height)
|
| +{
|
| +}
|
| +
|
| +SkMipMapLevel::SkMipMapLevel(SkMipMapLevel&& rhs)
|
| + : fTexelsOrOffset(rhs.fTexelsOrOffset)
|
| + , fRowBytes(rhs.fRowBytes)
|
| + , fWidth(rhs.fWidth)
|
| + , fHeight(rhs.fHeight)
|
| +{
|
| + rhs.fTexelsOrOffset = nullptr;
|
| + rhs.fRowBytes = 0;
|
| + rhs.fWidth = 0;
|
| + rhs.fHeight = 0;
|
| +}
|
| +
|
| +SkMipMapLevel& SkMipMapLevel::operator =(SkMipMapLevel&& rhs)
|
| +{
|
| + fTexelsOrOffset = rhs.fTexelsOrOffset;
|
| + fRowBytes = rhs.fRowBytes;
|
| + fWidth = rhs.fWidth;
|
| + fHeight = rhs.fHeight;
|
| +
|
| + rhs.fTexelsOrOffset = nullptr;
|
| + rhs.fRowBytes = 0;
|
| + rhs.fWidth = 0;
|
| + rhs.fHeight = 0;
|
| +
|
| + return *this;
|
| +}
|
|
|