Index: include/core/SkMipMapLevel.h |
diff --git a/include/core/SkMipMapLevel.h b/include/core/SkMipMapLevel.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..7d4ace4dc6cbb3cf8b64aad287cc5e4737e3d61b |
--- /dev/null |
+++ b/include/core/SkMipMapLevel.h |
@@ -0,0 +1,29 @@ |
+/* |
+ * Copyright 2015 Google Inc. |
+ * |
+ * Use of this source code is governed by a BSD-style license that can be |
+ * found in the LICENSE file. |
+ */ |
+ |
+#ifndef SkMipMapLevel_DEFINED |
+#define SkMipMapLevel_DEFINED |
+ |
+#include "SkTypes.h" |
+ |
+struct SkMipMapLevel { |
+ SkMipMapLevel(const void* texels, size_t rowBytes, int width, int height); |
+ |
+ SkMipMapLevel() = delete; |
+ SkMipMapLevel(const SkMipMapLevel& rhs) = default; |
+ SkMipMapLevel(SkMipMapLevel&& rhs); // not "= default" because of VS2013 |
+ |
+ SkMipMapLevel& operator =(const SkMipMapLevel& rhs) = default; |
+ SkMipMapLevel& operator =(SkMipMapLevel&& rhs); // not "= default" because of VS2013 |
+ |
+ const void* fTexels; |
+ size_t fRowBytes; |
+ int fWidth; |
+ int fHeight; |
+}; |
+ |
+#endif |