| 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 // Converts a SkPaint to a GrPaint, ignoring the SkPaint's shader. | 82 // Converts a SkPaint to a GrPaint, ignoring the SkPaint's shader. |
| 83 // Sets the color of GrPaint to the value of the parameter paintColor | 83 // Sets the color of GrPaint to the value of the parameter paintColor |
| 84 // Callers may subsequently modify the GrPaint. Setting constantColor indicates | 84 // Callers may subsequently modify the GrPaint. Setting constantColor indicates |
| 85 // that the final paint will draw the same color at every pixel. This allows | 85 // that the final paint will draw the same color at every pixel. This allows |
| 86 // an optimization where the the color filter can be applied to the SkPaint's | 86 // an optimization where the the color filter can be applied to the SkPaint's |
| 87 // color once while converting to GrPaint and then ignored. | 87 // color once while converting to GrPaint and then ignored. |
| 88 void SkPaint2GrPaintNoShader(GrContext* context, const SkPaint& skPaint, GrColor
paintColor, | 88 void SkPaint2GrPaintNoShader(GrContext* context, const SkPaint& skPaint, GrColor
paintColor, |
| 89 bool constantColor, GrPaint* grPaint); | 89 bool constantColor, GrPaint* grPaint); |
| 90 | 90 |
| 91 // This function is similar to skPaint2GrPaintNoShader but also converts | 91 // This function is similar to skPaint2GrPaintNoShader but also converts |
| 92 // skPaint's shader to a GrTexture/GrProcessorStage if possible. | 92 // skPaint's shader to a GrFragmentProcessor if possible. |
| 93 // constantColor has the same meaning as in skPaint2GrPaintNoShader. | 93 // constantColor has the same meaning as in skPaint2GrPaintNoShader. |
| 94 void SkPaint2GrPaintShader(GrContext* context, const SkPaint& skPaint, | 94 void SkPaint2GrPaintShader(GrContext* context, const SkPaint& skPaint, |
| 95 bool constantColor, GrPaint* grPaint); | 95 bool constantColor, GrPaint* grPaint); |
| 96 | 96 |
| 97 //////////////////////////////////////////////////////////////////////////////// | 97 //////////////////////////////////////////////////////////////////////////////// |
| 98 // Classes | 98 // Classes |
| 99 | 99 |
| 100 class SkGlyphCache; | 100 class SkGlyphCache; |
| 101 | 101 |
| 102 //////////////////////////////////////////////////////////////////////////////// | 102 //////////////////////////////////////////////////////////////////////////////// |
| 103 | 103 |
| 104 #endif | 104 #endif |
| OLD | NEW |