Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(21)

Side by Side Diff: include/core/SkRRect.h

Issue 167283004: Make canvas pass rrects along to clip stack (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: update comment Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/core/SkCanvas.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 class SkMatrix; 15 class SkMatrix;
16 16
17 // Path forward: 17 // Path forward:
18 // core work 18 // core work
19 // add validate method (all radii positive, all radii sums < rect size, etc .) 19 // add validate method (all radii positive, all radii sums < rect size, etc .)
20 // add contains(SkRect&) - for clip stack 20 // add contains(SkRect&) - for clip stack
21 // add contains(SkRRect&) - for clip stack 21 // add contains(SkRRect&) - for clip stack
22 // add heart rect computation (max rect inside RR) 22 // add heart rect computation (max rect inside RR)
23 // add 9patch rect computation 23 // add 9patch rect computation
24 // add growToInclude(SkPath&) 24 // add growToInclude(SkPath&)
25 // analysis 25 // analysis
26 // use growToInclude to fit skp round rects & generate stats (RRs vs. real paths) 26 // use growToInclude to fit skp round rects & generate stats (RRs vs. real paths)
27 // check on # of rectorus's the RRs could handle 27 // check on # of rectorus's the RRs could handle
28 // rendering work 28 // rendering work
29 // add entry points (clipRRect, drawRRect) - plumb down to SkBaseDevice 29 // update SkPath.addRRect() to only use quads
30 // update SkPath.addRRect() to take an SkRRect - only use quads
31 // -- alternatively add addRRectToPath here
32 // add GM and bench 30 // add GM and bench
33 // clipping opt
34 // update SkClipStack to perform logic with RRs
35 // further out 31 // further out
36 // add RR rendering shader to Ganesh (akin to cicle drawing code)
37 // - only for simple RRs
38 // detect and triangulate RRectorii rather than falling back to SW in Ganes h 32 // detect and triangulate RRectorii rather than falling back to SW in Ganes h
39 // 33 //
40 34
41 /** \class SkRRect 35 /** \class SkRRect
42 36
43 The SkRRect class represents a rounded rect with a potentially different 37 The SkRRect class represents a rounded rect with a potentially different
44 radii for each corner. It does not have a constructor so must be 38 radii for each corner. It does not have a constructor so must be
45 initialized with one of the initialization functions (e.g., setEmpty, 39 initialized with one of the initialization functions (e.g., setEmpty,
46 setRectRadii, etc.) 40 setRectRadii, etc.)
47 41
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 // uninitialized data 274 // uninitialized data
281 275
282 void computeType() const; 276 void computeType() const;
283 bool checkCornerContainment(SkScalar x, SkScalar y) const; 277 bool checkCornerContainment(SkScalar x, SkScalar y) const;
284 278
285 // to access fRadii directly 279 // to access fRadii directly
286 friend class SkPath; 280 friend class SkPath;
287 }; 281 };
288 282
289 #endif 283 #endif
OLDNEW
« no previous file with comments | « no previous file | src/core/SkCanvas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698