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

Unified Diff: src/core/SkMipMap.h

Issue 1249543003: Creating functions for uploading a mipmapped texture. (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: No longer exposing SkMipMap and SkCachedData. Created 5 years, 4 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
« no previous file with comments | « include/gpu/SkGr.h ('k') | src/core/SkMipMap.cpp » ('j') | src/gpu/GrGpu.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkMipMap.h
diff --git a/src/core/SkMipMap.h b/src/core/SkMipMap.h
index e22c0a2181a9c0fcb41d8c857037570c6d8bc7d7..0f5d254bcd2b9a032a8afbf0b85e0b78cd721b9a 100644
--- a/src/core/SkMipMap.h
+++ b/src/core/SkMipMap.h
@@ -10,11 +10,9 @@
#include "SkCachedData.h"
#include "SkScalar.h"
+#include "SkMipMapLevel.h"
class SkBitmap;
-class SkDiscardableMemory;
-
-typedef SkDiscardableMemory* (*SkDiscardableFactoryProc)(size_t bytes);
class SkMipMap : public SkCachedData {
public:
@@ -28,6 +26,8 @@ public:
};
bool extractLevel(SkScalar scale, Level*) const;
+ int getLevelsCount() const;
+ bool getLevel(int levelIndex, Level* levelPtr) const;
protected:
void onDataChange(void* oldData, void* newData) override {
« no previous file with comments | « include/gpu/SkGr.h ('k') | src/core/SkMipMap.cpp » ('j') | src/gpu/GrGpu.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698