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

Unified Diff: Source/platform/graphics/DisplayListPattern.h

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/BitmapPatternBase.h ('k') | Source/platform/graphics/DisplayListPattern.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/DisplayListPattern.h
diff --git a/Source/platform/graphics/DisplayListPattern.h b/Source/platform/graphics/DisplayListPattern.h
new file mode 100644
index 0000000000000000000000000000000000000000..eb60a21216e5884ebf40d4e39a14d8711bebccd1
--- /dev/null
+++ b/Source/platform/graphics/DisplayListPattern.h
@@ -0,0 +1,35 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef DisplayListPattern_h
+#define DisplayListPattern_h
+
+#include "platform/graphics/Pattern.h"
+
+namespace blink {
+
+class DisplayList;
+
+class PLATFORM_EXPORT DisplayListPattern : public Pattern {
+public:
+ static PassRefPtr<DisplayListPattern> create(PassRefPtr<DisplayList> displayList,
+ RepeatMode repeatMode)
+ {
+ return adoptRef(new DisplayListPattern(displayList, repeatMode));
+ }
+
+ virtual ~DisplayListPattern();
+
+protected:
+ virtual PassRefPtr<SkShader> createShader() override;
+
+private:
+ DisplayListPattern(PassRefPtr<DisplayList>, RepeatMode);
+
+ RefPtr<DisplayList> m_tileDisplayList;
+};
+
+} // namespace
+
+#endif
« no previous file with comments | « Source/platform/graphics/BitmapPatternBase.h ('k') | Source/platform/graphics/DisplayListPattern.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698