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

Unified Diff: app/gfx/canvas.cc

Issue 147121: Update WebKit to 45111 and Skia to 239 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 6 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 | « app/gfx/canvas.h ('k') | chrome/browser/cocoa/cocoa_utils.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: app/gfx/canvas.cc
===================================================================
--- app/gfx/canvas.cc (revision 19197)
+++ app/gfx/canvas.cc (working copy)
@@ -53,7 +53,7 @@
SkPaint paint;
paint.setColor(color);
paint.setStyle(SkPaint::kFill_Style);
- paint.setPorterDuffXfermode(SkPorterDuff::kSrcOver_Mode);
+ paint.setXfermodeMode(SkXfermode::kSrcOver_Mode);
FillRectInt(x, y, w, h, paint);
}
@@ -63,11 +63,11 @@
}
void Canvas::DrawRectInt(const SkColor& color, int x, int y, int w, int h) {
- DrawRectInt(color, x, y, w, h, SkPorterDuff::kSrcOver_Mode);
+ DrawRectInt(color, x, y, w, h, SkXfermode::kSrcOver_Mode);
}
void Canvas::DrawRectInt(const SkColor& color, int x, int y, int w, int h,
- SkPorterDuff::Mode mode) {
+ SkXfermode::Mode mode) {
SkPaint paint;
paint.setColor(color);
paint.setStyle(SkPaint::kStroke_Style);
@@ -75,7 +75,7 @@
// we set a stroke width of 1, for example, this will internally create a
// path and fill it, which causes problems near the edge of the canvas.
paint.setStrokeWidth(SkIntToScalar(0));
- paint.setPorterDuffXfermode(mode);
+ paint.setXfermodeMode(mode);
SkIRect rc = {x, y, x + w, y + h};
drawIRect(rc, paint);
@@ -236,7 +236,7 @@
SkShader::kRepeat_TileMode,
SkShader::kRepeat_TileMode);
paint.setShader(shader);
- paint.setPorterDuffXfermode(SkPorterDuff::kSrcOver_Mode);
+ paint.setXfermodeMode(SkXfermode::kSrcOver_Mode);
// CreateBitmapShader returns a Shader with a reference count of one, we
// need to unref after paint takes ownership of the shader.
« no previous file with comments | « app/gfx/canvas.h ('k') | chrome/browser/cocoa/cocoa_utils.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698