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

Unified Diff: ui/views/bubble/bubble_border.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/border.cc ('k') | ui/views/bubble/tray_bubble_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/bubble/bubble_border.cc
diff --git a/ui/views/bubble/bubble_border.cc b/ui/views/bubble/bubble_border.cc
index 67b2acfdb6944ff7d9740a4fe3c2d8277a4f9bea..a93bcb019ae75dcadcc55b14654fd3730159e6db 100644
--- a/ui/views/bubble/bubble_border.cc
+++ b/ui/views/bubble/bubble_border.cc
@@ -8,8 +8,8 @@
#include <vector>
#include "base/logging.h"
+#include "cc/paint/paint_flags.h"
#include "third_party/skia/include/core/SkDrawLooper.h"
-#include "third_party/skia/include/core/SkPaint.h"
#include "third_party/skia/include/core/SkPath.h"
#include "ui/base/material_design/material_design_controller.h"
#include "ui/base/resource/resource_bundle.h"
@@ -510,8 +510,8 @@ void BubbleBorder::DrawArrow(gfx::Canvas* canvas,
canvas->DrawImageInt(*GetArrowImage(), arrow_bounds.x(), arrow_bounds.y());
SkPath path;
GetArrowPathFromArrowBounds(arrow_bounds, &path);
- SkPaint paint;
- paint.setStyle(SkPaint::kFill_Style);
+ cc::PaintFlags paint;
+ paint.setStyle(cc::PaintFlags::kFill_Style);
paint.setColor(background_color_);
canvas->DrawPath(path, paint);
@@ -530,7 +530,7 @@ void BubbleBorder::PaintMd(const View& view, gfx::Canvas* canvas) {
gfx::ScopedCanvas scoped(canvas);
- SkPaint paint;
+ cc::PaintFlags paint;
std::vector<gfx::ShadowValue> shadows;
// gfx::ShadowValue counts blur pixels both inside and outside the shape,
// whereas these blur values only describe the outside portion, hence they
@@ -570,9 +570,9 @@ void BubbleBackground::Paint(gfx::Canvas* canvas, views::View* view) const {
canvas->DrawColor(border_->background_color());
// Fill the contents with a round-rect region to match the border images.
- SkPaint paint;
+ cc::PaintFlags paint;
paint.setAntiAlias(true);
- paint.setStyle(SkPaint::kFill_Style);
+ paint.setStyle(cc::PaintFlags::kFill_Style);
paint.setColor(border_->background_color());
SkPath path;
gfx::RectF bounds(view->GetLocalBounds());
« no previous file with comments | « ui/views/border.cc ('k') | ui/views/bubble/tray_bubble_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698