Index: include/core/SkMipMapLevel.h |
diff --git a/include/core/SkMipMapLevel.h b/include/core/SkMipMapLevel.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..eeef0719bb1ffa2e934a5db8715de2c190877409 |
--- /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, uint32_t width, uint32_t 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; |
+ uint32_t fWidth; |
+ uint32_t fHeight; |
+}; |
+ |
+#endif |