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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 // sets the render target, clip, and matrix on GrContext. Use forceIdenity t
o override | 170 // sets the render target, clip, and matrix on GrContext. Use forceIdenity t
o override |
171 // SkDraw's matrix and draw in device coords. | 171 // SkDraw's matrix and draw in device coords. |
172 void prepareDraw(const SkDraw&, bool forceIdentity); | 172 void prepareDraw(const SkDraw&, bool forceIdentity); |
173 | 173 |
174 /** | 174 /** |
175 * Implementation for both drawBitmap and drawBitmapRect. | 175 * Implementation for both drawBitmap and drawBitmapRect. |
176 */ | 176 */ |
177 void drawBitmapCommon(const SkDraw&, | 177 void drawBitmapCommon(const SkDraw&, |
178 const SkBitmap& bitmap, | 178 const SkBitmap& bitmap, |
179 const SkRect* srcRectPtr, | 179 const SkRect* srcRectPtr, |
180 const SkMatrix&, | 180 const SkSize* dstSizePtr, // ignored iff srcRectP
tr == NULL |
181 const SkPaint&, | 181 const SkPaint&, |
182 SkCanvas::DrawBitmapRectFlags flags); | 182 SkCanvas::DrawBitmapRectFlags flags); |
183 | 183 |
184 /** | 184 /** |
185 * Helper functions called by drawBitmapCommon. By the time these are called
the SkDraw's | 185 * Helper functions called by drawBitmapCommon. By the time these are called
the SkDraw's |
186 * matrix, clip, and the device's render target has already been set on GrCo
ntext. | 186 * matrix, clip, and the device's render target has already been set on GrCo
ntext. |
187 */ | 187 */ |
188 | 188 |
189 // The tileSize and clippedSrcRect will be valid only if true is returned. | 189 // The tileSize and clippedSrcRect will be valid only if true is returned. |
190 bool shouldTileBitmap(const SkBitmap& bitmap, | 190 bool shouldTileBitmap(const SkBitmap& bitmap, |
(...skipping 19 matching lines...) Expand all Loading... |
210 | 210 |
211 /** | 211 /** |
212 * Returns non-initialized instance. | 212 * Returns non-initialized instance. |
213 */ | 213 */ |
214 GrTextContext* getTextContext(); | 214 GrTextContext* getTextContext(); |
215 | 215 |
216 typedef SkBitmapDevice INHERITED; | 216 typedef SkBitmapDevice INHERITED; |
217 }; | 217 }; |
218 | 218 |
219 #endif | 219 #endif |
OLD | NEW |