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

Unified Diff: ui/views/controls/scrollbar/overlay_scroll_bar.cc

Issue 2640983002: Rename paint data structures (Closed)
Patch Set: Rebase 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
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 8a93b23aa5a29fb59ba16995aa00624abb7bac22..ed79691ccbed771aceaef1c176337b6dc0cd050c 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);

Powered by Google App Engine
This is Rietveld 408576698