OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #ifndef SkDeferredCanvas_DEFINED | 8 #ifndef SkDeferredCanvas_DEFINED |
9 #define SkDeferredCanvas_DEFINED | 9 #define SkDeferredCanvas_DEFINED |
10 | 10 |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 virtual void drawRRect(const SkRRect&, const SkPaint& paint) SK_OVERRIDE; | 153 virtual void drawRRect(const SkRRect&, const SkPaint& paint) SK_OVERRIDE; |
154 virtual void drawPath(const SkPath& path, const SkPaint& paint) | 154 virtual void drawPath(const SkPath& path, const SkPaint& paint) |
155 SK_OVERRIDE; | 155 SK_OVERRIDE; |
156 virtual void drawBitmap(const SkBitmap& bitmap, SkScalar left, | 156 virtual void drawBitmap(const SkBitmap& bitmap, SkScalar left, |
157 SkScalar top, const SkPaint* paint) | 157 SkScalar top, const SkPaint* paint) |
158 SK_OVERRIDE; | 158 SK_OVERRIDE; |
159 virtual void drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* src, | 159 virtual void drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* src, |
160 const SkRect& dst, const SkPaint* paint, | 160 const SkRect& dst, const SkPaint* paint, |
161 DrawBitmapRectFlags flags) SK_OVERRIDE; | 161 DrawBitmapRectFlags flags) SK_OVERRIDE; |
162 | 162 |
163 virtual void drawBitmapMatrix(const SkBitmap& bitmap, const SkMatrix& m, | |
164 const SkPaint* paint) SK_OVERRIDE; | |
165 virtual void drawBitmapNine(const SkBitmap& bitmap, const SkIRect& center, | 163 virtual void drawBitmapNine(const SkBitmap& bitmap, const SkIRect& center, |
166 const SkRect& dst, const SkPaint* paint) | 164 const SkRect& dst, const SkPaint* paint) |
167 SK_OVERRIDE; | 165 SK_OVERRIDE; |
168 virtual void drawSprite(const SkBitmap& bitmap, int left, int top, | 166 virtual void drawSprite(const SkBitmap& bitmap, int left, int top, |
169 const SkPaint* paint) SK_OVERRIDE; | 167 const SkPaint* paint) SK_OVERRIDE; |
170 virtual void drawVertices(VertexMode vmode, int vertexCount, | 168 virtual void drawVertices(VertexMode vmode, int vertexCount, |
171 const SkPoint vertices[], const SkPoint texs[], | 169 const SkPoint vertices[], const SkPoint texs[], |
172 const SkColor colors[], SkXfermode* xmode, | 170 const SkColor colors[], SkXfermode* xmode, |
173 const uint16_t indices[], int indexCount, | 171 const uint16_t indices[], int indexCount, |
174 const SkPaint& paint) SK_OVERRIDE; | 172 const SkPaint& paint) SK_OVERRIDE; |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
255 | 253 |
256 mutable SkISize fCachedCanvasSize; | 254 mutable SkISize fCachedCanvasSize; |
257 mutable bool fCachedCanvasSizeDirty; | 255 mutable bool fCachedCanvasSizeDirty; |
258 | 256 |
259 friend class SkDeferredCanvasTester; // for unit testing | 257 friend class SkDeferredCanvasTester; // for unit testing |
260 typedef SkCanvas INHERITED; | 258 typedef SkCanvas INHERITED; |
261 }; | 259 }; |
262 | 260 |
263 | 261 |
264 #endif | 262 #endif |
OLD | NEW |