| 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 // bool and use the invariant info to automatically apply the color filter. | 83 // bool and use the invariant info to automatically apply the color filter. |
| 84 bool SkPaint2GrPaintNoShader(GrContext* context, GrRenderTarget*, const SkPaint&
skPaint, | 84 bool SkPaint2GrPaintNoShader(GrContext* context, GrRenderTarget*, const SkPaint&
skPaint, |
| 85 GrColor paintColor, bool constantColor, GrPaint* gr
Paint); | 85 GrColor paintColor, bool constantColor, GrPaint* gr
Paint); |
| 86 | 86 |
| 87 // This function is similar to skPaint2GrPaintNoShader but also converts | 87 // This function is similar to skPaint2GrPaintNoShader but also converts |
| 88 // skPaint's shader to a GrFragmentProcessor if possible. | 88 // skPaint's shader to a GrFragmentProcessor if possible. |
| 89 // constantColor has the same meaning as in skPaint2GrPaintNoShader. | 89 // constantColor has the same meaning as in skPaint2GrPaintNoShader. |
| 90 bool SkPaint2GrPaint(GrContext* context, GrRenderTarget*, const SkPaint& skPaint
, | 90 bool SkPaint2GrPaint(GrContext* context, GrRenderTarget*, const SkPaint& skPaint
, |
| 91 const SkMatrix& viewM, bool constantColor, GrPaint* grPaint
); | 91 const SkMatrix& viewM, bool constantColor, GrPaint* grPaint
); |
| 92 | 92 |
| 93 |
| 94 SkImageInfo GrMakeInfoFromTexture(GrTexture* tex, int w, int h, bool isOpaque); |
| 95 |
| 96 // Using the dreaded SkGrPixelRef ... |
| 97 void GrWrapTextureInBitmap(GrTexture* src, int w, int h, bool isOpaque, SkBitmap
* dst); |
| 98 |
| 93 //////////////////////////////////////////////////////////////////////////////// | 99 //////////////////////////////////////////////////////////////////////////////// |
| 94 // Classes | 100 // Classes |
| 95 | 101 |
| 96 class SkGlyphCache; | 102 class SkGlyphCache; |
| 97 | 103 |
| 98 //////////////////////////////////////////////////////////////////////////////// | 104 //////////////////////////////////////////////////////////////////////////////// |
| 99 | 105 |
| 100 #endif | 106 #endif |
| OLD | NEW |