| Index: Source/platform/graphics/StaticBitmapPattern.h
|
| diff --git a/Source/platform/graphics/StaticBitmapPattern.h b/Source/platform/graphics/StaticBitmapPattern.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..84d4aa2372a9b6835751c02ae82cc7dd4691f630
|
| --- /dev/null
|
| +++ b/Source/platform/graphics/StaticBitmapPattern.h
|
| @@ -0,0 +1,32 @@
|
| +// 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 StaticBitmapPattern_h
|
| +#define StaticBitmapPattern_h
|
| +
|
| +#include "platform/graphics/BitmapPatternBase.h"
|
| +
|
| +namespace blink {
|
| +
|
| +class PLATFORM_EXPORT StaticBitmapPattern : public BitmapPatternBase {
|
| +public:
|
| + static PassRefPtr<Pattern> create(PassRefPtr<Image> tileImage, RepeatMode);
|
| +
|
| + virtual ~StaticBitmapPattern();
|
| +
|
| + virtual PassRefPtr<SkShader> createShader() OVERRIDE;
|
| +
|
| +protected:
|
| + virtual SkImageInfo getBitmapInfo() OVERRIDE;
|
| + virtual void drawBitmapToCanvas(SkCanvas&, SkPaint&) OVERRIDE;
|
| +
|
| +private:
|
| + StaticBitmapPattern(PassRefPtr<SkImage>, RepeatMode);
|
| +
|
| + RefPtr<SkImage> m_tileImage;
|
| +};
|
| +
|
| +} // namespace
|
| +
|
| +#endif
|
|
|