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

Unified Diff: chrome/browser/download/download_shelf.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 | « cc/trees/layer_tree_host_unittest_context.cc ('k') | chrome/browser/extensions/bookmark_app_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/download/download_shelf.cc
diff --git a/chrome/browser/download/download_shelf.cc b/chrome/browser/download/download_shelf.cc
index 9cdf92a6682c550a9cd2041bc7141e85130d8a51..c95a950dc4049f7a67def7f72c06ccada2cdc7ac 100644
--- a/chrome/browser/download/download_shelf.cc
+++ b/chrome/browser/download/download_shelf.cc
@@ -28,6 +28,7 @@
#include "content/public/browser/download_item.h"
#include "content/public/browser/download_manager.h"
#include "content/public/browser/web_contents.h"
+#include "skia/ext/cdl_paint.h"
#include "third_party/skia/include/core/SkPaint.h"
#include "third_party/skia/include/core/SkPath.h"
#include "ui/base/resource/resource_bundle.h"
@@ -74,8 +75,8 @@ void DownloadShelf::PaintDownloadProgress(
const base::TimeDelta& progress_time,
int percent_done) {
// Draw background (light blue circle).
- SkPaint bg_paint;
- bg_paint.setStyle(SkPaint::kFill_Style);
+ CdlPaint bg_paint;
+ bg_paint.setStyle(CdlPaint::kFill_Style);
SkColor indicator_color =
theme_provider.GetColor(ThemeProperties::COLOR_TAB_THROBBER_SPINNING);
bg_paint.setColor(SkColorSetA(indicator_color, 0x33));
@@ -103,9 +104,9 @@ void DownloadShelf::PaintDownloadProgress(
progress.addArc(
SkRect::MakeLTRB(0, 0, kProgressIndicatorSize, kProgressIndicatorSize),
start_pos, sweep_angle);
- SkPaint progress_paint;
+ CdlPaint progress_paint;
progress_paint.setColor(indicator_color);
- progress_paint.setStyle(SkPaint::kStroke_Style);
+ progress_paint.setStyle(CdlPaint::kStroke_Style);
progress_paint.setStrokeWidth(1.7f);
progress_paint.setAntiAlias(true);
canvas->DrawPath(progress, progress_paint);
« no previous file with comments | « cc/trees/layer_tree_host_unittest_context.cc ('k') | chrome/browser/extensions/bookmark_app_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698