| 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 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 303 * pixels. If 'canvFiniteBound' is an inside out bounding box then it | 303 * pixels. If 'canvFiniteBound' is an inside out bounding box then it |
| 304 * encloses all the un-writeable pixels and the true/normal bound is the | 304 * encloses all the un-writeable pixels and the true/normal bound is the |
| 305 * infinite plane. isIntersectionOfRects is an optional parameter | 305 * infinite plane. isIntersectionOfRects is an optional parameter |
| 306 * that is true if 'canvFiniteBound' resulted from an intersection of rects. | 306 * that is true if 'canvFiniteBound' resulted from an intersection of rects. |
| 307 */ | 307 */ |
| 308 void getBounds(SkRect* canvFiniteBound, | 308 void getBounds(SkRect* canvFiniteBound, |
| 309 BoundsType* boundType, | 309 BoundsType* boundType, |
| 310 bool* isIntersectionOfRects = NULL) const; | 310 bool* isIntersectionOfRects = NULL) const; |
| 311 | 311 |
| 312 /** | 312 /** |
| 313 * Takes an input rect in device space and conservatively clips it to the | |
| 314 * clip-stack. If false is returned then the rect does not intersect the | |
| 315 * clip and is unmodified. | |
| 316 */ | |
| 317 bool intersectRectWithClip(SkRect* devRect) const; | |
| 318 | |
| 319 /** | |
| 320 * Returns true if the input rect in device space is entirely contained | 313 * Returns true if the input rect in device space is entirely contained |
| 321 * by the clip. A return value of false does not guarantee that the rect | 314 * by the clip. A return value of false does not guarantee that the rect |
| 322 * is not contained by the clip. | 315 * is not contained by the clip. |
| 323 */ | 316 */ |
| 324 bool quickContains(const SkRect& devRect) const; | 317 bool quickContains(const SkRect& devRect) const; |
| 325 | 318 |
| 326 /** | 319 /** |
| 327 * Flattens the clip stack into a single SkPath. Returns true if any of | 320 * Flattens the clip stack into a single SkPath. Returns true if any of |
| 328 * the clip stack components requires anti-aliasing. | 321 * the clip stack components requires anti-aliasing. |
| 329 */ | 322 */ |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 476 */ | 469 */ |
| 477 void restoreTo(int saveCount); | 470 void restoreTo(int saveCount); |
| 478 | 471 |
| 479 /** | 472 /** |
| 480 * Return the next unique generation ID. | 473 * Return the next unique generation ID. |
| 481 */ | 474 */ |
| 482 static int32_t GetNextGenID(); | 475 static int32_t GetNextGenID(); |
| 483 }; | 476 }; |
| 484 | 477 |
| 485 #endif | 478 #endif |
| OLD | NEW |