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

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: Removing the concept of a dirty mipmap. It is expected that the texture upload provides the mipmaps. Created 5 years, 3 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: src/core/SkMipMap.h
diff --git a/src/core/SkMipMap.h b/src/core/SkMipMap.h
index 36c17ba91e3639c8e508a32bd764db12146d0f84..aa19d26b89ec88b0a8e083ed4da1650ced99c087 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 {

Powered by Google App Engine
This is Rietveld 408576698