OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2006 The Android Open Source Project | 3 * Copyright 2006 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 SkDraw_DEFINED | 10 #ifndef SkDraw_DEFINED |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 */ | 138 */ |
139 bool SK_WARN_UNUSED_RESULT | 139 bool SK_WARN_UNUSED_RESULT |
140 computeConservativeLocalClipBounds(SkRect* bounds) const; | 140 computeConservativeLocalClipBounds(SkRect* bounds) const; |
141 | 141 |
142 /** Returns the current setting for using fake gamma and contrast. */ | 142 /** Returns the current setting for using fake gamma and contrast. */ |
143 uint32_t SK_WARN_UNUSED_RESULT scalerContextFlags() const; | 143 uint32_t SK_WARN_UNUSED_RESULT scalerContextFlags() const; |
144 | 144 |
145 public: | 145 public: |
146 SkPixmap fDst; | 146 SkPixmap fDst; |
147 const SkMatrix* fMatrix; // required | 147 const SkMatrix* fMatrix; // required |
148 const SkRegion* fClip; // DEPRECATED | |
149 const SkRasterClip* fRC; // required | 148 const SkRasterClip* fRC; // required |
150 | 149 |
151 const SkClipStack* fClipStack; // optional | 150 const SkClipStack* fClipStack; // optional, may be null |
152 SkBaseDevice* fDevice; // optional | 151 SkBaseDevice* fDevice; // optional, may be null |
153 | 152 |
154 #ifdef SK_DEBUG | 153 #ifdef SK_DEBUG |
155 void validate() const; | 154 void validate() const; |
156 #else | 155 #else |
157 void validate() const {} | 156 void validate() const {} |
158 #endif | 157 #endif |
159 }; | 158 }; |
160 | 159 |
161 #endif | 160 #endif |
OLD | NEW |