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

Unified Diff: ui/views/controls/scrollbar/overlay_scroll_bar.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 | « ui/views/controls/scrollbar/cocoa_scroll_bar.mm ('k') | ui/views/controls/tabbed_pane/tabbed_pane.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/scrollbar/overlay_scroll_bar.cc
diff --git a/ui/views/controls/scrollbar/overlay_scroll_bar.cc b/ui/views/controls/scrollbar/overlay_scroll_bar.cc
index 55b03620c0bca2a1b7f6933075dac8e911214801..4565221cb08da879e396587d016f7a0e74e57bcb 100644
--- a/ui/views/controls/scrollbar/overlay_scroll_bar.cc
+++ b/ui/views/controls/scrollbar/overlay_scroll_bar.cc
@@ -5,6 +5,7 @@
#include "ui/views/controls/scrollbar/overlay_scroll_bar.h"
#include "base/macros.h"
+#include "cc/paint/paint_flags.h"
#include "third_party/skia/include/core/SkColor.h"
#include "ui/compositor/scoped_layer_animation_settings.h"
#include "ui/gfx/canvas.h"
@@ -51,8 +52,8 @@ gfx::Size OverlayScrollBar::Thumb::GetPreferredSize() const {
}
void OverlayScrollBar::Thumb::OnPaint(gfx::Canvas* canvas) {
- SkPaint fill_paint;
- fill_paint.setStyle(SkPaint::kFill_Style);
+ cc::PaintFlags fill_paint;
+ fill_paint.setStyle(cc::PaintFlags::kFill_Style);
fill_paint.setColor(SK_ColorBLACK);
gfx::RectF fill_bounds(GetLocalBounds());
fill_bounds.Inset(gfx::InsetsF(IsHorizontal() ? kThumbHoverOffset : 0,
@@ -62,8 +63,8 @@ void OverlayScrollBar::Thumb::OnPaint(gfx::Canvas* canvas) {
IsHorizontal() ? kThumbStroke : 0));
canvas->DrawRect(fill_bounds, fill_paint);
- SkPaint stroke_paint;
- stroke_paint.setStyle(SkPaint::kStroke_Style);
+ cc::PaintFlags stroke_paint;
+ stroke_paint.setStyle(cc::PaintFlags::kStroke_Style);
stroke_paint.setColor(SK_ColorWHITE);
stroke_paint.setStrokeWidth(kThumbStroke);
gfx::RectF stroke_bounds(fill_bounds);
« no previous file with comments | « ui/views/controls/scrollbar/cocoa_scroll_bar.mm ('k') | ui/views/controls/tabbed_pane/tabbed_pane.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698