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

Unified Diff: ui/gfx/nine_image_painter.cc

Issue 2523673004: [NOT FOR COMMIT] Fully replace SkCanvas uses.
Patch Set: Support Android build. Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/gfx/image/image_skia_operations.cc ('k') | ui/gfx/paint_throbber.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/nine_image_painter.cc
diff --git a/ui/gfx/nine_image_painter.cc b/ui/gfx/nine_image_painter.cc
index 1f14f0eea5408ee9e86b82e398cc91cabd8690c9..7cfa89de793e2407eff19d1a965bdb8705a27bfc 100644
--- a/ui/gfx/nine_image_painter.cc
+++ b/ui/gfx/nine_image_painter.cc
@@ -43,7 +43,7 @@ void Fill(Canvas* c,
int y,
int w,
int h,
- const SkPaint& paint) {
+ const CdlPaint& paint) {
if (rep.is_null())
return;
c->DrawImageIntInPixel(rep, x, y, w, h, false, paint);
@@ -157,7 +157,7 @@ void NineImagePainter::Paint(Canvas* canvas,
int i4h =
std::max(height_in_pixels - i4y - std::min(std::min(i6h, i7h), i8h), 0);
- SkPaint paint;
+ CdlPaint paint;
paint.setAlpha(alpha);
Fill(canvas, image_reps[4], i4x, i4y, i4w, i4h, paint);
« no previous file with comments | « ui/gfx/image/image_skia_operations.cc ('k') | ui/gfx/paint_throbber.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698