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

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

Issue 2257023003: Plumb drawArc to SkDevice (Closed) Base URL: https://chromium.googlesource.com/skia.git@distance
Patch Set: working Created 4 years, 4 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
« no previous file with comments | « no previous file | include/core/SkDevice.h » ('j') | include/core/SkDrawFilter.h » ('J')
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 1407 matching lines...) Expand 10 before | Expand all | Expand 10 after
1418 const SkPaint& paint); 1418 const SkPaint& paint);
1419 1419
1420 virtual void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], 1420 virtual void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4],
1421 const SkPoint texCoords[4], SkXfermode* xmode, const SkPaint& paint); 1421 const SkPoint texCoords[4], SkXfermode* xmode, const SkPaint& paint);
1422 1422
1423 virtual void onDrawDrawable(SkDrawable*, const SkMatrix*); 1423 virtual void onDrawDrawable(SkDrawable*, const SkMatrix*);
1424 1424
1425 virtual void onDrawPaint(const SkPaint&); 1425 virtual void onDrawPaint(const SkPaint&);
1426 virtual void onDrawRect(const SkRect&, const SkPaint&); 1426 virtual void onDrawRect(const SkRect&, const SkPaint&);
1427 virtual void onDrawOval(const SkRect&, const SkPaint&); 1427 virtual void onDrawOval(const SkRect&, const SkPaint&);
1428 virtual void onDrawArc(const SkRect&, SkScalar startAngle, SkScalar sweepAng le, bool useCenter,
1429 const SkPaint&);
1428 virtual void onDrawRRect(const SkRRect&, const SkPaint&); 1430 virtual void onDrawRRect(const SkRRect&, const SkPaint&);
1429 virtual void onDrawPoints(PointMode, size_t count, const SkPoint pts[], cons t SkPaint&); 1431 virtual void onDrawPoints(PointMode, size_t count, const SkPoint pts[], cons t SkPaint&);
1430 virtual void onDrawVertices(VertexMode, int vertexCount, const SkPoint verti ces[], 1432 virtual void onDrawVertices(VertexMode, int vertexCount, const SkPoint verti ces[],
1431 const SkPoint texs[], const SkColor colors[], Sk Xfermode*, 1433 const SkPoint texs[], const SkColor colors[], Sk Xfermode*,
1432 const uint16_t indices[], int indexCount, const SkPaint&); 1434 const uint16_t indices[], int indexCount, const SkPaint&);
1433 1435
1434 virtual void onDrawAtlas(const SkImage*, const SkRSXform[], const SkRect[], const SkColor[], 1436 virtual void onDrawAtlas(const SkImage*, const SkRSXform[], const SkRect[], const SkColor[],
1435 int count, SkXfermode::Mode, const SkRect* cull, co nst SkPaint*); 1437 int count, SkXfermode::Mode, const SkRect* cull, co nst SkPaint*);
1436 virtual void onDrawPath(const SkPath&, const SkPaint&); 1438 virtual void onDrawPath(const SkPath&, const SkPaint&);
1437 virtual void onDrawImage(const SkImage*, SkScalar dx, SkScalar dy, const SkP aint*); 1439 virtual void onDrawImage(const SkImage*, SkScalar dx, SkScalar dy, const SkP aint*);
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
1682 1684
1683 class SkCanvasClipVisitor { 1685 class SkCanvasClipVisitor {
1684 public: 1686 public:
1685 virtual ~SkCanvasClipVisitor(); 1687 virtual ~SkCanvasClipVisitor();
1686 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0; 1688 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0;
1687 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0; 1689 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0;
1688 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0; 1690 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0;
1689 }; 1691 };
1690 1692
1691 #endif 1693 #endif
OLDNEW
« no previous file with comments | « no previous file | include/core/SkDevice.h » ('j') | include/core/SkDrawFilter.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698