Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(67)

Side by Side Diff: include/utils/SkDeferredCanvas.h

Issue 203203004: Consolidate SkCanvas matrix virtuals. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Updated per review. Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « include/core/SkCanvas.h ('k') | include/utils/SkDumpCanvas.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 const uint16_t indices[], int indexCount, 180 const uint16_t indices[], int indexCount,
181 const SkPaint& paint) SK_OVERRIDE; 181 const SkPaint& paint) SK_OVERRIDE;
182 virtual SkBounder* setBounder(SkBounder* bounder) SK_OVERRIDE; 182 virtual SkBounder* setBounder(SkBounder* bounder) SK_OVERRIDE;
183 virtual SkDrawFilter* setDrawFilter(SkDrawFilter* filter) SK_OVERRIDE; 183 virtual SkDrawFilter* setDrawFilter(SkDrawFilter* filter) SK_OVERRIDE;
184 184
185 protected: 185 protected:
186 virtual void willSave(SaveFlags) SK_OVERRIDE; 186 virtual void willSave(SaveFlags) SK_OVERRIDE;
187 virtual SaveLayerStrategy willSaveLayer(const SkRect*, const SkPaint*, SaveF lags) SK_OVERRIDE; 187 virtual SaveLayerStrategy willSaveLayer(const SkRect*, const SkPaint*, SaveF lags) SK_OVERRIDE;
188 virtual void willRestore() SK_OVERRIDE; 188 virtual void willRestore() SK_OVERRIDE;
189 189
190 virtual void didTranslate(SkScalar, SkScalar) SK_OVERRIDE;
191 virtual void didScale(SkScalar, SkScalar) SK_OVERRIDE;
192 virtual void didRotate(SkScalar) SK_OVERRIDE;
193 virtual void didSkew(SkScalar, SkScalar) SK_OVERRIDE;
194 virtual void didConcat(const SkMatrix&) SK_OVERRIDE; 190 virtual void didConcat(const SkMatrix&) SK_OVERRIDE;
195 virtual void didSetMatrix(const SkMatrix&) SK_OVERRIDE; 191 virtual void didSetMatrix(const SkMatrix&) SK_OVERRIDE;
196 192
197 virtual void onDrawDRRect(const SkRRect&, const SkRRect&, 193 virtual void onDrawDRRect(const SkRRect&, const SkRRect&,
198 const SkPaint&) SK_OVERRIDE; 194 const SkPaint&) SK_OVERRIDE;
199 195
200 virtual void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) SK_OVERR IDE; 196 virtual void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) SK_OVERR IDE;
201 virtual void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) SK_OVE RRIDE; 197 virtual void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) SK_OVE RRIDE;
202 virtual void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) SK_OVERR IDE; 198 virtual void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) SK_OVERR IDE;
203 virtual void onClipRegion(const SkRegion&, SkRegion::Op) SK_OVERRIDE; 199 virtual void onClipRegion(const SkRegion&, SkRegion::Op) SK_OVERRIDE;
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 void validate() const; 245 void validate() const;
250 void init(); 246 void init();
251 bool fDeferredDrawing; 247 bool fDeferredDrawing;
252 248
253 friend class SkDeferredCanvasTester; // for unit testing 249 friend class SkDeferredCanvasTester; // for unit testing
254 typedef SkCanvas INHERITED; 250 typedef SkCanvas INHERITED;
255 }; 251 };
256 252
257 253
258 #endif 254 #endif
OLDNEW
« no previous file with comments | « include/core/SkCanvas.h ('k') | include/utils/SkDumpCanvas.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698