| Index: third_party/WebKit/Source/platform/graphics/Pattern.cpp
|
| diff --git a/third_party/WebKit/Source/platform/graphics/Pattern.cpp b/third_party/WebKit/Source/platform/graphics/Pattern.cpp
|
| index 89424bdb3ccd995d7c2678132ec50b2d888a52a8..e821727a9ba9ca9fb4e01ce0b9a3c5a5950da972 100644
|
| --- a/third_party/WebKit/Source/platform/graphics/Pattern.cpp
|
| +++ b/third_party/WebKit/Source/platform/graphics/Pattern.cpp
|
| @@ -31,7 +31,8 @@
|
| #include "platform/graphics/PicturePattern.h"
|
| #include "platform/graphics/skia/SkiaUtils.h"
|
| #include "third_party/skia/include/core/SkImage.h"
|
| -#include "third_party/skia/include/core/SkPicture.h"
|
| +#include "skia/ext/cdl_paint.h"
|
| +#include "skia/ext/cdl_picture.h"
|
| #include "third_party/skia/include/core/SkShader.h"
|
| #include <v8.h>
|
|
|
| @@ -42,7 +43,7 @@ PassRefPtr<Pattern> Pattern::createImagePattern(PassRefPtr<Image> tileImage,
|
| return ImagePattern::create(std::move(tileImage), repeatMode);
|
| }
|
|
|
| -PassRefPtr<Pattern> Pattern::createPicturePattern(sk_sp<SkPicture> picture,
|
| +PassRefPtr<Pattern> Pattern::createPicturePattern(sk_sp<CdlPicture> picture,
|
| RepeatMode repeatMode) {
|
| return PicturePattern::create(std::move(picture), repeatMode);
|
| }
|
| @@ -56,7 +57,7 @@ Pattern::~Pattern() {
|
| adjustExternalMemoryAllocated(-m_externalMemoryAllocated);
|
| }
|
|
|
| -void Pattern::applyToPaint(SkPaint& paint, const SkMatrix& localMatrix) {
|
| +void Pattern::applyToPaint(CdlPaint& paint, const SkMatrix& localMatrix) {
|
| if (!m_cachedShader || isLocalMatrixChanged(localMatrix))
|
| m_cachedShader = createShader(localMatrix);
|
|
|
|
|