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

Issue 24350006: Move bound and isFinite into pathref (Closed)

Created:
7 years, 3 months ago by robertphillips
Modified:
7 years, 2 months ago
Reviewers:
bsalomon, djsollen, reed1
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

This CL moves members from SkPath into SkPathRef to make copying cheaper. This is mainly in support of: Stateful PathRenderer implementation https://codereview.chromium.org/23926019/

Patch Set 1 #

Patch Set 2 : cleanup #

Patch Set 3 : more cleanup #

Patch Set 4 : more cleanup #

Patch Set 5 : even more cleanup #

Patch Set 6 : yet more cleanup #

Total comments: 2

Patch Set 7 : Move SkPathRef.h to include\core to enable inlining #

Patch Set 8 : Add missing file #

Total comments: 4

Patch Set 9 : Added TODO #

Unified diffs Side-by-side diffs Delta from patch set Stats (+346 lines, -774 lines) Patch
M gyp/core.gypi View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -1 line 0 comments Download
M include/core/SkPath.h View 1 2 3 4 5 6 7 8 9 chunks +37 lines, -22 lines 0 comments Download
A + include/core/SkPathRef.h View 1 2 3 4 5 6 7 8 13 chunks +142 lines, -94 lines 0 comments Download
M include/core/SkPicture.h View 1 2 3 4 5 6 7 8 1 chunk +6 lines, -2 lines 0 comments Download
M src/core/SkPath.cpp View 1 2 3 4 5 6 7 8 13 chunks +27 lines, -103 lines 0 comments Download
M src/core/SkPathRef.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -551 lines 0 comments Download
A src/core/SkPathRef.cpp View 1 2 3 4 5 6 7 1 chunk +127 lines, -0 lines 0 comments Download
M src/core/SkPicture.cpp View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
robertphillips
I think one of Brian or Mike needs to look at this. Derek - I ...
7 years, 3 months ago (2013-09-23 17:02:42 UTC) #1
reed1
The old code took pains to make both of these inlineable and trivial in the ...
7 years, 3 months ago (2013-09-23 17:41:30 UTC) #2
bsalomon
https://codereview.chromium.org/24350006/diff/10001/include/core/SkPath.h File include/core/SkPath.h (right): https://codereview.chromium.org/24350006/diff/10001/include/core/SkPath.h#newcode1000 include/core/SkPath.h:1000: void setBounds(const SkRect& rect); Eek... I didn't realize we ...
7 years, 3 months ago (2013-09-23 18:39:39 UTC) #3
robertphillips
PTAL at patches 7/8. They move SkPathRef.h to include\core to enable inlining. The main ugliness ...
7 years, 3 months ago (2013-09-23 18:56:42 UTC) #4
bsalomon
On 2013/09/23 18:56:42, robertphillips wrote: > PTAL at patches 7/8. They move SkPathRef.h to include\core ...
7 years, 3 months ago (2013-09-24 17:22:15 UTC) #5
reed1
lgtm https://codereview.chromium.org/24350006/diff/18001/include/core/SkPath.h File include/core/SkPath.h (right): https://codereview.chromium.org/24350006/diff/18001/include/core/SkPath.h#newcode15 include/core/SkPath.h:15: #include "SkPathRef.h" // TODO: refactor this header to ...
7 years, 3 months ago (2013-09-24 17:32:17 UTC) #6
robertphillips
7 years, 2 months ago (2013-09-26 12:18:44 UTC) #7
Message was sent while issue was closed.
committed as r11467

https://codereview.chromium.org/24350006/diff/18001/include/core/SkPath.h
File include/core/SkPath.h (right):

https://codereview.chromium.org/24350006/diff/18001/include/core/SkPath.h#new...
include/core/SkPath.h:15: #include "SkPathRef.h"
On 2013/09/24 17:32:17, reed1 wrote:
> // TODO: refactor this header to move more the impl into a .cpp

Done - although I put the TODO in SkPathRef.h not SkPath.h

https://codereview.chromium.org/24350006/diff/18001/include/core/SkPathRef.h
File include/core/SkPathRef.h (right):

https://codereview.chromium.org/24350006/diff/18001/include/core/SkPathRef.h#...
include/core/SkPathRef.h:17: #include <stddef.h> // ptrdiff_t
I don't think so - it isn't all that widely used in Skia yet.

Powered by Google App Engine
This is Rietveld 408576698