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

Unified Diff: chrome/browser/profiles/profile_avatar_icon_util.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
Index: chrome/browser/profiles/profile_avatar_icon_util.cc
diff --git a/chrome/browser/profiles/profile_avatar_icon_util.cc b/chrome/browser/profiles/profile_avatar_icon_util.cc
index 146bd75a0882246e186aa4bc6a60d1bfa83fca39..acfb60f65268a8c86950e643edc50f3ca7e7faf6 100644
--- a/chrome/browser/profiles/profile_avatar_icon_util.cc
+++ b/chrome/browser/profiles/profile_avatar_icon_util.cc
@@ -21,6 +21,7 @@
#include "chrome/grit/generated_resources.h"
#include "chrome/grit/theme_resources.h"
#include "skia/ext/image_operations.h"
+#include "skia/ext/cdl_paint.h"
#include "third_party/skia/include/core/SkPaint.h"
#include "third_party/skia/include/core/SkPath.h"
#include "third_party/skia/include/core/SkScalar.h"
@@ -188,9 +189,9 @@ void AvatarImageSource::Draw(gfx::Canvas* canvas) {
SkFloatToScalar(x + border_size - 0.5f), // right
SkFloatToScalar(y + border_size - 0.5f)); // bottom
- SkPaint paint;
+ CdlPaint paint;
paint.setColor(border_color);
- paint.setStyle(SkPaint::kStroke_Style);
+ paint.setStyle(CdlPaint::kStroke_Style);
paint.setStrokeWidth(SkIntToScalar(1));
canvas->DrawPath(path, paint);
@@ -200,8 +201,8 @@ void AvatarImageSource::Draw(gfx::Canvas* canvas) {
SkColor shadow_color = SkColorSetARGB(83, 0, 0, 0);
SkColor highlight_color = SkColorSetARGB(96, 255, 255, 255);
- SkPaint paint;
- paint.setStyle(SkPaint::kStroke_Style);
+ CdlPaint paint;
+ paint.setStyle(CdlPaint::kStroke_Style);
paint.setStrokeWidth(SkIntToScalar(1));
SkPath path;
« no previous file with comments | « chrome/browser/extensions/bookmark_app_helper.cc ('k') | chrome/browser/ui/extensions/icon_with_badge_image_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698