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

Unified Diff: third_party/WebKit/Source/platform/graphics/GradientGeneratedImage.cpp

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
Index: third_party/WebKit/Source/platform/graphics/GradientGeneratedImage.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/GradientGeneratedImage.cpp b/third_party/WebKit/Source/platform/graphics/GradientGeneratedImage.cpp
index d8d0834bb8ca17410034938dfa4944724e66159e..d334d0a97c5e45c96321b5931465fc8c1045ad6d 100644
--- a/third_party/WebKit/Source/platform/graphics/GradientGeneratedImage.cpp
+++ b/third_party/WebKit/Source/platform/graphics/GradientGeneratedImage.cpp
@@ -31,8 +31,8 @@
namespace blink {
-void GradientGeneratedImage::draw(SkCanvas* canvas,
- const SkPaint& paint,
+void GradientGeneratedImage::draw(PaintCanvas* canvas,
+ const PaintFlags& paint,
const FloatRect& destRect,
const FloatRect& srcRect,
RespectImageOrientationEnum,
@@ -50,7 +50,7 @@ void GradientGeneratedImage::draw(SkCanvas* canvas,
SkRect visibleDestRect;
transform.mapRect(&visibleDestRect, visibleSrcRect);
- SkPaint gradientPaint(paint);
+ PaintFlags gradientPaint(paint);
m_gradient->applyToPaint(gradientPaint, transform);
canvas->drawRect(visibleDestRect, gradientPaint);
}
@@ -59,13 +59,13 @@ void GradientGeneratedImage::drawTile(GraphicsContext& context,
const FloatRect& srcRect) {
// TODO(ccameron): This function should not ignore |context|'s color behavior.
// https://crbug.com/672306
- SkPaint gradientPaint(context.fillPaint());
+ PaintFlags gradientPaint(context.fillPaint());
m_gradient->applyToPaint(gradientPaint, SkMatrix::I());
context.drawRect(srcRect, gradientPaint);
}
-bool GradientGeneratedImage::applyShader(SkPaint& paint,
+bool GradientGeneratedImage::applyShader(PaintFlags& paint,
const SkMatrix& localMatrix,
const ColorBehavior& colorBehavior) {
// TODO(ccameron): This function should not ignore |colorBehavior|.

Powered by Google App Engine
This is Rietveld 408576698