OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2011 The Android Open Source Project | 3 * Copyright 2011 The Android Open Source Project |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 | 9 |
10 #ifndef SkDrawLooper_DEFINED | 10 #ifndef SkDrawLooper_DEFINED |
(...skipping 17 matching lines...) Expand all Loading... |
28 class SK_API SkDrawLooper : public SkFlattenable { | 28 class SK_API SkDrawLooper : public SkFlattenable { |
29 public: | 29 public: |
30 SK_DECLARE_INST_COUNT(SkDrawLooper) | 30 SK_DECLARE_INST_COUNT(SkDrawLooper) |
31 | 31 |
32 /** | 32 /** |
33 * Holds state during a draw. Users call next() until it returns false. | 33 * Holds state during a draw. Users call next() until it returns false. |
34 * | 34 * |
35 * Subclasses of SkDrawLooper should create a subclass of this object to | 35 * Subclasses of SkDrawLooper should create a subclass of this object to |
36 * hold state specific to their subclass. | 36 * hold state specific to their subclass. |
37 */ | 37 */ |
38 class SK_API Context : public SkNoncopyable { | 38 class SK_API Context : ::SkNoncopyable { |
39 public: | 39 public: |
40 Context() {} | 40 Context() {} |
41 virtual ~Context() {} | 41 virtual ~Context() {} |
42 | 42 |
43 /** | 43 /** |
44 * Called in a loop on objects returned by SkDrawLooper::createContext(
). | 44 * Called in a loop on objects returned by SkDrawLooper::createContext(
). |
45 * Each time true is returned, the object is drawn (possibly with a mod
ified | 45 * Each time true is returned, the object is drawn (possibly with a mod
ified |
46 * canvas and/or paint). When false is finally returned, drawing for th
e object | 46 * canvas and/or paint). When false is finally returned, drawing for th
e object |
47 * stops. | 47 * stops. |
48 * | 48 * |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 | 93 |
94 protected: | 94 protected: |
95 SkDrawLooper() {} | 95 SkDrawLooper() {} |
96 SkDrawLooper(SkReadBuffer& buffer) : INHERITED(buffer) {} | 96 SkDrawLooper(SkReadBuffer& buffer) : INHERITED(buffer) {} |
97 | 97 |
98 private: | 98 private: |
99 typedef SkFlattenable INHERITED; | 99 typedef SkFlattenable INHERITED; |
100 }; | 100 }; |
101 | 101 |
102 #endif | 102 #endif |
OLD | NEW |