| 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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 | 184 |
| 185 /** | 185 /** |
| 186 * Helper functions called by drawBitmapCommon. By the time these are called
the SkDraw's | 186 * Helper functions called by drawBitmapCommon. By the time these are called
the SkDraw's |
| 187 * matrix has already been set on GrContext | 187 * matrix has already been set on GrContext |
| 188 */ | 188 */ |
| 189 bool shouldTileBitmap(const SkBitmap& bitmap, | 189 bool shouldTileBitmap(const SkBitmap& bitmap, |
| 190 const GrTextureParams& sampler, | 190 const GrTextureParams& sampler, |
| 191 const SkRect* srcRectPtr) const; | 191 const SkRect* srcRectPtr) const; |
| 192 void internalDrawBitmap(const SkBitmap&, | 192 void internalDrawBitmap(const SkBitmap&, |
| 193 const SkRect&, | 193 const SkRect&, |
| 194 const SkMatrix&, | |
| 195 const GrTextureParams& params, | 194 const GrTextureParams& params, |
| 196 const SkPaint& paint, | 195 const SkPaint& paint, |
| 197 SkCanvas::DrawBitmapRectFlags flags); | 196 SkCanvas::DrawBitmapRectFlags flags); |
| 198 void drawTiledBitmap(const SkBitmap& bitmap, | 197 void drawTiledBitmap(const SkBitmap& bitmap, |
| 199 const SkRect& srcRect, | 198 const SkRect& srcRect, |
| 200 const SkMatrix& m, | |
| 201 const GrTextureParams& params, | 199 const GrTextureParams& params, |
| 202 const SkPaint& paint, | 200 const SkPaint& paint, |
| 203 SkCanvas::DrawBitmapRectFlags flags); | 201 SkCanvas::DrawBitmapRectFlags flags); |
| 204 | 202 |
| 205 /** | 203 /** |
| 206 * Returns non-initialized instance. | 204 * Returns non-initialized instance. |
| 207 */ | 205 */ |
| 208 GrTextContext* getTextContext(); | 206 GrTextContext* getTextContext(); |
| 209 | 207 |
| 210 typedef SkBitmapDevice INHERITED; | 208 typedef SkBitmapDevice INHERITED; |
| 211 }; | 209 }; |
| 212 | 210 |
| 213 #endif | 211 #endif |
| OLD | NEW |