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

Unified Diff: gm/bleed.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | include/core/SkCanvas.h » ('j') | include/core/SkCanvas.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/bleed.cpp
===================================================================
--- gm/bleed.cpp (revision 10709)
+++ gm/bleed.cpp (working copy)
@@ -117,7 +117,8 @@
// then draw with bleeding
dst = SkRect::MakeXYWH(120, 10, 100, 100);
- canvas->drawBitmapRectToRect(fBitmapSmall, &src, dst, &paint);
+ canvas->drawBitmapRectToRect(fBitmapSmall, &src, dst, &paint,
+ SkCanvas::kBleed_DrawBitmapRectFlag);
// Next test out the GPU's tiling of large textures
@@ -132,7 +133,8 @@
// then with bleeding
dst = SkRect::MakeXYWH(120, 120, 100, 100);
- canvas->drawBitmapRectToRect(fBitmapBig, &src, dst, &paint);
+ canvas->drawBitmapRectToRect(fBitmapBig, &src, dst, &paint,
+ SkCanvas::kBleed_DrawBitmapRectFlag);
// next draw ~1/4 of the bitmap
src = SkRect::MakeXYWH(1, 1,
@@ -145,7 +147,8 @@
// then with bleeding
dst = SkRect::MakeXYWH(120, 230, 100, 100);
- canvas->drawBitmapRectToRect(fBitmapBig, &src, dst, &paint);
+ canvas->drawBitmapRectToRect(fBitmapBig, &src, dst, &paint,
+ SkCanvas::kBleed_DrawBitmapRectFlag);
#if SK_SUPPORT_GPU
if (NULL != ctx) {
« no previous file with comments | « no previous file | include/core/SkCanvas.h » ('j') | include/core/SkCanvas.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698