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 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 virtual void onDrawPosTextH(const void* text, size_t byteLength, const SkSca
lar xpos[], | 187 virtual void onDrawPosTextH(const void* text, size_t byteLength, const SkSca
lar xpos[], |
188 SkScalar constY, const SkPaint&) SK_OVERRIDE; | 188 SkScalar constY, const SkPaint&) SK_OVERRIDE; |
189 virtual void onDrawTextOnPath(const void* text, size_t byteLength, const SkP
ath& path, | 189 virtual void onDrawTextOnPath(const void* text, size_t byteLength, const SkP
ath& path, |
190 const SkMatrix* matrix, const SkPaint&) SK_OVE
RRIDE; | 190 const SkMatrix* matrix, const SkPaint&) SK_OVE
RRIDE; |
191 | 191 |
192 virtual void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE; | 192 virtual void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE; |
193 virtual void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) SK_OVE
RRIDE; | 193 virtual void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) SK_OVE
RRIDE; |
194 virtual void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE; | 194 virtual void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) SK_OVERR
IDE; |
195 virtual void onClipRegion(const SkRegion&, SkRegion::Op) SK_OVERRIDE; | 195 virtual void onClipRegion(const SkRegion&, SkRegion::Op) SK_OVERRIDE; |
196 | 196 |
197 virtual void onDrawPicture(const SkPicture* picture) SK_OVERRIDE; | 197 virtual void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*
) SK_OVERRIDE; |
198 | 198 |
199 public: | 199 public: |
200 class NotificationClient { | 200 class NotificationClient { |
201 public: | 201 public: |
202 virtual ~NotificationClient() {} | 202 virtual ~NotificationClient() {} |
203 | 203 |
204 /** | 204 /** |
205 * Called before executing one or several draw commands, which means | 205 * Called before executing one or several draw commands, which means |
206 * once per flush when deferred rendering is enabled. | 206 * once per flush when deferred rendering is enabled. |
207 */ | 207 */ |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
245 | 245 |
246 size_t fBitmapSizeThreshold; | 246 size_t fBitmapSizeThreshold; |
247 bool fDeferredDrawing; | 247 bool fDeferredDrawing; |
248 | 248 |
249 friend class SkDeferredCanvasTester; // for unit testing | 249 friend class SkDeferredCanvasTester; // for unit testing |
250 typedef SkCanvas INHERITED; | 250 typedef SkCanvas INHERITED; |
251 }; | 251 }; |
252 | 252 |
253 | 253 |
254 #endif | 254 #endif |
OLD | NEW |