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

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

Issue 789033002: Remove SkCanvas::drawBitmapMatrix() (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: non-const canvas ptr Created 6 years 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 const SkPaint* paint) { 110 const SkPaint* paint) {
111 fProxy->drawBitmap(bitmap, x, y, paint); 111 fProxy->drawBitmap(bitmap, x, y, paint);
112 } 112 }
113 113
114 void SkProxyCanvas::drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* s rc, 114 void SkProxyCanvas::drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* s rc,
115 const SkRect& dst, const SkPaint* paint, 115 const SkRect& dst, const SkPaint* paint,
116 DrawBitmapRectFlags flags) { 116 DrawBitmapRectFlags flags) {
117 fProxy->drawBitmapRectToRect(bitmap, src, dst, paint, flags); 117 fProxy->drawBitmapRectToRect(bitmap, src, dst, paint, flags);
118 } 118 }
119 119
120 void SkProxyCanvas::drawBitmapMatrix(const SkBitmap& bitmap, const SkMatrix& m,
121 const SkPaint* paint) {
122 fProxy->drawBitmapMatrix(bitmap, m, paint);
123 }
124
125 void SkProxyCanvas::drawSprite(const SkBitmap& bitmap, int x, int y, 120 void SkProxyCanvas::drawSprite(const SkBitmap& bitmap, int x, int y,
126 const SkPaint* paint) { 121 const SkPaint* paint) {
127 fProxy->drawSprite(bitmap, x, y, paint); 122 fProxy->drawSprite(bitmap, x, y, paint);
128 } 123 }
129 124
130 void SkProxyCanvas::onDrawText(const void* text, size_t byteLength, SkScalar x, SkScalar y, 125 void SkProxyCanvas::onDrawText(const void* text, size_t byteLength, SkScalar x, SkScalar y,
131 const SkPaint& paint) { 126 const SkPaint& paint) {
132 fProxy->drawText(text, byteLength, x, y, paint); 127 fProxy->drawText(text, byteLength, x, y, paint);
133 } 128 }
134 129
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 fProxy->addComment(kywd, value); 179 fProxy->addComment(kywd, value);
185 } 180 }
186 181
187 void SkProxyCanvas::endCommentGroup() { 182 void SkProxyCanvas::endCommentGroup() {
188 fProxy->endCommentGroup(); 183 fProxy->endCommentGroup();
189 } 184 }
190 185
191 SkDrawFilter* SkProxyCanvas::setDrawFilter(SkDrawFilter* filter) { 186 SkDrawFilter* SkProxyCanvas::setDrawFilter(SkDrawFilter* filter) {
192 return fProxy->setDrawFilter(filter); 187 return fProxy->setDrawFilter(filter);
193 } 188 }
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