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

Unified Diff: chrome/browser/download/download_shelf.cc

Issue 2640983002: Rename paint data structures (Closed)
Patch Set: DrawingDisplayItem Created 3 years, 11 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 | « chrome/browser/DEPS ('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..08f5a892f4616a571da4d7b049e4b6c3d6b5f66c 100644
--- a/chrome/browser/download/download_shelf.cc
+++ b/chrome/browser/download/download_shelf.cc
@@ -15,6 +15,7 @@
#include "base/strings/string_number_conversions.h"
#include "base/threading/thread_task_runner_handle.h"
#include "base/time/time.h"
+#include "cc/paint/paint_flags.h"
#include "chrome/browser/download/download_item_model.h"
#include "chrome/browser/download/download_service.h"
#include "chrome/browser/download/download_service_factory.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);
+ cc::PaintFlags bg_paint;
+ bg_paint.setStyle(cc::PaintFlags::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;
+ cc::PaintFlags progress_paint;
progress_paint.setColor(indicator_color);
- progress_paint.setStyle(SkPaint::kStroke_Style);
+ progress_paint.setStyle(cc::PaintFlags::kStroke_Style);
progress_paint.setStrokeWidth(1.7f);
progress_paint.setAntiAlias(true);
canvas->DrawPath(progress, progress_paint);
« no previous file with comments | « chrome/browser/DEPS ('k') | chrome/browser/extensions/bookmark_app_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698