Index: include/core/SkMipMapLevel.h |
diff --git a/include/core/SkMipMapLevel.h b/include/core/SkMipMapLevel.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..b00f9401ba1eb6119512806c14d0343a5cf9b5af |
--- /dev/null |
+++ b/include/core/SkMipMapLevel.h |
@@ -0,0 +1,33 @@ |
+/* |
+ * 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" |
+ |
+class SkDiscardableMemory; |
+ |
+typedef SkDiscardableMemory* (*SkDiscardableFactoryProc)(size_t bytes); |
+ |
+struct SkMipMapLevel { |
+ SkMipMapLevel(const void* texels, size_t rowBytes, uint32_t width, uint32_t height); |
+ |
+ SkMipMapLevel() = delete; |
+ SkMipMapLevel(const SkMipMapLevel& rhs) = default; |
+ SkMipMapLevel(SkMipMapLevel&& rhs) = default; |
+ |
+ SkMipMapLevel& operator =(const SkMipMapLevel& rhs) = default; |
+ SkMipMapLevel& operator =(SkMipMapLevel&& rhs) = default; |
+ |
+ const void* fTexels; |
+ size_t fRowBytes; |
+ uint32_t fWidth; |
+ uint32_t fHeight; |
+}; |
+ |
+#endif |