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

Issue 1922713002: Add support for building GrShape from SkPath and more tests (Closed)

Created:
4 years, 7 months ago by bsalomon
Modified:
4 years, 7 months ago
CC:
reviews_skia.org
Base URL:
https://chromium.googlesource.com/skia.git@strokeinfo
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Patch Set 1 #

Patch Set 2 : more #

Patch Set 3 : rebase #

Patch Set 4 : update #

Total comments: 6

Patch Set 5 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+405 lines, -78 lines) Patch
M src/gpu/GrShape.h View 1 2 3 4 4 chunks +59 lines, -5 lines 0 comments Download
M src/gpu/GrShape.cpp View 1 2 5 chunks +40 lines, -13 lines 0 comments Download
M tests/GrShapeTest.cpp View 1 2 3 4 12 chunks +306 lines, -60 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 21 (11 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1922713002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1922713002/1
4 years, 7 months ago (2016-04-26 13:09:56 UTC) #3
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-Trybot on client.skia (JOB_FAILED, http://build.chromium.org/p/client.skia/builders/Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-Trybot/builds/8092) Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Shared-Trybot on ...
4 years, 7 months ago (2016-04-26 13:11:07 UTC) #5
bsalomon
4 years, 7 months ago (2016-04-26 21:00:36 UTC) #7
bsalomon
4 years, 7 months ago (2016-04-26 21:01:17 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1922713002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1922713002/60001
4 years, 7 months ago (2016-04-26 21:15:27 UTC) #12
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-04-26 21:28:58 UTC) #14
robertphillips
lgtm https://codereview.chromium.org/1922713002/diff/60001/src/gpu/GrShape.h File src/gpu/GrShape.h (right): https://codereview.chromium.org/1922713002/diff/60001/src/gpu/GrShape.h#newcode39 src/gpu/GrShape.h:39: explicit GrShape(const SkRect& rect) : fType(Type::kRRect), fRRect(SkRRect::MakeRect(rect)) {} ...
4 years, 7 months ago (2016-04-26 22:18:32 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1922713002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1922713002/80001
4 years, 7 months ago (2016-04-27 13:28:01 UTC) #18
commit-bot: I haz the power
Committed patchset #5 (id:80001) as https://skia.googlesource.com/skia/+/72dc51c288169f38177c71081090581c5ff415b1
4 years, 7 months ago (2016-04-27 13:46:27 UTC) #20
bsalomon
4 years, 7 months ago (2016-04-29 23:12:06 UTC) #21
Message was sent while issue was closed.
https://codereview.chromium.org/1922713002/diff/60001/src/gpu/GrShape.h
File src/gpu/GrShape.h (right):

https://codereview.chromium.org/1922713002/diff/60001/src/gpu/GrShape.h#newco...
src/gpu/GrShape.h:39: explicit GrShape(const SkRect& rect) :
fType(Type::kRRect), fRRect(SkRRect::MakeRect(rect)) {}
On 2016/04/26 22:18:32, robertphillips wrote:
> No un-styled variants ?

Done.

https://codereview.chromium.org/1922713002/diff/60001/tests/GrShapeTest.cpp
File tests/GrShapeTest.cpp (right):

https://codereview.chromium.org/1922713002/diff/60001/tests/GrShapeTest.cpp#n...
tests/GrShapeTest.cpp:436: /** This path effect should make the keys invalid
when it is applied. */
On 2016/04/26 22:18:32, robertphillips wrote:
> Could you expand on this a bit?

Done.

     // This path effect should make the keys invalid when it is applied. We
only produce a pathe
     // effect key for dash path effects. So the only way another arbitrary path
effect can produce
     // a styled result with a key is to produce a non-path shape that has a
purely geometric key.

https://codereview.chromium.org/1922713002/diff/60001/tests/GrShapeTest.cpp#n...
tests/GrShapeTest.cpp:508: const SkPath& path = testPath.fPath;
On 2016/04/26 22:18:32, robertphillips wrote:
> Theses tests all that the ?

Done.

"These tests all assume that"

Powered by Google App Engine
This is Rietveld 408576698