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

Side by Side 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, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef DisplayListPattern_h
6 #define DisplayListPattern_h
7
8 #include "platform/graphics/Pattern.h"
9
10 namespace blink {
11
12 class DisplayList;
13
14 class PLATFORM_EXPORT DisplayListPattern : public Pattern {
15 public:
16 static PassRefPtr<DisplayListPattern> create(PassRefPtr<DisplayList> display List,
17 RepeatMode repeatMode)
18 {
19 return adoptRef(new DisplayListPattern(displayList, repeatMode));
20 }
21
22 virtual ~DisplayListPattern();
23
24 protected:
25 virtual PassRefPtr<SkShader> createShader() override;
26
27 private:
28 DisplayListPattern(PassRefPtr<DisplayList>, RepeatMode);
29
30 RefPtr<DisplayList> m_tileDisplayList;
31 };
32
33 } // namespace
34
35 #endif
OLDNEW
« 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