Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Unified Diff: include/core/SkMipMapLevel.h

Issue 1249543003: Creating functions for uploading a mipmapped texture. (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: Fixing merge mistakes Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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
« no previous file with comments | « gyp/core.gypi ('k') | include/gpu/GrContext.h » ('j') | include/gpu/GrContext.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698