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

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

Issue 679293002: Override SkCanvas::drawImage[Rect]() in SkProxyCanvas (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 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
« no previous file with comments | « include/utils/SkProxyCanvas.h ('k') | 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 /* 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 void SkProxyCanvas::onDrawDRRect(const SkRRect& outer, const SkRRect& inner, 89 void SkProxyCanvas::onDrawDRRect(const SkRRect& outer, const SkRRect& inner,
90 const SkPaint& paint) { 90 const SkPaint& paint) {
91 fProxy->drawDRRect(outer, inner, paint); 91 fProxy->drawDRRect(outer, inner, paint);
92 } 92 }
93 93
94 void SkProxyCanvas::drawPath(const SkPath& path, const SkPaint& paint) { 94 void SkProxyCanvas::drawPath(const SkPath& path, const SkPaint& paint) {
95 fProxy->drawPath(path, paint); 95 fProxy->drawPath(path, paint);
96 } 96 }
97 97
98 void SkProxyCanvas::drawImage(const SkImage* image, SkScalar left, SkScalar top,
99 const SkPaint* paint) {
100 fProxy->drawImage(image, left, top, paint);
101 }
102
103 void SkProxyCanvas::drawImageRect(const SkImage* image, const SkRect* src,
104 const SkRect& dst,
105 const SkPaint* paint) {
106 fProxy->drawImageRect(image, src, dst, paint);
107 }
108
98 void SkProxyCanvas::drawBitmap(const SkBitmap& bitmap, SkScalar x, SkScalar y, 109 void SkProxyCanvas::drawBitmap(const SkBitmap& bitmap, SkScalar x, SkScalar y,
99 const SkPaint* paint) { 110 const SkPaint* paint) {
100 fProxy->drawBitmap(bitmap, x, y, paint); 111 fProxy->drawBitmap(bitmap, x, y, paint);
101 } 112 }
102 113
103 void SkProxyCanvas::drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* s rc, 114 void SkProxyCanvas::drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* s rc,
104 const SkRect& dst, const SkPaint* paint, 115 const SkRect& dst, const SkPaint* paint,
105 DrawBitmapRectFlags flags) { 116 DrawBitmapRectFlags flags) {
106 fProxy->drawBitmapRectToRect(bitmap, src, dst, paint, flags); 117 fProxy->drawBitmapRectToRect(bitmap, src, dst, paint, flags);
107 } 118 }
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 fProxy->addComment(kywd, value); 184 fProxy->addComment(kywd, value);
174 } 185 }
175 186
176 void SkProxyCanvas::endCommentGroup() { 187 void SkProxyCanvas::endCommentGroup() {
177 fProxy->endCommentGroup(); 188 fProxy->endCommentGroup();
178 } 189 }
179 190
180 SkDrawFilter* SkProxyCanvas::setDrawFilter(SkDrawFilter* filter) { 191 SkDrawFilter* SkProxyCanvas::setDrawFilter(SkDrawFilter* filter) {
181 return fProxy->setDrawFilter(filter); 192 return fProxy->setDrawFilter(filter);
182 } 193 }
OLDNEW
« no previous file with comments | « include/utils/SkProxyCanvas.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698