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

Side by Side Diff: Source/platform/graphics/ImagePattern.h

Issue 1290983003: SkImage-only bitmap patterns (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: missing adoptRef + misc cleanup Created 5 years, 4 months 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 ImagePattern_h
6 #define ImagePattern_h
7
8 #include "platform/graphics/Pattern.h"
9
10 class SkImage;
11
12 namespace blink {
13
14 class Image;
15
16 class PLATFORM_EXPORT ImagePattern final : public Pattern {
17 public:
18 static PassRefPtr<ImagePattern> create(PassRefPtr<Image>, RepeatMode);
19
20 protected:
21 PassRefPtr<SkShader> createShader() override;
22
23 private:
24 ImagePattern(PassRefPtr<Image>, RepeatMode);
25
26 RefPtr<SkImage> m_tileImage;
27 };
28
29 } // namespace
30
31 #endif /* ImagePattern_h */
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698