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

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

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/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);
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/Pattern.h ('k') | third_party/WebKit/Source/platform/graphics/PicturePattern.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698