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

Unified Diff: include/gpu/SkGr.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: include/gpu/SkGr.h
diff --git a/include/gpu/SkGr.h b/include/gpu/SkGr.h
index 68b93a1f8a7e15fcc775c95ead7016325d0ae59c..cddec790e19099d57acb3bc4d2206c12ffc7560e 100644
--- a/include/gpu/SkGr.h
+++ b/include/gpu/SkGr.h
@@ -20,10 +20,11 @@
// skia headers
#include "SkBitmap.h"
+#include "SkClipStack.h"
+#include "SkMipMapLevel.h"
#include "SkPath.h"
#include "SkPoint.h"
#include "SkRegion.h"
-#include "SkClipStack.h"
////////////////////////////////////////////////////////////////////////////////
// Sk to Gr Type conversions
@@ -89,6 +90,8 @@ bool GrIsImageInCache(const GrContext* ctx, uint32_t imageID, const SkIRect& sub
GrTexture* GrRefCachedBitmapTexture(GrContext*, const SkBitmap&, const GrTextureParams*);
GrTexture* GrRefCachedBitmapTexture(GrContext*, const SkBitmap&, SkImageUsageType);
+GrTexture* GrMipMapTexture(GrContext&, const SkBitmap&, SkDiscardableFactoryProc);
+
GrTexture* GrCreateTextureForPixels(GrContext*, const GrUniqueKey& optionalKey, GrSurfaceDesc,
SkPixelRef* pixelRefForInvalidationNotificationOrNull,
const void* pixels, size_t rowBytesOrZero);

Powered by Google App Engine
This is Rietveld 408576698