OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #ifndef SkGrPriv_DEFINED | 8 #ifndef SkGrPriv_DEFINED |
9 #define SkGrPriv_DEFINED | 9 #define SkGrPriv_DEFINED |
10 | 10 |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 const SkMatrix& viewM, | 95 const SkMatrix& viewM, |
96 sk_sp<GrFragmentProcessor> fp, | 96 sk_sp<GrFragmentProcessor> fp, |
97 bool textureIsAlphaOnly, | 97 bool textureIsAlphaOnly, |
98 bool allowSRGBInputs, | 98 bool allowSRGBInputs, |
99 GrPaint* grPaint); | 99 GrPaint* grPaint); |
100 | 100 |
101 ////////////////////////////////////////////////////////////////////////////// | 101 ////////////////////////////////////////////////////////////////////////////// |
102 | 102 |
103 GrSurfaceDesc GrImageInfoToSurfaceDesc(const SkImageInfo&, const GrCaps&); | 103 GrSurfaceDesc GrImageInfoToSurfaceDesc(const SkImageInfo&, const GrCaps&); |
104 | 104 |
105 bool GrPixelConfig2ColorAndProfileType(GrPixelConfig, SkColorType*, SkColorProfi
leType*); | 105 bool GrPixelConfigToColorAndColorSpace(GrPixelConfig, SkColorType*, sk_sp<SkColo
rSpace>*); |
106 | 106 |
107 /** | 107 /** |
108 * If the compressed data in the SkData is supported (as a texture format, this
returns | 108 * If the compressed data in the SkData is supported (as a texture format, this
returns |
109 * the pixel-config that should be used, and sets outStartOfDataToUpload to the
ptr into | 109 * the pixel-config that should be used, and sets outStartOfDataToUpload to the
ptr into |
110 * the data where the actual raw data starts (skipping any header bytes). | 110 * the data where the actual raw data starts (skipping any header bytes). |
111 * | 111 * |
112 * If the compressed data is not supported, this returns kUnknown_GrPixelConfig
, and | 112 * If the compressed data is not supported, this returns kUnknown_GrPixelConfig
, and |
113 * ignores outStartOfDataToUpload. | 113 * ignores outStartOfDataToUpload. |
114 */ | 114 */ |
115 GrPixelConfig GrIsCompressedTextureDataSupported(GrContext* ctx, SkData* data, | 115 GrPixelConfig GrIsCompressedTextureDataSupported(GrContext* ctx, SkData* data, |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 GR_STATIC_ASSERT((int)kIDC_GrBlendCoeff == (int)SkXfermode::kIDC_Coeff); | 147 GR_STATIC_ASSERT((int)kIDC_GrBlendCoeff == (int)SkXfermode::kIDC_Coeff); |
148 GR_STATIC_ASSERT((int)kSA_GrBlendCoeff == (int)SkXfermode::kSA_Coeff); | 148 GR_STATIC_ASSERT((int)kSA_GrBlendCoeff == (int)SkXfermode::kSA_Coeff); |
149 GR_STATIC_ASSERT((int)kISA_GrBlendCoeff == (int)SkXfermode::kISA_Coeff); | 149 GR_STATIC_ASSERT((int)kISA_GrBlendCoeff == (int)SkXfermode::kISA_Coeff); |
150 GR_STATIC_ASSERT((int)kDA_GrBlendCoeff == (int)SkXfermode::kDA_Coeff); | 150 GR_STATIC_ASSERT((int)kDA_GrBlendCoeff == (int)SkXfermode::kDA_Coeff); |
151 GR_STATIC_ASSERT((int)kIDA_GrBlendCoeff == (int)SkXfermode::kIDA_Coeff); | 151 GR_STATIC_ASSERT((int)kIDA_GrBlendCoeff == (int)SkXfermode::kIDA_Coeff); |
152 GR_STATIC_ASSERT(SkXfermode::kCoeffCount == 10); | 152 GR_STATIC_ASSERT(SkXfermode::kCoeffCount == 10); |
153 | 153 |
154 #define SkXfermodeCoeffToGrBlendCoeff(X) ((GrBlendCoeff)(X)) | 154 #define SkXfermodeCoeffToGrBlendCoeff(X) ((GrBlendCoeff)(X)) |
155 | 155 |
156 #endif | 156 #endif |
OLD | NEW |