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

Unified Diff: ash/common/frame/default_header_painter.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 | « ash/common/frame/caption_buttons/frame_caption_button.cc ('k') | ash/common/shelf/app_list_button.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « ash/common/frame/caption_buttons/frame_caption_button.cc ('k') | ash/common/shelf/app_list_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698