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

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

Issue 20806003: Plumb in "bleed" flag (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Addressed pipe-specific issues and updated to ToT Created 7 years, 4 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
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 "SkNWayCanvas.h" 8 #include "SkNWayCanvas.h"
9 9
10 static SkBitmap make_noconfig_bm(int width, int height) { 10 static SkBitmap make_noconfig_bm(int width, int height) {
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 213
214 void SkNWayCanvas::drawBitmap(const SkBitmap& bitmap, SkScalar x, SkScalar y, 214 void SkNWayCanvas::drawBitmap(const SkBitmap& bitmap, SkScalar x, SkScalar y,
215 const SkPaint* paint) { 215 const SkPaint* paint) {
216 Iter iter(fList); 216 Iter iter(fList);
217 while (iter.next()) { 217 while (iter.next()) {
218 iter->drawBitmap(bitmap, x, y, paint); 218 iter->drawBitmap(bitmap, x, y, paint);
219 } 219 }
220 } 220 }
221 221
222 void SkNWayCanvas::drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* sr c, 222 void SkNWayCanvas::drawBitmapRectToRect(const SkBitmap& bitmap, const SkRect* sr c,
223 const SkRect& dst, const SkPaint* paint) { 223 const SkRect& dst, const SkPaint* paint,
224 DrawBitmapRectFlags flags) {
224 Iter iter(fList); 225 Iter iter(fList);
225 while (iter.next()) { 226 while (iter.next()) {
226 iter->drawBitmapRectToRect(bitmap, src, dst, paint); 227 iter->drawBitmapRectToRect(bitmap, src, dst, paint, flags);
227 } 228 }
228 } 229 }
229 230
230 void SkNWayCanvas::drawBitmapMatrix(const SkBitmap& bitmap, const SkMatrix& m, 231 void SkNWayCanvas::drawBitmapMatrix(const SkBitmap& bitmap, const SkMatrix& m,
231 const SkPaint* paint) { 232 const SkPaint* paint) {
232 Iter iter(fList); 233 Iter iter(fList);
233 while (iter.next()) { 234 while (iter.next()) {
234 iter->drawBitmapMatrix(bitmap, m, paint); 235 iter->drawBitmapMatrix(bitmap, m, paint);
235 } 236 }
236 } 237 }
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 iter->addComment(kywd, value); 326 iter->addComment(kywd, value);
326 } 327 }
327 } 328 }
328 329
329 void SkNWayCanvas::endCommentGroup() { 330 void SkNWayCanvas::endCommentGroup() {
330 Iter iter(fList); 331 Iter iter(fList);
331 while (iter.next()) { 332 while (iter.next()) {
332 iter->endCommentGroup(); 333 iter->endCommentGroup();
333 } 334 }
334 } 335 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698