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

Side by Side Diff: include/core/SkDevice.h

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 2010 The Android Open Source Project 3 * Copyright 2010 The Android Open Source Project
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 8
9 9
10 #ifndef SkDevice_DEFINED 10 #ifndef SkDevice_DEFINED
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 const SkMatrix& matrix, const SkPaint& paint); 280 const SkMatrix& matrix, const SkPaint& paint);
281 virtual void drawSprite(const SkDraw&, const SkBitmap& bitmap, 281 virtual void drawSprite(const SkDraw&, const SkBitmap& bitmap,
282 int x, int y, const SkPaint& paint); 282 int x, int y, const SkPaint& paint);
283 283
284 /** 284 /**
285 * The default impl. will create a bitmap-shader from the bitmap, 285 * The default impl. will create a bitmap-shader from the bitmap,
286 * and call drawRect with it. 286 * and call drawRect with it.
287 */ 287 */
288 virtual void drawBitmapRect(const SkDraw&, const SkBitmap&, 288 virtual void drawBitmapRect(const SkDraw&, const SkBitmap&,
289 const SkRect* srcOrNull, const SkRect& dst, 289 const SkRect* srcOrNull, const SkRect& dst,
290 const SkPaint& paint); 290 const SkPaint& paint,
291 SkCanvas::DrawBitmapRectFlags flags);
291 292
292 /** 293 /**
293 * Does not handle text decoration. 294 * Does not handle text decoration.
294 * Decorations (underline and stike-thru) will be handled by SkCanvas. 295 * Decorations (underline and stike-thru) will be handled by SkCanvas.
295 */ 296 */
296 virtual void drawText(const SkDraw&, const void* text, size_t len, 297 virtual void drawText(const SkDraw&, const void* text, size_t len,
297 SkScalar x, SkScalar y, const SkPaint& paint); 298 SkScalar x, SkScalar y, const SkPaint& paint);
298 virtual void drawPosText(const SkDraw&, const void* text, size_t len, 299 virtual void drawPosText(const SkDraw&, const void* text, size_t len,
299 const SkScalar pos[], SkScalar constY, 300 const SkScalar pos[], SkScalar constY,
300 int scalarsPerPos, const SkPaint& paint); 301 int scalarsPerPos, const SkPaint& paint);
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
459 SkDeviceProperties fLeakyProperties; 460 SkDeviceProperties fLeakyProperties;
460 461
461 #ifdef SK_DEBUG 462 #ifdef SK_DEBUG
462 bool fAttachedToCanvas; 463 bool fAttachedToCanvas;
463 #endif 464 #endif
464 465
465 typedef SkRefCnt INHERITED; 466 typedef SkRefCnt INHERITED;
466 }; 467 };
467 468
468 #endif 469 #endif
OLDNEW
« include/core/SkCanvas.h ('K') | « include/core/SkCanvas.h ('k') | include/core/SkPicture.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698