Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 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
| |
| 25 | |
| 26 private: | |
| 27 DisplayListPattern(PassRefPtr<DisplayList>, RepeatMode); | |
| 28 | |
| 29 RefPtr<DisplayList> m_tileDisplayList; | |
| 30 }; | |
| 31 | |
| 32 } // namespace | |
| 33 | |
| 34 #endif | |
| OLD | NEW |