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

Side by Side Diff: ui/views/controls/progress_bar.cc

Issue 2502373003: stop using SkXfermode -- use SkBlendMode instead (Closed)
Patch Set: rebase Created 4 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « ui/gfx/canvas.cc ('k') | ui/views/controls/scrollbar/overlay_scroll_bar.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/views/controls/progress_bar.h" 5 #include "ui/views/controls/progress_bar.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 #include <string> 9 #include <string>
10 10
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "third_party/skia/include/core/SkPaint.h" 13 #include "third_party/skia/include/core/SkPaint.h"
14 #include "third_party/skia/include/core/SkPath.h" 14 #include "third_party/skia/include/core/SkPath.h"
15 #include "third_party/skia/include/core/SkXfermode.h"
16 #include "third_party/skia/include/effects/SkGradientShader.h" 15 #include "third_party/skia/include/effects/SkGradientShader.h"
17 #include "ui/accessibility/ax_node_data.h" 16 #include "ui/accessibility/ax_node_data.h"
18 #include "ui/gfx/animation/linear_animation.h" 17 #include "ui/gfx/animation/linear_animation.h"
19 #include "ui/gfx/canvas.h" 18 #include "ui/gfx/canvas.h"
20 #include "ui/gfx/color_utils.h" 19 #include "ui/gfx/color_utils.h"
21 #include "ui/native_theme/native_theme.h" 20 #include "ui/native_theme/native_theme.h"
22 21
23 namespace views { 22 namespace views {
24 23
25 namespace { 24 namespace {
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 AddPossiblyRoundRectToPath(slice_bounds, &slice_path); 200 AddPossiblyRoundRectToPath(slice_bounds, &slice_path);
202 201
203 SkPaint slice_paint; 202 SkPaint slice_paint;
204 slice_paint.setStyle(SkPaint::kFill_Style); 203 slice_paint.setStyle(SkPaint::kFill_Style);
205 slice_paint.setFlags(SkPaint::kAntiAlias_Flag); 204 slice_paint.setFlags(SkPaint::kAntiAlias_Flag);
206 slice_paint.setColor(GetForegroundColor()); 205 slice_paint.setColor(GetForegroundColor());
207 canvas->DrawPath(slice_path, slice_paint); 206 canvas->DrawPath(slice_path, slice_paint);
208 } 207 }
209 208
210 } // namespace views 209 } // namespace views
OLDNEW
« no previous file with comments | « ui/gfx/canvas.cc ('k') | ui/views/controls/scrollbar/overlay_scroll_bar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698