| Index: src/gpu/SkGrPriv.h
|
| diff --git a/src/gpu/SkGrPriv.h b/src/gpu/SkGrPriv.h
|
| index 46be3a53cfb0b322ab5832ac3867c338dc9fd46d..d9e6178421cfbd869e72dc16d2d97e8b7101d6d8 100644
|
| --- a/src/gpu/SkGrPriv.h
|
| +++ b/src/gpu/SkGrPriv.h
|
| @@ -10,6 +10,7 @@
|
|
|
| #include "GrTypes.h"
|
| #include "GrBlend.h"
|
| +#include "SkEncodedFormat.h"
|
| #include "SkImageInfo.h"
|
| #include "SkMatrix.h"
|
| #include "SkXfermode.h"
|
| @@ -105,6 +106,22 @@ GrSurfaceDesc GrImageInfoToSurfaceDesc(const SkImageInfo&, const GrCaps&);
|
| bool GrPixelConfig2ColorAndProfileType(GrPixelConfig, SkColorType*, SkColorProfileType*);
|
|
|
| /**
|
| + * Returns true if the specified encoded format might be supported on this GPU.
|
| + */
|
| +bool GrIsCompressedFormatPossiblySupported(GrContext*, SkEncodedFormat);
|
| +
|
| +/**
|
| + * Sniffs the provided data, and returns true if it might be supported by the gpu.
|
| + * If the format is not recognized, this returns false.
|
| + *
|
| + * Note: it is possible that even if true is returned, that the gpu may fail to actually support
|
| + * it as a texture, once the width/height are considered.
|
| + *
|
| + * See GrIsCompressedTextureDataPossiblySupported()
|
| + */
|
| +bool GrIsCompressedTextureDataPossiblySupported(GrContext* ctx, const void* data, size_t size);
|
| +
|
| +/**
|
| * 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).
|
|
|