Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(201)

Issue 7294046: Special-case stroking ovals

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 2 months ago by reed1
Modified:
11 years, 2 months ago
CC:
skia-review_googlegroups.com
Base URL:
http://skia.googlecode.com/svn/
Visibility:
Public.

Description

Special-case stroking ovals - should extend for rects and rrects - should write to be more sharable w/ other devices (and possibly public?)

Patch Set 1 #

Total comments: 5

Patch Set 2 : #

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -2 lines) Patch
M trunk/src/core/SkDevice.cpp View 1 2 2 chunks +63 lines, -2 lines 0 comments Download

Messages

Total messages: 6
reed1
old running bench [640 480] draw_stroke_oval_miter 8888: cmsecs = 20.04 running bench [640 480] draw_stroke_oval_bevel ...
11 years, 2 months ago (2013-02-04 15:00:39 UTC) #1
reed1
FYI -- not ready to submit, until I try to (1) make it more sharable, ...
11 years, 2 months ago (2013-02-04 15:01:17 UTC) #2
bsalomon
On 2013/02/04 15:01:17, reed1 wrote: > FYI -- not ready to submit, until I try ...
11 years, 2 months ago (2013-02-04 15:10:43 UTC) #3
caryclark1
https://codereview.appspot.com/7294046/diff/1/trunk/src/core/SkDevice.cpp File trunk/src/core/SkDevice.cpp (right): https://codereview.appspot.com/7294046/diff/1/trunk/src/core/SkDevice.cpp#newcode380 trunk/src/core/SkDevice.cpp:380: break; add: default: SkASSERT(0); ? https://codereview.appspot.com/7294046/diff/1/trunk/src/core/SkDevice.cpp#newcode390 trunk/src/core/SkDevice.cpp:390: } else ...
11 years, 2 months ago (2013-02-04 16:35:32 UTC) #4
reed1
https://codereview.appspot.com/7294046/diff/1/trunk/src/core/SkDevice.cpp File trunk/src/core/SkDevice.cpp (right): https://codereview.appspot.com/7294046/diff/1/trunk/src/core/SkDevice.cpp#newcode380 trunk/src/core/SkDevice.cpp:380: break; On 2013/02/04 16:35:32, caryclark1 wrote: > add: > ...
11 years, 2 months ago (2013-02-11 18:43:34 UTC) #5
caryclark1
11 years, 2 months ago (2013-02-11 19:49:59 UTC) #6
https://codereview.appspot.com/7294046/diff/1/trunk/src/core/SkDevice.cpp
File trunk/src/core/SkDevice.cpp (right):

https://codereview.appspot.com/7294046/diff/1/trunk/src/core/SkDevice.cpp#new...
trunk/src/core/SkDevice.cpp:380: break;
I take it back. If one day a new style is added, leaving the default: off will
hopefully generate a compile error. On 2013/02/11 18:43:34, reed1 wrote:
> On 2013/02/04 16:35:32, caryclark1 wrote:
> > add:
> > default:
> >  SkASSERT(0);
> > ?
> 
> I guess, though we don't, in general, check for out-of-range enum values in
> other switch statements. Are you thinking of a specific issue or bad-pattern?
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b