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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 * Return the current clip bounds, in local coordinates, with slop to accou
nt | 132 * Return the current clip bounds, in local coordinates, with slop to accou
nt |
133 * for antialiasing or hairlines (i.e. device-bounds outset by 1, and then | 133 * for antialiasing or hairlines (i.e. device-bounds outset by 1, and then |
134 * run through the inverse of the matrix). | 134 * run through the inverse of the matrix). |
135 * | 135 * |
136 * If the matrix cannot be inverted, or the current clip is empty, return | 136 * If the matrix cannot be inverted, or the current clip is empty, return |
137 * false and ignore bounds parameter. | 137 * false and ignore bounds parameter. |
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. */ |
| 143 SkPaint::FakeGamma SK_WARN_UNUSED_RESULT fakeGamma() const; |
| 144 |
142 public: | 145 public: |
143 SkPixmap fDst; | 146 SkPixmap fDst; |
144 const SkMatrix* fMatrix; // required | 147 const SkMatrix* fMatrix; // required |
145 const SkRegion* fClip; // DEPRECATED | 148 const SkRegion* fClip; // DEPRECATED |
146 const SkRasterClip* fRC; // required | 149 const SkRasterClip* fRC; // required |
147 | 150 |
148 const SkClipStack* fClipStack; // optional | 151 const SkClipStack* fClipStack; // optional |
149 SkBaseDevice* fDevice; // optional | 152 SkBaseDevice* fDevice; // optional |
150 | 153 |
151 #ifdef SK_DEBUG | 154 #ifdef SK_DEBUG |
152 void validate() const; | 155 void validate() const; |
153 #else | 156 #else |
154 void validate() const {} | 157 void validate() const {} |
155 #endif | 158 #endif |
156 }; | 159 }; |
157 | 160 |
158 #endif | 161 #endif |
OLD | NEW |