| 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 // This function is similar to skPaint2GrPaintNoShader but also converts | 105 // This function is similar to skPaint2GrPaintNoShader but also converts |
| 106 // skPaint's shader to a GrFragmentProcessor if possible. | 106 // skPaint's shader to a GrFragmentProcessor if possible. |
| 107 // constantColor has the same meaning as in skPaint2GrPaintNoShader. | 107 // constantColor has the same meaning as in skPaint2GrPaintNoShader. |
| 108 bool SkPaint2GrPaint(GrContext* context, GrRenderTarget*, const SkPaint& skPaint
, | 108 bool SkPaint2GrPaint(GrContext* context, GrRenderTarget*, const SkPaint& skPaint
, |
| 109 const SkMatrix& viewM, bool constantColor, GrPaint* grPaint
); | 109 const SkMatrix& viewM, bool constantColor, GrPaint* grPaint
); |
| 110 | 110 |
| 111 | 111 |
| 112 SkImageInfo GrMakeInfoFromTexture(GrTexture* tex, int w, int h, bool isOpaque); | 112 SkImageInfo GrMakeInfoFromTexture(GrTexture* tex, int w, int h, bool isOpaque); |
| 113 | 113 |
| 114 // Using the dreaded SkGrPixelRef ... | 114 // Using the dreaded SkGrPixelRef ... |
| 115 void GrWrapTextureInBitmap(GrTexture* src, int w, int h, bool isOpaque, SkBitmap
* dst); | 115 SK_API void GrWrapTextureInBitmap(GrTexture* src, int w, int h, bool isOpaque, |
| 116 SkBitmap* dst); |
| 116 | 117 |
| 117 GrTextureParams::FilterMode GrSkFilterQualityToGrFilterMode(SkFilterQuality pain
tFilterQuality, | 118 GrTextureParams::FilterMode GrSkFilterQualityToGrFilterMode(SkFilterQuality pain
tFilterQuality, |
| 118 const SkMatrix& view
M, | 119 const SkMatrix& view
M, |
| 119 const SkMatrix& loca
lM, | 120 const SkMatrix& loca
lM, |
| 120 bool* doBicubic); | 121 bool* doBicubic); |
| 121 | 122 |
| 122 //////////////////////////////////////////////////////////////////////////////// | 123 //////////////////////////////////////////////////////////////////////////////// |
| 123 // Classes | 124 // Classes |
| 124 | 125 |
| 125 class SkGlyphCache; | 126 class SkGlyphCache; |
| 126 | 127 |
| 127 //////////////////////////////////////////////////////////////////////////////// | 128 //////////////////////////////////////////////////////////////////////////////// |
| 128 | 129 |
| 129 #endif | 130 #endif |
| OLD | NEW |