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

Unified Diff: ui/views/animation/ink_drop_painted_layer_delegates.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/animation/ink_drop_mask.cc ('k') | ui/views/border.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/animation/ink_drop_painted_layer_delegates.cc
diff --git a/ui/views/animation/ink_drop_painted_layer_delegates.cc b/ui/views/animation/ink_drop_painted_layer_delegates.cc
index 135e249d716ef4dd17d860fa4148d2ffeacdeca6..4612abdf960e262222714f884a5f7154915d58a3 100644
--- a/ui/views/animation/ink_drop_painted_layer_delegates.cc
+++ b/ui/views/animation/ink_drop_painted_layer_delegates.cc
@@ -4,8 +4,9 @@
#include "ui/views/animation/ink_drop_painted_layer_delegates.h"
+#include "cc/paint/paint_canvas.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/SkRRect.h"
#include "ui/compositor/paint_recorder.h"
#include "ui/gfx/canvas.h"
@@ -57,10 +58,10 @@ gfx::Rect CircleLayerDelegate::GetPaintedBounds() const {
}
void CircleLayerDelegate::OnPaintLayer(const ui::PaintContext& context) {
- SkPaint paint;
+ cc::PaintFlags paint;
paint.setColor(color());
- paint.setFlags(SkPaint::kAntiAlias_Flag);
- paint.setStyle(SkPaint::kFill_Style);
+ paint.setAntiAlias(true);
+ paint.setStyle(cc::PaintFlags::kFill_Style);
ui::PaintRecorder recorder(context, GetPaintedBounds().size());
gfx::Canvas* canvas = recorder.canvas();
@@ -83,10 +84,10 @@ gfx::Rect RectangleLayerDelegate::GetPaintedBounds() const {
}
void RectangleLayerDelegate::OnPaintLayer(const ui::PaintContext& context) {
- SkPaint paint;
+ cc::PaintFlags paint;
paint.setColor(color());
- paint.setFlags(SkPaint::kAntiAlias_Flag);
- paint.setStyle(SkPaint::kFill_Style);
+ paint.setAntiAlias(true);
+ paint.setStyle(cc::PaintFlags::kFill_Style);
ui::PaintRecorder recorder(context, size_);
gfx::Canvas* canvas = recorder.canvas();
@@ -114,10 +115,10 @@ gfx::Rect RoundedRectangleLayerDelegate::GetPaintedBounds() const {
void RoundedRectangleLayerDelegate::OnPaintLayer(
const ui::PaintContext& context) {
- SkPaint paint;
+ cc::PaintFlags paint;
paint.setColor(color());
- paint.setFlags(SkPaint::kAntiAlias_Flag);
- paint.setStyle(SkPaint::kFill_Style);
+ paint.setAntiAlias(true);
+ paint.setStyle(cc::PaintFlags::kFill_Style);
ui::PaintRecorder recorder(context, size_);
recorder.canvas()->DrawRoundRect(GetPaintedBounds(), corner_radius_, paint);
@@ -152,8 +153,8 @@ gfx::Vector2dF BorderShadowLayerDelegate::GetCenteringOffset() const {
}
void BorderShadowLayerDelegate::OnPaintLayer(const ui::PaintContext& context) {
- SkPaint paint;
- paint.setStyle(SkPaint::kFill_Style);
+ cc::PaintFlags paint;
+ paint.setStyle(cc::PaintFlags::kFill_Style);
paint.setAntiAlias(true);
paint.setColor(fill_color_);
« no previous file with comments | « ui/views/animation/ink_drop_mask.cc ('k') | ui/views/border.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698