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

Issue 6458143: Added Serialization of SkPath's bound (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years ago by robertphillips
Modified:
12 years ago
Reviewers:
Leon, TomH, reed1
CC:
skia-review_googlegroups.com, bsalomon, epoger
Base URL:
http://skia.googlecode.com/svn/trunk/
Visibility:
Public.

Description

It appears that this is a wash for the existing benchs: bench.exe -repeat 200 -config 8888 old new path_reverse_add_path 8888 c 15.60 31.20 -15.60 -100.0% morph_10_dilate 8888 c 140.40 124.80 +15.60 +11.1% morph_10_erode 8888 c 140.40 124.80 +15.60 +11.1% ref_cnt_new_weak 8888 c 124.80 109.20 +15.60 +12.5% bitmap_8888_update_volatile_scale_rotate_filter 8888 c 46.80 31.20 +15.60 +33.3% morph_2_dilate 8888 c 46.80 31.20 +15.60 +33.3% grmemorypool_queue 8888 c 31.20 15.60 +15.60 +50.0% path_add_path_trans 8888 c 31.20 15.60 +15.60 +50.0% path_stroke_big_circle 8888 c 31.20 15.60 +15.60 +50.0% picture_playback_drawPosText 8888 c 31.20 15.60 +15.60 +50.0% picture_playback_drawPosTextH 8888 c 31.20 15.60 +15.60 +50.0% picture_playback_drawText 8888 c 31.20 15.60 +15.60 +50.0% ref_cnt_heap 8888 c 31.20 15.60 +15.60 +50.0% region_difference_16 8888 c 31.20 15.60 +15.60 +50.0% region_union_16 8888 c 31.20 15.60 +15.60 +50.0% isfinite_and_float 8888 c 15.60 0.00 +15.60 +100.0% math_fastIsqrt 8888 c 15.60 0.00 +15.60 +100.0% path_fill_small_long_line 8888 c 15.60 0.00 +15.60 +100.0% path_path_to 8888 c 15.60 0.00 +15.60 +100.0% bench.exe -repeat 200 -config 8888 -mode deferred old new repeatTile_565 8888 c 15.60 31.20 -15.60 -100.0% morph_10_erode 8888 c 140.40 124.80 +15.60 +11.1% ref_cnt_new 8888 c 124.80 109.20 +15.60 +12.5% region_difference_16 8888 c 31.20 15.60 +15.60 +50.0%

Patch Set 1 #

Total comments: 15

Patch Set 2 : Bumped SkPicture's version & removed hack in SkGPipeWriter #

Patch Set 3 : Addressed code review issues #

Total comments: 5

Patch Set 4 : Removed assert & renamed Offset enums to Shift #

Total comments: 2

Patch Set 5 : Expanded use of *Shift enums #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -10 lines) Patch
M include/core/SkPath.h View 1 2 3 4 1 chunk +8 lines, -0 lines 0 comments Download
M src/core/SkPath.cpp View 1 2 3 4 2 chunks +29 lines, -9 lines 0 comments Download
M src/core/SkPicture.cpp View 1 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 14
robertphillips
http://codereview.appspot.com/6458143/diff/1/src/pipe/SkGPipeWrite.cpp File src/pipe/SkGPipeWrite.cpp (right): http://codereview.appspot.com/6458143/diff/1/src/pipe/SkGPipeWrite.cpp#newcode398 src/pipe/SkGPipeWrite.cpp:398: Leon - without this GM:complexclip_aa_layer triggers an assert on ...
12 years ago (2012-08-16 15:30:09 UTC) #1
Leon
http://codereview.appspot.com/6458143/diff/1/src/pipe/SkGPipeWrite.cpp File src/pipe/SkGPipeWrite.cpp (right): http://codereview.appspot.com/6458143/diff/1/src/pipe/SkGPipeWrite.cpp#newcode398 src/pipe/SkGPipeWrite.cpp:398: On 2012/08/16 15:30:09, robertphillips wrote: > Leon - without ...
12 years ago (2012-08-16 15:32:53 UTC) #2
Leon
http://codereview.appspot.com/6458143/diff/1/src/core/SkPath.cpp File src/core/SkPath.cpp (right): http://codereview.appspot.com/6458143/diff/1/src/core/SkPath.cpp#newcode1725 src/core/SkPath.cpp:1725: + 4 * sizeof(SkScalar); I think this means we'll ...
12 years ago (2012-08-16 15:37:43 UTC) #3
robertphillips
12 years ago (2012-08-16 15:42:30 UTC) #4
reed1
http://codereview.appspot.com/6458143/diff/1/src/core/SkPath.cpp File src/core/SkPath.cpp (right): http://codereview.appspot.com/6458143/diff/1/src/core/SkPath.cpp#newcode1736 src/core/SkPath.cpp:1736: // We call getBounds() to get the side-effect of ...
12 years ago (2012-08-16 15:43:57 UTC) #5
TomH
Note how every single test changes by +/- 15.6 ms? I think we've got another ...
12 years ago (2012-08-16 15:44:48 UTC) #6
TomH
+More guys for non-GPU quantization oddness
12 years ago (2012-08-16 15:45:17 UTC) #7
Leon
http://codereview.appspot.com/6458143/diff/1/src/core/SkPath.cpp File src/core/SkPath.cpp (right): http://codereview.appspot.com/6458143/diff/1/src/core/SkPath.cpp#newcode1778 src/core/SkPath.cpp:1778: On 2012/08/16 15:43:57, reed1 wrote: > buffer.readRect(&fBounds)? Same for ...
12 years ago (2012-08-16 16:13:32 UTC) #8
reed1
buffer.read(&fBounds, sizeof(fBounds)) ? Just seems like we should use a batchy entry-point for speed (and ...
12 years ago (2012-08-16 16:44:09 UTC) #9
robertphillips
PTAL http://codereview.appspot.com/6458143/diff/1/src/core/SkPath.cpp File src/core/SkPath.cpp (right): http://codereview.appspot.com/6458143/diff/1/src/core/SkPath.cpp#newcode1725 src/core/SkPath.cpp:1725: + 4 * sizeof(SkScalar); On 2012/08/16 15:37:44, scroggo-work ...
12 years ago (2012-08-16 17:45:38 UTC) #10
reed1
http://codereview.appspot.com/6458143/diff/3002/include/core/SkPath.h File include/core/SkPath.h (right): http://codereview.appspot.com/6458143/diff/3002/include/core/SkPath.h#newcode827 include/core/SkPath.h:827: enum SerializationOffsets { Offset or Shift? I think we ...
12 years ago (2012-08-16 18:15:44 UTC) #11
robertphillips
http://codereview.appspot.com/6458143/diff/3002/include/core/SkPath.h File include/core/SkPath.h (right): http://codereview.appspot.com/6458143/diff/3002/include/core/SkPath.h#newcode827 include/core/SkPath.h:827: enum SerializationOffsets { On 2012/08/16 18:15:44, reed1 wrote: > ...
12 years ago (2012-08-16 18:56:15 UTC) #12
reed1
lgtm w/ suggestion for using the enum for *all* of our shift values for serialization ...
12 years ago (2012-08-16 20:18:24 UTC) #13
robertphillips
12 years ago (2012-08-17 10:59:26 UTC) #14
committed as r5143

http://codereview.appspot.com/6458143/diff/7002/include/core/SkPath.h
File include/core/SkPath.h (right):

http://codereview.appspot.com/6458143/diff/7002/include/core/SkPath.h#newcode827
include/core/SkPath.h:827: enum SerializationOffsets {
On 2012/08/16 20:18:24, reed1 wrote:
> (late suggestions)
> 
> kConvexity_SerializationShift = 16,
> kFillType_SerializationShift = 8,
> kSegmentMask_SerializationShift = 0,

Done.
Sign in to reply to this message.

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