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

Unified Diff: src/gpu/SkGrPriv.h

Issue 1404433002: Remove image usage type enum. Use GrTextureParams instead. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix no gpu build 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
« no previous file with comments | « src/gpu/SkGr.cpp ('k') | src/image/SkImageShader.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/SkGrPriv.h
diff --git a/src/gpu/SkGrPriv.h b/src/gpu/SkGrPriv.h
index 88bee5cc33041a304e8f6ab601d4ede40bfced09..6c9f731af2d744aebda8481c003e9897f11b22e1 100644
--- a/src/gpu/SkGrPriv.h
+++ b/src/gpu/SkGrPriv.h
@@ -10,8 +10,8 @@
#include "GrTypes.h"
#include "GrBlend.h"
-#include "GrTextureAccess.h"
#include "SkImageInfo.h"
+#include "SkMatrix.h"
#include "SkXfermode.h"
class GrCaps;
@@ -19,9 +19,11 @@ class GrContext;
class GrFragmentProcessor;
class GrPaint;
class GrTexture;
+class GrTextureParams;
class GrUniqueKey;
+class SkData;
class SkPaint;
-class SkMatrix;
+class SkPixelRef;
struct SkIRect;
struct SkGrStretch {
@@ -34,8 +36,6 @@ struct SkGrStretch {
int fHeight;
};
-GrTextureParams GrImageUsageToTextureParams(SkImageUsageType);
-
/**
* Our key includes the offset, width, and height so that bitmaps created by extractSubset()
* are unique.
@@ -48,7 +48,7 @@ GrTextureParams GrImageUsageToTextureParams(SkImageUsageType);
* Note: width/height must fit in 16bits for this impl.
*/
void GrMakeKeyFromImageID(GrUniqueKey* key, uint32_t imageID, const SkIRect& imageBounds,
- const GrCaps&, SkImageUsageType);
+ const GrCaps&, const GrTextureParams&);
/**
* Given an "unstretched" key, and a stretch rec, produce a stretched key.
@@ -98,8 +98,6 @@ inline bool SkPaintToGrPaintWithPrimitiveColor(GrContext* context, const SkPaint
//////////////////////////////////////////////////////////////////////////////
-bool GrTextureUsageSupported(const GrCaps&, int width, int height, SkImageUsageType);
-
GrSurfaceDesc GrImageInfoToSurfaceDesc(const SkImageInfo&);
bool GrPixelConfig2ColorAndProfileType(GrPixelConfig, SkColorType*, SkColorProfileType*);
@@ -117,7 +115,7 @@ GrPixelConfig GrIsCompressedTextureDataSupported(GrContext* ctx, SkData* data,
const void** outStartOfDataToUpload);
bool GrIsImageInCache(const GrContext* ctx, uint32_t imageID, const SkIRect& subset,
- GrTexture* nativeTexture, const GrTextureParams*);
+ GrTexture* nativeTexture, const GrTextureParams&);
GrTexture* GrCreateTextureForPixels(GrContext*, const GrUniqueKey& optionalKey, GrSurfaceDesc,
SkPixelRef* pixelRefForInvalidationNotificationOrNull,
« no previous file with comments | « src/gpu/SkGr.cpp ('k') | src/image/SkImageShader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698