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

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

Issue 35543002: Revert "If the path is a rect, call drawRect to raster the geometry in SkCanvas::drawPath to get be… (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 1 month 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/utils/SkNWayCanvas.h ('k') | src/core/SkBBoxRecord.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 /* 2 /*
3 * Copyright 2011 Google Inc. 3 * Copyright 2011 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 #ifndef SkProxyCanvas_DEFINED 8 #ifndef SkProxyCanvas_DEFINED
9 #define SkProxyCanvas_DEFINED 9 #define SkProxyCanvas_DEFINED
10 10
(...skipping 30 matching lines...) Expand all
41 virtual bool clipRect(const SkRect&, SkRegion::Op, bool) SK_OVERRIDE; 41 virtual bool clipRect(const SkRect&, SkRegion::Op, bool) SK_OVERRIDE;
42 virtual bool clipRRect(const SkRRect&, SkRegion::Op, bool) SK_OVERRIDE; 42 virtual bool clipRRect(const SkRRect&, SkRegion::Op, bool) SK_OVERRIDE;
43 virtual bool clipPath(const SkPath&, SkRegion::Op, bool) SK_OVERRIDE; 43 virtual bool clipPath(const SkPath&, SkRegion::Op, bool) SK_OVERRIDE;
44 virtual bool clipRegion(const SkRegion& deviceRgn, 44 virtual bool clipRegion(const SkRegion& deviceRgn,
45 SkRegion::Op op = SkRegion::kIntersect_Op) SK_OVERRI DE; 45 SkRegion::Op op = SkRegion::kIntersect_Op) SK_OVERRI DE;
46 46
47 virtual void drawPaint(const SkPaint& paint) SK_OVERRIDE; 47 virtual void drawPaint(const SkPaint& paint) SK_OVERRIDE;
48 virtual void drawPoints(PointMode mode, size_t count, const SkPoint pts[], 48 virtual void drawPoints(PointMode mode, size_t count, const SkPoint pts[],
49 const SkPaint& paint) SK_OVERRIDE; 49 const SkPaint& paint) SK_OVERRIDE;
50 virtual void drawOval(const SkRect&, const SkPaint& paint) SK_OVERRIDE; 50 virtual void drawOval(const SkRect&, const SkPaint& paint) SK_OVERRIDE;
51 virtual void drawRect(const SkRect&, const SkPaint& paint) SK_OVERRIDE;
51 virtual void drawRRect(const SkRRect&, const SkPaint& paint) SK_OVERRIDE; 52 virtual void drawRRect(const SkRRect&, const SkPaint& paint) SK_OVERRIDE;
53 virtual void drawPath(const SkPath& path, const SkPaint& paint) SK_OVERRIDE;
52 virtual void drawBitmap(const SkBitmap& bitmap, SkScalar left, SkScalar top, 54 virtual void drawBitmap(const SkBitmap& bitmap, SkScalar left, SkScalar top,
53 const SkPaint* paint = NULL) SK_OVERRIDE; 55 const SkPaint* paint = NULL) SK_OVERRIDE;
54 virtual void drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* src, 56 virtual void drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* src,
55 const SkRect& dst, const SkPaint* paint, 57 const SkRect& dst, const SkPaint* paint,
56 DrawBitmapRectFlags flags) SK_OVERRIDE; 58 DrawBitmapRectFlags flags) SK_OVERRIDE;
57 virtual void drawBitmapMatrix(const SkBitmap& bitmap, const SkMatrix& m, 59 virtual void drawBitmapMatrix(const SkBitmap& bitmap, const SkMatrix& m,
58 const SkPaint* paint = NULL) SK_OVERRIDE; 60 const SkPaint* paint = NULL) SK_OVERRIDE;
59 virtual void drawSprite(const SkBitmap& bitmap, int left, int top, 61 virtual void drawSprite(const SkBitmap& bitmap, int left, int top,
60 const SkPaint* paint = NULL) SK_OVERRIDE; 62 const SkPaint* paint = NULL) SK_OVERRIDE;
61 virtual void drawText(const void* text, size_t byteLength, SkScalar x, 63 virtual void drawText(const void* text, size_t byteLength, SkScalar x,
(...skipping 14 matching lines...) Expand all
76 const SkPaint& paint) SK_OVERRIDE; 78 const SkPaint& paint) SK_OVERRIDE;
77 virtual void drawData(const void* data, size_t length) SK_OVERRIDE; 79 virtual void drawData(const void* data, size_t length) SK_OVERRIDE;
78 80
79 virtual void beginCommentGroup(const char* description) SK_OVERRIDE; 81 virtual void beginCommentGroup(const char* description) SK_OVERRIDE;
80 virtual void addComment(const char* kywd, const char* value) SK_OVERRIDE; 82 virtual void addComment(const char* kywd, const char* value) SK_OVERRIDE;
81 virtual void endCommentGroup() SK_OVERRIDE; 83 virtual void endCommentGroup() SK_OVERRIDE;
82 84
83 virtual SkBounder* setBounder(SkBounder* bounder) SK_OVERRIDE; 85 virtual SkBounder* setBounder(SkBounder* bounder) SK_OVERRIDE;
84 virtual SkDrawFilter* setDrawFilter(SkDrawFilter* filter) SK_OVERRIDE; 86 virtual SkDrawFilter* setDrawFilter(SkDrawFilter* filter) SK_OVERRIDE;
85 87
86 protected:
87 virtual void onDrawRect(const SkRect&, const SkPaint& paint) SK_OVERRIDE;
88 virtual void onDrawPath(const SkPath& path, const SkPaint& paint) SK_OVERRID E;
89
90 private: 88 private:
91 SkCanvas* fProxy; 89 SkCanvas* fProxy;
92 90
93 typedef SkCanvas INHERITED; 91 typedef SkCanvas INHERITED;
94 }; 92 };
95 93
96 #endif 94 #endif
OLDNEW
« no previous file with comments | « include/utils/SkNWayCanvas.h ('k') | src/core/SkBBoxRecord.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698