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

Unified Diff: third_party/WebKit/Source/platform/graphics/Gradient.h

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/Gradient.h
diff --git a/third_party/WebKit/Source/platform/graphics/Gradient.h b/third_party/WebKit/Source/platform/graphics/Gradient.h
index dbcc513fb4058c225a0dc60f242778a65f6994d6..1132deddd8a4a3558694d1334c22f70aef77a0c0 100644
--- a/third_party/WebKit/Source/platform/graphics/Gradient.h
+++ b/third_party/WebKit/Source/platform/graphics/Gradient.h
@@ -33,6 +33,8 @@
#include "platform/geometry/FloatPoint.h"
#include "platform/graphics/Color.h"
#include "platform/graphics/GraphicsTypes.h"
+#include "platform/graphics/paint/PaintFlags.h"
+#include "platform/graphics/paint/PaintShader.h"
#include "third_party/skia/include/core/SkRefCnt.h"
#include "wtf/Noncopyable.h"
#include "wtf/PassRefPtr.h"
@@ -40,8 +42,6 @@
#include "wtf/Vector.h"
class SkMatrix;
-class SkPaint;
-class SkShader;
namespace blink {
@@ -114,7 +114,7 @@ class PLATFORM_EXPORT Gradient : public RefCounted<Gradient> {
m_r1 = r;
}
- void applyToPaint(SkPaint&, const SkMatrix& localMatrix);
+ void applyToPaint(PaintFlags&, const SkMatrix& localMatrix);
void setDrawsInPMColorSpace(bool drawInPMColorSpace);
@@ -129,7 +129,7 @@ class PLATFORM_EXPORT Gradient : public RefCounted<Gradient> {
float r1,
float aspectRatio);
- sk_sp<SkShader> createShader(const SkMatrix& localMatrix);
+ sk_sp<PaintShader> createShader(const SkMatrix& localMatrix);
void sortStopsIfNecessary();
@@ -144,7 +144,7 @@ class PLATFORM_EXPORT Gradient : public RefCounted<Gradient> {
bool m_drawInPMColorSpace;
GradientSpreadMethod m_spreadMethod;
- mutable sk_sp<SkShader> m_cachedShader;
+ mutable sk_sp<PaintShader> m_cachedShader;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698