| 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 lookup. If there is a shader, then its output will only be used if the text
ure is alpha8. */ | 88 lookup. If there is a shader, then its output will only be used if the text
ure is alpha8. */ |
| 89 bool SkPaintToGrPaintWithTexture(GrContext* context, | 89 bool SkPaintToGrPaintWithTexture(GrContext* context, |
| 90 const SkPaint& paint, | 90 const SkPaint& paint, |
| 91 const SkMatrix& viewM, | 91 const SkMatrix& viewM, |
| 92 const GrFragmentProcessor* fp, | 92 const GrFragmentProcessor* fp, |
| 93 bool textureIsAlphaOnly, | 93 bool textureIsAlphaOnly, |
| 94 GrPaint* grPaint); | 94 GrPaint* grPaint); |
| 95 | 95 |
| 96 ////////////////////////////////////////////////////////////////////////////// | 96 ////////////////////////////////////////////////////////////////////////////// |
| 97 | 97 |
| 98 GrSurfaceDesc GrImageInfoToSurfaceDesc(const SkImageInfo&, const GrCaps&); | 98 GrSurfaceDesc GrImageInfoToSurfaceDesc(const SkImageInfo&); |
| 99 | 99 |
| 100 bool GrPixelConfig2ColorAndProfileType(GrPixelConfig, SkColorType*, SkColorProfi
leType*); | 100 bool GrPixelConfig2ColorAndProfileType(GrPixelConfig, SkColorType*, SkColorProfi
leType*); |
| 101 | 101 |
| 102 /** | 102 /** |
| 103 * If the compressed data in the SkData is supported (as a texture format, this
returns | 103 * If the compressed data in the SkData is supported (as a texture format, this
returns |
| 104 * the pixel-config that should be used, and sets outStartOfDataToUpload to the
ptr into | 104 * the pixel-config that should be used, and sets outStartOfDataToUpload to the
ptr into |
| 105 * the data where the actual raw data starts (skipping any header bytes). | 105 * the data where the actual raw data starts (skipping any header bytes). |
| 106 * | 106 * |
| 107 * If the compressed data is not supported, this returns kUnknown_GrPixelConfig
, and | 107 * If the compressed data is not supported, this returns kUnknown_GrPixelConfig
, and |
| 108 * ignores outStartOfDataToUpload. | 108 * ignores outStartOfDataToUpload. |
| (...skipping 27 matching lines...) Expand all Loading... |
| 136 GR_STATIC_ASSERT((int)kIDC_GrBlendCoeff == (int)SkXfermode::kIDC_Coeff); | 136 GR_STATIC_ASSERT((int)kIDC_GrBlendCoeff == (int)SkXfermode::kIDC_Coeff); |
| 137 GR_STATIC_ASSERT((int)kSA_GrBlendCoeff == (int)SkXfermode::kSA_Coeff); | 137 GR_STATIC_ASSERT((int)kSA_GrBlendCoeff == (int)SkXfermode::kSA_Coeff); |
| 138 GR_STATIC_ASSERT((int)kISA_GrBlendCoeff == (int)SkXfermode::kISA_Coeff); | 138 GR_STATIC_ASSERT((int)kISA_GrBlendCoeff == (int)SkXfermode::kISA_Coeff); |
| 139 GR_STATIC_ASSERT((int)kDA_GrBlendCoeff == (int)SkXfermode::kDA_Coeff); | 139 GR_STATIC_ASSERT((int)kDA_GrBlendCoeff == (int)SkXfermode::kDA_Coeff); |
| 140 GR_STATIC_ASSERT((int)kIDA_GrBlendCoeff == (int)SkXfermode::kIDA_Coeff); | 140 GR_STATIC_ASSERT((int)kIDA_GrBlendCoeff == (int)SkXfermode::kIDA_Coeff); |
| 141 GR_STATIC_ASSERT(SkXfermode::kCoeffCount == 10); | 141 GR_STATIC_ASSERT(SkXfermode::kCoeffCount == 10); |
| 142 | 142 |
| 143 #define SkXfermodeCoeffToGrBlendCoeff(X) ((GrBlendCoeff)(X)) | 143 #define SkXfermodeCoeffToGrBlendCoeff(X) ((GrBlendCoeff)(X)) |
| 144 | 144 |
| 145 #endif | 145 #endif |
| OLD | NEW |