Index: include/core/SkMipMapLevel.h |
diff --git a/include/core/SkMipMapLevel.h b/include/core/SkMipMapLevel.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..13b19db8691fcd529a079c686817ab2c85f0725a |
--- /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* texelsOrOffset, 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* fTexelsOrOffset; |
+ size_t fRowBytes; |
+ int fWidth; |
+ int fHeight; |
+}; |
+ |
+#endif |