| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2010 Google Inc. | 3 * Copyright 2010 Google Inc. |
| 4 * | 4 * |
| 5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 | 9 |
| 10 | 10 |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 // Converts a SkPaint to a GrPaint, ignoring the SkPaint's shader. | 79 // Converts a SkPaint to a GrPaint, ignoring the SkPaint's shader. |
| 80 // Sets the color of GrPaint to the value of the parameter paintColor | 80 // Sets the color of GrPaint to the value of the parameter paintColor |
| 81 // Callers may subsequently modify the GrPaint. Setting constantColor indicates | 81 // Callers may subsequently modify the GrPaint. Setting constantColor indicates |
| 82 // that the final paint will draw the same color at every pixel. This allows | 82 // that the final paint will draw the same color at every pixel. This allows |
| 83 // an optimization where the the color filter can be applied to the SkPaint's | 83 // an optimization where the the color filter can be applied to the SkPaint's |
| 84 // color once while converting to GrPaint and then ignored. | 84 // color once while converting to GrPaint and then ignored. |
| 85 void SkPaint2GrPaintNoShader(GrContext* context, const SkPaint& skPaint, GrColor
paintColor, | 85 void SkPaint2GrPaintNoShader(GrContext* context, const SkPaint& skPaint, GrColor
paintColor, |
| 86 bool constantColor, GrPaint* grPaint); | 86 bool constantColor, GrPaint* grPaint); |
| 87 | 87 |
| 88 // This function is similar to skPaint2GrPaintNoShader but also converts | 88 // This function is similar to skPaint2GrPaintNoShader but also converts |
| 89 // skPaint's shader to a GrTexture/GrEffectStage if possible. | 89 // skPaint's shader to a GrTexture/GrProcessorStage if possible. |
| 90 // constantColor has the same meaning as in skPaint2GrPaintNoShader. | 90 // constantColor has the same meaning as in skPaint2GrPaintNoShader. |
| 91 void SkPaint2GrPaintShader(GrContext* context, const SkPaint& skPaint, | 91 void SkPaint2GrPaintShader(GrContext* context, const SkPaint& skPaint, |
| 92 bool constantColor, GrPaint* grPaint); | 92 bool constantColor, GrPaint* grPaint); |
| 93 | 93 |
| 94 //////////////////////////////////////////////////////////////////////////////// | 94 //////////////////////////////////////////////////////////////////////////////// |
| 95 // Classes | 95 // Classes |
| 96 | 96 |
| 97 class SkGlyphCache; | 97 class SkGlyphCache; |
| 98 | 98 |
| 99 //////////////////////////////////////////////////////////////////////////////// | 99 //////////////////////////////////////////////////////////////////////////////// |
| 100 | 100 |
| 101 #endif | 101 #endif |
| OLD | NEW |