OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 Google Inc. |
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 #ifndef SkClipStack_DEFINED | 8 #ifndef SkClipStack_DEFINED |
9 #define SkClipStack_DEFINED | 9 #define SkClipStack_DEFINED |
10 | 10 |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 */ | 163 */ |
164 bool isInverseFilled() const { | 164 bool isInverseFilled() const { |
165 return kPath_Type == fType && fPath.get()->isInverseFillType(); | 165 return kPath_Type == fType && fPath.get()->isInverseFillType(); |
166 } | 166 } |
167 | 167 |
168 /** | 168 /** |
169 * Replay this clip into the visitor. | 169 * Replay this clip into the visitor. |
170 */ | 170 */ |
171 void replay(SkCanvasClipVisitor*) const; | 171 void replay(SkCanvasClipVisitor*) const; |
172 | 172 |
173 #ifdef SK_DEVELOPER | 173 #ifdef SK_DEBUG |
174 /** | 174 /** |
175 * Dumps the element to SkDebugf. This is intended for Skia development
debugging | 175 * Dumps the element to SkDebugf. This is intended for Skia development
debugging |
176 * Don't rely on the existence of this function or the formatting of its
output. | 176 * Don't rely on the existence of this function or the formatting of its
output. |
177 */ | 177 */ |
178 void dump() const; | 178 void dump() const; |
179 #endif | 179 #endif |
180 | 180 |
181 private: | 181 private: |
182 friend class SkClipStack; | 182 friend class SkClipStack; |
183 | 183 |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
346 * (potentially ignorable) cases | 346 * (potentially ignorable) cases |
347 */ | 347 */ |
348 static const int32_t kInvalidGenID = 0; //!< Invalid id that is never re
turned by | 348 static const int32_t kInvalidGenID = 0; //!< Invalid id that is never re
turned by |
349 //!< SkClipStack. Useful when ca
ching clips | 349 //!< SkClipStack. Useful when ca
ching clips |
350 //!< based on GenID. | 350 //!< based on GenID. |
351 static const int32_t kEmptyGenID = 1; // no pixels writeable | 351 static const int32_t kEmptyGenID = 1; // no pixels writeable |
352 static const int32_t kWideOpenGenID = 2; // all pixels writeable | 352 static const int32_t kWideOpenGenID = 2; // all pixels writeable |
353 | 353 |
354 int32_t getTopmostGenID() const; | 354 int32_t getTopmostGenID() const; |
355 | 355 |
356 #ifdef SK_DEVELOPER | 356 #ifdef SK_DEBUG |
357 /** | 357 /** |
358 * Dumps the contents of the clip stack to SkDebugf. This is intended for Sk
ia development | 358 * Dumps the contents of the clip stack to SkDebugf. This is intended for Sk
ia development |
359 * debugging. Don't rely on the existence of this function or the formatting
of its output. | 359 * debugging. Don't rely on the existence of this function or the formatting
of its output. |
360 */ | 360 */ |
361 void dump() const; | 361 void dump() const; |
362 #endif | 362 #endif |
363 | 363 |
364 public: | 364 public: |
365 class Iter { | 365 class Iter { |
366 public: | 366 public: |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
471 */ | 471 */ |
472 void restoreTo(int saveCount); | 472 void restoreTo(int saveCount); |
473 | 473 |
474 /** | 474 /** |
475 * Return the next unique generation ID. | 475 * Return the next unique generation ID. |
476 */ | 476 */ |
477 static int32_t GetNextGenID(); | 477 static int32_t GetNextGenID(); |
478 }; | 478 }; |
479 | 479 |
480 #endif | 480 #endif |
OLD | NEW |