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

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

Issue 22978012: Split SkDevice into SkBaseDevice and SkBitmapDevice (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Updating to ToT (10994) Created 7 years, 3 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 | « include/core/SkImageFilter.h ('k') | include/device/xps/SkXPSDevice.h » ('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 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
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
OLDNEW
« no previous file with comments | « include/core/SkImageFilter.h ('k') | include/device/xps/SkXPSDevice.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698