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

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

Issue 174593003: override new virtual onDrawDRRect in util canvas subclasses (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 10 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 | « 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 } 88 }
89 89
90 void SkProxyCanvas::drawRect(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::onDrawDRRect(const SkRRect& outer, const SkRRect& inner,
99 const SkPaint& paint) {
100 fProxy->drawDRRect(outer, inner, paint);
101 }
102
98 void SkProxyCanvas::drawPath(const SkPath& path, const SkPaint& paint) { 103 void SkProxyCanvas::drawPath(const SkPath& path, const SkPaint& paint) {
99 fProxy->drawPath(path, paint); 104 fProxy->drawPath(path, paint);
100 } 105 }
101 106
102 void SkProxyCanvas::drawBitmap(const SkBitmap& bitmap, SkScalar x, SkScalar y, 107 void SkProxyCanvas::drawBitmap(const SkBitmap& bitmap, SkScalar x, SkScalar y,
103 const SkPaint* paint) { 108 const SkPaint* paint) {
104 fProxy->drawBitmap(bitmap, x, y, paint); 109 fProxy->drawBitmap(bitmap, x, y, paint);
105 } 110 }
106 111
107 void SkProxyCanvas::drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* s rc, 112 void SkProxyCanvas::drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* s rc,
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 fProxy->endCommentGroup(); 176 fProxy->endCommentGroup();
172 } 177 }
173 178
174 SkBounder* SkProxyCanvas::setBounder(SkBounder* bounder) { 179 SkBounder* SkProxyCanvas::setBounder(SkBounder* bounder) {
175 return fProxy->setBounder(bounder); 180 return fProxy->setBounder(bounder);
176 } 181 }
177 182
178 SkDrawFilter* SkProxyCanvas::setDrawFilter(SkDrawFilter* filter) { 183 SkDrawFilter* SkProxyCanvas::setDrawFilter(SkDrawFilter* filter) {
179 return fProxy->setDrawFilter(filter); 184 return fProxy->setDrawFilter(filter);
180 } 185 }
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