| 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
|
|
|