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

Side by Side Diff: src/utils/SkProxyCanvas.cpp

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, 2 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 | « src/utils/SkNWayCanvas.cpp ('k') | src/utils/debugger/SkDebugCanvas.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 #include "SkProxyCanvas.h" 8 #include "SkProxyCanvas.h"
9 9
10 SkProxyCanvas::SkProxyCanvas(SkCanvas* proxy) : fProxy(proxy) { 10 SkProxyCanvas::SkProxyCanvas(SkCanvas* proxy) : fProxy(proxy) {
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 80
81 void SkProxyCanvas::drawPoints(PointMode mode, size_t count, 81 void SkProxyCanvas::drawPoints(PointMode mode, size_t count,
82 const SkPoint pts[], const SkPaint& paint) { 82 const SkPoint pts[], const SkPaint& paint) {
83 fProxy->drawPoints(mode, count, pts, paint); 83 fProxy->drawPoints(mode, count, pts, paint);
84 } 84 }
85 85
86 void SkProxyCanvas::drawOval(const SkRect& rect, const SkPaint& paint) { 86 void SkProxyCanvas::drawOval(const SkRect& rect, const SkPaint& paint) {
87 fProxy->drawOval(rect, paint); 87 fProxy->drawOval(rect, paint);
88 } 88 }
89 89
90 void SkProxyCanvas::onDrawRect(const SkRect& rect, const SkPaint& paint) { 90 void SkProxyCanvas::drawRect(const SkRect& rect, const SkPaint& paint) {
91 fProxy->drawRect(rect, paint); 91 fProxy->drawRect(rect, paint);
92 } 92 }
93 93
94 void SkProxyCanvas::drawRRect(const SkRRect& rrect, const SkPaint& paint) { 94 void SkProxyCanvas::drawRRect(const SkRRect& rrect, const SkPaint& paint) {
95 fProxy->drawRRect(rrect, paint); 95 fProxy->drawRRect(rrect, paint);
96 } 96 }
97 97
98 void SkProxyCanvas::onDrawPath(const SkPath& path, const SkPaint& paint) { 98 void SkProxyCanvas::drawPath(const SkPath& path, const SkPaint& paint) {
99 fProxy->drawPath(path, paint); 99 fProxy->drawPath(path, paint);
100 } 100 }
101 101
102 void SkProxyCanvas::drawBitmap(const SkBitmap& bitmap, SkScalar x, SkScalar y, 102 void SkProxyCanvas::drawBitmap(const SkBitmap& bitmap, SkScalar x, SkScalar y,
103 const SkPaint* paint) { 103 const SkPaint* paint) {
104 fProxy->drawBitmap(bitmap, x, y, paint); 104 fProxy->drawBitmap(bitmap, x, y, paint);
105 } 105 }
106 106
107 void SkProxyCanvas::drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* s rc, 107 void SkProxyCanvas::drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* s rc,
108 const SkRect& dst, const SkPaint* paint, 108 const SkRect& dst, const SkPaint* paint,
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 fProxy->endCommentGroup(); 171 fProxy->endCommentGroup();
172 } 172 }
173 173
174 SkBounder* SkProxyCanvas::setBounder(SkBounder* bounder) { 174 SkBounder* SkProxyCanvas::setBounder(SkBounder* bounder) {
175 return fProxy->setBounder(bounder); 175 return fProxy->setBounder(bounder);
176 } 176 }
177 177
178 SkDrawFilter* SkProxyCanvas::setDrawFilter(SkDrawFilter* filter) { 178 SkDrawFilter* SkProxyCanvas::setDrawFilter(SkDrawFilter* filter) {
179 return fProxy->setDrawFilter(filter); 179 return fProxy->setDrawFilter(filter);
180 } 180 }
OLDNEW
« no previous file with comments | « src/utils/SkNWayCanvas.cpp ('k') | src/utils/debugger/SkDebugCanvas.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698