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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 virtual void drawBitmapNine(const SkBitmap& bitmap, const SkIRect& center, | 161 virtual void drawBitmapNine(const SkBitmap& bitmap, const SkIRect& center, |
162 const SkRect& dst, const SkPaint* paint) | 162 const SkRect& dst, const SkPaint* paint) |
163 SK_OVERRIDE; | 163 SK_OVERRIDE; |
164 virtual void drawSprite(const SkBitmap& bitmap, int left, int top, | 164 virtual void drawSprite(const SkBitmap& bitmap, int left, int top, |
165 const SkPaint* paint) SK_OVERRIDE; | 165 const SkPaint* paint) SK_OVERRIDE; |
166 virtual void drawVertices(VertexMode vmode, int vertexCount, | 166 virtual void drawVertices(VertexMode vmode, int vertexCount, |
167 const SkPoint vertices[], const SkPoint texs[], | 167 const SkPoint vertices[], const SkPoint texs[], |
168 const SkColor colors[], SkXfermode* xmode, | 168 const SkColor colors[], SkXfermode* xmode, |
169 const uint16_t indices[], int indexCount, | 169 const uint16_t indices[], int indexCount, |
170 const SkPaint& paint) SK_OVERRIDE; | 170 const SkPaint& paint) SK_OVERRIDE; |
171 virtual void drawPatch(const SkPatch& patch, const SkPaint& paint) SK_OVERRI
DE; | |
172 virtual SkDrawFilter* setDrawFilter(SkDrawFilter* filter) SK_OVERRIDE; | 171 virtual SkDrawFilter* setDrawFilter(SkDrawFilter* filter) SK_OVERRIDE; |
173 | 172 |
174 protected: | 173 protected: |
175 virtual void willSave() SK_OVERRIDE; | 174 virtual void willSave() SK_OVERRIDE; |
176 virtual SaveLayerStrategy willSaveLayer(const SkRect*, const SkPaint*, SaveF
lags) SK_OVERRIDE; | 175 virtual SaveLayerStrategy willSaveLayer(const SkRect*, const SkPaint*, SaveF
lags) SK_OVERRIDE; |
177 virtual void willRestore() SK_OVERRIDE; | 176 virtual void willRestore() SK_OVERRIDE; |
178 | 177 |
179 virtual void didConcat(const SkMatrix&) SK_OVERRIDE; | 178 virtual void didConcat(const SkMatrix&) SK_OVERRIDE; |
180 virtual void didSetMatrix(const SkMatrix&) SK_OVERRIDE; | 179 virtual void didSetMatrix(const SkMatrix&) SK_OVERRIDE; |
181 | 180 |
182 virtual void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) SK
_OVERRIDE; | 181 virtual void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) SK
_OVERRIDE; |
183 virtual void onDrawText(const void* text, size_t byteLength, SkScalar x, SkS
calar y, | 182 virtual void onDrawText(const void* text, size_t byteLength, SkScalar x, SkS
calar y, |
184 const SkPaint&) SK_OVERRIDE; | 183 const SkPaint&) SK_OVERRIDE; |
185 virtual void onDrawPosText(const void* text, size_t byteLength, const SkPoin
t pos[], | 184 virtual void onDrawPosText(const void* text, size_t byteLength, const SkPoin
t pos[], |
186 const SkPaint&) SK_OVERRIDE; | 185 const SkPaint&) SK_OVERRIDE; |
187 virtual void onDrawPosTextH(const void* text, size_t byteLength, const SkSca
lar xpos[], | 186 virtual void onDrawPosTextH(const void* text, size_t byteLength, const SkSca
lar xpos[], |
188 SkScalar constY, const SkPaint&) SK_OVERRIDE; | 187 SkScalar constY, const SkPaint&) SK_OVERRIDE; |
189 virtual void onDrawTextOnPath(const void* text, size_t byteLength, const SkP
ath& path, | 188 virtual void onDrawTextOnPath(const void* text, size_t byteLength, const SkP
ath& path, |
190 const SkMatrix* matrix, const SkPaint&) SK_OVE
RRIDE; | 189 const SkMatrix* matrix, const SkPaint&) SK_OVE
RRIDE; |
191 | 190 virtual void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], |
| 191 const SkPoint texCoords[4], SkXfermode* xmode, |
| 192 const SkPaint& paint) SK_OVERRIDE; |
| 193 |
192 virtual void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE; | 194 virtual void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE; |
193 virtual void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) SK_OVE
RRIDE; | 195 virtual void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) SK_OVE
RRIDE; |
194 virtual void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE; | 196 virtual void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE; |
195 virtual void onClipRegion(const SkRegion&, SkRegion::Op) SK_OVERRIDE; | 197 virtual void onClipRegion(const SkRegion&, SkRegion::Op) SK_OVERRIDE; |
196 | 198 |
197 virtual void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*
) SK_OVERRIDE; | 199 virtual void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*
) SK_OVERRIDE; |
198 | 200 |
199 public: | 201 public: |
200 class NotificationClient { | 202 class NotificationClient { |
201 public: | 203 public: |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
245 | 247 |
246 size_t fBitmapSizeThreshold; | 248 size_t fBitmapSizeThreshold; |
247 bool fDeferredDrawing; | 249 bool fDeferredDrawing; |
248 | 250 |
249 friend class SkDeferredCanvasTester; // for unit testing | 251 friend class SkDeferredCanvasTester; // for unit testing |
250 typedef SkCanvas INHERITED; | 252 typedef SkCanvas INHERITED; |
251 }; | 253 }; |
252 | 254 |
253 | 255 |
254 #endif | 256 #endif |
OLD | NEW |