| 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);
|
|
|