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

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

Issue 453653003: [SVG] DisplayList-based patterns. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebased Created 6 years, 2 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
« no previous file with comments | « Source/platform/graphics/Pattern.h ('k') | Source/platform/graphics/StaticBitmapPattern.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/Pattern.cpp
diff --git a/Source/platform/graphics/Pattern.cpp b/Source/platform/graphics/Pattern.cpp
index 932c17c4fb9025034cf9d0b4d3653ce86ae18395..518d83ae6386227d711bb2ff480ded86c4321c57 100644
--- a/Source/platform/graphics/Pattern.cpp
+++ b/Source/platform/graphics/Pattern.cpp
@@ -29,6 +29,8 @@
#include "platform/graphics/Pattern.h"
#include "platform/graphics/BitmapPattern.h"
+#include "platform/graphics/DisplayList.h"
+#include "platform/graphics/DisplayListPattern.h"
#include "platform/graphics/StaticBitmapPattern.h"
#include "third_party/skia/include/core/SkImage.h"
#include "third_party/skia/include/core/SkShader.h"
@@ -44,6 +46,12 @@ PassRefPtr<Pattern> Pattern::createBitmapPattern(PassRefPtr<Image> tileImage, Re
return BitmapPattern::create(tileImage, repeatMode);
}
+PassRefPtr<Pattern> Pattern::createDisplayListPattern(PassRefPtr<DisplayList> displayList,
+ RepeatMode repeatMode)
+{
+ return DisplayListPattern::create(displayList, repeatMode);
+}
+
Pattern::Pattern(RepeatMode repeatMode, int64_t externalMemoryAllocated)
: m_repeatMode(repeatMode)
, m_externalMemoryAllocated(0)
« no previous file with comments | « Source/platform/graphics/Pattern.h ('k') | Source/platform/graphics/StaticBitmapPattern.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698