Index: ash/common/frame/default_header_painter.cc |
diff --git a/ash/common/frame/default_header_painter.cc b/ash/common/frame/default_header_painter.cc |
index 4856f7e98aafe9dc3174982f837782ae866afe46..4def3b3e0f8fdd7723486751f90a11082bf5985f 100644 |
--- a/ash/common/frame/default_header_painter.cc |
+++ b/ash/common/frame/default_header_painter.cc |
@@ -11,7 +11,6 @@ |
#include "base/debug/leak_annotations.h" |
#include "base/logging.h" // DCHECK |
#include "grit/ash_resources.h" |
-#include "third_party/skia/include/core/SkPaint.h" |
#include "third_party/skia/include/core/SkPath.h" |
#include "ui/base/resource/resource_bundle.h" |
#include "ui/gfx/animation/slide_animation.h" |
@@ -45,7 +44,7 @@ const int kActivationCrossfadeDurationMs = 200; |
// Tiles an image into an area, rounding the top corners. |
void TileRoundRect(gfx::Canvas* canvas, |
- const SkPaint& paint, |
+ const cc::PaintFlags& paint, |
const gfx::Rect& bounds, |
int corner_radius) { |
SkRect rect = gfx::RectToSkRect(bounds); |
@@ -139,7 +138,7 @@ void DefaultHeaderPainter::PaintHeader(gfx::Canvas* canvas, Mode mode) { |
? 0 |
: HeaderPainterUtil::GetTopCornerRadiusWhenRestored(); |
- SkPaint paint; |
+ cc::PaintFlags paint; |
int active_alpha = activation_animation_->CurrentValueBetween(0, 255); |
paint.setColor(color_utils::AlphaBlend(active_frame_color_, |
inactive_frame_color_, active_alpha)); |
@@ -270,7 +269,7 @@ void DefaultHeaderPainter::PaintHeaderContentSeparator(gfx::Canvas* canvas) { |
gfx::ScopedCanvas scoped_canvas(canvas); |
const float scale = canvas->UndoDeviceScaleFactor(); |
gfx::RectF rect(0, painted_height_ * scale - 1, view_->width() * scale, 1); |
- SkPaint paint; |
+ cc::PaintFlags paint; |
paint.setColor((mode_ == MODE_ACTIVE) ? kHeaderContentSeparatorColor |
: kHeaderContentSeparatorInactiveColor); |
canvas->sk_canvas()->drawRect(gfx::RectFToSkRect(rect), paint); |