| Index: include/gpu/SkGr.h
|
| diff --git a/include/gpu/SkGr.h b/include/gpu/SkGr.h
|
| index db318b0b4cef14438b45f5e85622bdb47967bf2d..7dd1aff456e8b06004fbf54c51ec557a98887455 100644
|
| --- a/include/gpu/SkGr.h
|
| +++ b/include/gpu/SkGr.h
|
| @@ -69,11 +69,27 @@ static inline GrColor SkColor2GrColorJustAlpha(SkColor c) {
|
|
|
| ////////////////////////////////////////////////////////////////////////////////
|
|
|
| +/**
|
| + * If the compressed data in the SkData is supported (as a texture format, this returns
|
| + * the pixel-config that should be used, and sets outStartOfDataToUpload to the ptr into
|
| + * the data where the actual raw data starts (skipping any header bytes).
|
| + *
|
| + * If the compressed data is not supported, this returns kUnknown_GrPixelConfig, and
|
| + * ignores outStartOfDataToUpload.
|
| + */
|
| +GrPixelConfig GrIsCompressedTextureDataSupported(GrContext* ctx, SkData* data,
|
| + int expectedW, int expectedH,
|
| + const void** outStartOfDataToUpload);
|
| +
|
| bool GrIsBitmapInCache(const GrContext*, const SkBitmap&, const GrTextureParams*);
|
|
|
| GrTexture* GrRefCachedBitmapTexture(GrContext*, const SkBitmap&, const GrTextureParams*);
|
| GrTexture* GrRefCachedBitmapTexture(GrContext*, const SkBitmap&, SkImageUsageType);
|
|
|
| +GrTexture* GrCreateTextureForPixels(GrContext*, const GrUniqueKey& optionalKey, GrSurfaceDesc,
|
| + SkPixelRef* pixelRefForInvalidationNotificationOrNull,
|
| + const void* pixels, size_t rowBytesOrZero);
|
| +
|
| ////////////////////////////////////////////////////////////////////////////////
|
|
|
| // Converts a SkPaint to a GrPaint, ignoring the SkPaint's shader.
|
|
|