Chromium Code Reviews| 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..e41b0d739c1a8f88e71cd9f041b8b68ce28a2717 |
| --- /dev/null |
| +++ b/Source/platform/graphics/DisplayListPattern.h |
| @@ -0,0 +1,34 @@ |
| +// 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(); |
| + |
| + virtual PassRefPtr<SkShader> createShader() override; |
|
fs
2014/10/21 20:12:35
No strong reason for having this public I think (i
f(malita)
2014/10/21 22:16:33
Oh yeah - done. Also updated BitmapPatternBase, Bi
|
| + |
| +private: |
| + DisplayListPattern(PassRefPtr<DisplayList>, RepeatMode); |
| + |
| + RefPtr<DisplayList> m_tileDisplayList; |
| +}; |
| + |
| +} // namespace |
| + |
| +#endif |