| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #ifndef SkRRect_DEFINED | 8 #ifndef SkRRect_DEFINED |
| 9 #define SkRRect_DEFINED | 9 #define SkRRect_DEFINED |
| 10 | 10 |
| 11 #include "SkRect.h" | 11 #include "SkRect.h" |
| 12 #include "SkPoint.h" | 12 #include "SkPoint.h" |
| 13 | 13 |
| 14 class SkPath; | 14 class SkPath; |
| 15 | 15 |
| 16 // Path forward: | 16 // Path forward: |
| 17 // core work | 17 // core work |
| 18 // add validate method (all radii positive, all radii sums < rect size, etc
.) | 18 // add validate method (all radii positive, all radii sums < rect size, etc
.) |
| 19 // add contains(SkRect&) - for clip stack | 19 // add contains(SkRect&) - for clip stack |
| 20 // add contains(SkRRect&) - for clip stack | 20 // add contains(SkRRect&) - for clip stack |
| 21 // add heart rect computation (max rect inside RR) | 21 // add heart rect computation (max rect inside RR) |
| 22 // add 9patch rect computation | 22 // add 9patch rect computation |
| 23 // add growToInclude(SkPath&) | 23 // add growToInclude(SkPath&) |
| 24 // analysis | 24 // analysis |
| 25 // use growToInclude to fit skp round rects & generate stats (RRs vs. real
paths) | 25 // use growToInclude to fit skp round rects & generate stats (RRs vs. real
paths) |
| 26 // check on # of rectorus's the RRs could handle | 26 // check on # of rectorus's the RRs could handle |
| 27 // rendering work | 27 // rendering work |
| 28 // add entry points (clipRRect, drawRRect) - plumb down to SkDevice | 28 // add entry points (clipRRect, drawRRect) - plumb down to SkBaseDevice |
| 29 // update SkPath.addRRect() to take an SkRRect - only use quads | 29 // update SkPath.addRRect() to take an SkRRect - only use quads |
| 30 // -- alternatively add addRRectToPath here | 30 // -- alternatively add addRRectToPath here |
| 31 // add GM and bench | 31 // add GM and bench |
| 32 // clipping opt | 32 // clipping opt |
| 33 // update SkClipStack to perform logic with RRs | 33 // update SkClipStack to perform logic with RRs |
| 34 // further out | 34 // further out |
| 35 // add RR rendering shader to Ganesh (akin to cicle drawing code) | 35 // add RR rendering shader to Ganesh (akin to cicle drawing code) |
| 36 // - only for simple RRs | 36 // - only for simple RRs |
| 37 // detect and triangulate RRectorii rather than falling back to SW in Ganes
h | 37 // detect and triangulate RRectorii rather than falling back to SW in Ganes
h |
| 38 // | 38 // |
| (...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 // uninitialized data | 286 // uninitialized data |
| 287 | 287 |
| 288 void computeType() const; | 288 void computeType() const; |
| 289 bool checkCornerContainment(SkScalar x, SkScalar y) const; | 289 bool checkCornerContainment(SkScalar x, SkScalar y) const; |
| 290 | 290 |
| 291 // to access fRadii directly | 291 // to access fRadii directly |
| 292 friend class SkPath; | 292 friend class SkPath; |
| 293 }; | 293 }; |
| 294 | 294 |
| 295 #endif | 295 #endif |
| OLD | NEW |