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

Side by Side Diff: include/core/SkCanvas.h

Issue 1529283003: remove obsolete ondrawsprite base virtual (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years 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
« no previous file with comments | « no previous file | no next file » | 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 2006 The Android Open Source Project 2 * Copyright 2006 The Android Open Source Project
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 SkCanvas_DEFINED 8 #ifndef SkCanvas_DEFINED
9 #define SkCanvas_DEFINED 9 #define SkCanvas_DEFINED
10 10
(...skipping 1261 matching lines...) Expand 10 before | Expand all | Expand 10 after
1272 virtual void onDrawImageRect(const SkImage*, const SkRect*, const SkRect&, c onst SkPaint*, 1272 virtual void onDrawImageRect(const SkImage*, const SkRect*, const SkRect&, c onst SkPaint*,
1273 SrcRectConstraint); 1273 SrcRectConstraint);
1274 virtual void onDrawImageNine(const SkImage*, const SkIRect& center, const Sk Rect& dst, 1274 virtual void onDrawImageNine(const SkImage*, const SkIRect& center, const Sk Rect& dst,
1275 const SkPaint*); 1275 const SkPaint*);
1276 1276
1277 virtual void onDrawBitmap(const SkBitmap&, SkScalar dx, SkScalar dy, const S kPaint*); 1277 virtual void onDrawBitmap(const SkBitmap&, SkScalar dx, SkScalar dy, const S kPaint*);
1278 virtual void onDrawBitmapRect(const SkBitmap&, const SkRect*, const SkRect&, const SkPaint*, 1278 virtual void onDrawBitmapRect(const SkBitmap&, const SkRect*, const SkRect&, const SkPaint*,
1279 SrcRectConstraint); 1279 SrcRectConstraint);
1280 virtual void onDrawBitmapNine(const SkBitmap&, const SkIRect& center, const SkRect& dst, 1280 virtual void onDrawBitmapNine(const SkBitmap&, const SkIRect& center, const SkRect& dst,
1281 const SkPaint*); 1281 const SkPaint*);
1282 #ifdef SK_SUPPORT_LEGACY_ONDRAWSPRITE
1283 virtual void onDrawSprite(const SkBitmap&, int left, int top, const SkPaint* ) {}
1284 #endif
1285 1282
1286 enum ClipEdgeStyle { 1283 enum ClipEdgeStyle {
1287 kHard_ClipEdgeStyle, 1284 kHard_ClipEdgeStyle,
1288 kSoft_ClipEdgeStyle 1285 kSoft_ClipEdgeStyle
1289 }; 1286 };
1290 1287
1291 virtual void onClipRect(const SkRect& rect, SkRegion::Op op, ClipEdgeStyle e dgeStyle); 1288 virtual void onClipRect(const SkRect& rect, SkRegion::Op op, ClipEdgeStyle e dgeStyle);
1292 virtual void onClipRRect(const SkRRect& rrect, SkRegion::Op op, ClipEdgeStyl e edgeStyle); 1289 virtual void onClipRRect(const SkRRect& rrect, SkRegion::Op op, ClipEdgeStyl e edgeStyle);
1293 virtual void onClipPath(const SkPath& path, SkRegion::Op op, ClipEdgeStyle e dgeStyle); 1290 virtual void onClipPath(const SkPath& path, SkRegion::Op op, ClipEdgeStyle e dgeStyle);
1294 virtual void onClipRegion(const SkRegion& deviceRgn, SkRegion::Op op); 1291 virtual void onClipRegion(const SkRegion& deviceRgn, SkRegion::Op op);
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
1566 1563
1567 class SkCanvasClipVisitor { 1564 class SkCanvasClipVisitor {
1568 public: 1565 public:
1569 virtual ~SkCanvasClipVisitor(); 1566 virtual ~SkCanvasClipVisitor();
1570 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0; 1567 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0;
1571 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0; 1568 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0;
1572 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0; 1569 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0;
1573 }; 1570 };
1574 1571
1575 #endif 1572 #endif
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698