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

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

Issue 2523673004: [NOT FOR COMMIT] Fully replace SkCanvas uses.
Patch Set: Support Android build. Created 4 years 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..0958dee6241bd8706af7e10a1c3d9cd91e224b4d 100644
--- a/third_party/WebKit/Source/platform/graphics/Gradient.h
+++ b/third_party/WebKit/Source/platform/graphics/Gradient.h
@@ -33,6 +33,7 @@
#include "platform/geometry/FloatPoint.h"
#include "platform/graphics/Color.h"
#include "platform/graphics/GraphicsTypes.h"
+#include "skia/ext/cdl_common.h"
#include "third_party/skia/include/core/SkRefCnt.h"
#include "wtf/Noncopyable.h"
#include "wtf/PassRefPtr.h"
@@ -40,8 +41,6 @@
#include "wtf/Vector.h"
class SkMatrix;
-class SkPaint;
-class SkShader;
namespace blink {
@@ -114,7 +113,7 @@ class PLATFORM_EXPORT Gradient : public RefCounted<Gradient> {
m_r1 = r;
}
- void applyToPaint(SkPaint&, const SkMatrix& localMatrix);
+ void applyToPaint(CdlPaint&, const SkMatrix& localMatrix);
void setDrawsInPMColorSpace(bool drawInPMColorSpace);
@@ -129,7 +128,7 @@ class PLATFORM_EXPORT Gradient : public RefCounted<Gradient> {
float r1,
float aspectRatio);
- sk_sp<SkShader> createShader(const SkMatrix& localMatrix);
+ sk_sp<CdlShader> createShader(const SkMatrix& localMatrix);
void sortStopsIfNecessary();
@@ -144,7 +143,7 @@ class PLATFORM_EXPORT Gradient : public RefCounted<Gradient> {
bool m_drawInPMColorSpace;
GradientSpreadMethod m_spreadMethod;
- mutable sk_sp<SkShader> m_cachedShader;
+ mutable sk_sp<CdlShader> m_cachedShader;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698