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

Issue 1822723003: Add initial implementation of GrShape and GrStyle classes and tests (Closed)

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

Description

Add initial implementation of GrShape and GrStyle classes and tests The initial intent is to use GrShape to simplify the mask blur code paths. However, I also want to use this to explore a more unified drawing code flow for different geometry types. The goal is to have a single representation for geometries+styling that attempts to always keep the geometry in the simplest form (e.g. preferring rrects to paths). It also allows for converting styling information into modified geometry and for computing consistent keys. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1822723003 Committed: https://skia.googlesource.com/skia/+/c885dacfe4625af8b0e2e5c6e8a8ae8dc2d620a8 Committed: https://skia.googlesource.com/skia/+/824e58fc6df8fc149d9675f577f7deeaba698b09 Committed: https://skia.googlesource.com/skia/+/47cc7691181e3c9d74f7d66d5bc3c0b7ac7855d5

Patch Set 1 #

Patch Set 2 : cleanup #

Patch Set 3 : more cleanup #

Total comments: 38

Patch Set 4 : Address comments #

Patch Set 5 : Attempt to address windows complaint with SkTLazy #

Patch Set 6 : Give up on union #

Patch Set 7 : more post-union cleanup #

Patch Set 8 : rm extra test_basic call #

Patch Set 9 : Fix MSVC error for no message to SkFail #

Patch Set 10 : Attempt to satisfy MSVC errors #

Patch Set 11 : Attempt to fix VS2013 build #

Patch Set 12 : Fix dumb SkDEBUGCODE mistake #

Unified diffs Side-by-side diffs Delta from patch set Stats (+859 lines, -0 lines) Patch
M gyp/gpu.gypi View 1 chunk +4 lines, -0 lines 0 comments Download
A src/gpu/GrShape.h View 1 2 3 4 5 6 1 chunk +160 lines, -0 lines 0 comments Download
A src/gpu/GrShape.cpp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +254 lines, -0 lines 0 comments Download
A src/gpu/GrStyle.h View 1 2 3 4 1 chunk +92 lines, -0 lines 0 comments Download
A src/gpu/GrStyle.cpp View 1 chunk +33 lines, -0 lines 0 comments Download
A tests/GrShapeTest.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +316 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 49 (27 generated)
bsalomon
This is just a starting point. There is much more functionality and testing remaining to ...
4 years, 8 months ago (2016-04-22 21:09:29 UTC) #9
robertphillips
Not quite done yet ... https://codereview.chromium.org/1822723003/diff/120001/src/gpu/GrShape.cpp File src/gpu/GrShape.cpp (right): https://codereview.chromium.org/1822723003/diff/120001/src/gpu/GrShape.cpp#newcode124 src/gpu/GrShape.cpp:124: memcpy(&key[i], intervals, intervalByteCnt); I'm ...
4 years, 8 months ago (2016-04-24 23:00:45 UTC) #10
robertphillips
lgtm https://codereview.chromium.org/1822723003/diff/120001/src/gpu/GrShape.cpp File src/gpu/GrShape.cpp (right): https://codereview.chromium.org/1822723003/diff/120001/src/gpu/GrShape.cpp#newcode167 src/gpu/GrShape.cpp:167: // The full key is structured as geo,path_effect,stroke. ...
4 years, 8 months ago (2016-04-25 12:07:06 UTC) #11
bsalomon
https://codereview.chromium.org/1822723003/diff/120001/src/gpu/GrShape.cpp File src/gpu/GrShape.cpp (right): https://codereview.chromium.org/1822723003/diff/120001/src/gpu/GrShape.cpp#newcode124 src/gpu/GrShape.cpp:124: memcpy(&key[i], intervals, intervalByteCnt); On 2016/04/24 23:00:44, robertphillips wrote: > ...
4 years, 8 months ago (2016-04-25 13:32:27 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1822723003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1822723003/140001
4 years, 8 months ago (2016-04-25 13:32:38 UTC) #14
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Build-Win-MSVC-x86-Debug-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Win-MSVC-x86-Debug-Trybot/builds/8072)
4 years, 8 months ago (2016-04-25 13:35:09 UTC) #16
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1822723003/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1822723003/160001
4 years, 8 months ago (2016-04-25 13:48:08 UTC) #18
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Build-Win-MSVC-x86_64-Debug-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Win-MSVC-x86_64-Debug-Trybot/builds/8118)
4 years, 8 months ago (2016-04-25 13:51:23 UTC) #20
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1822723003/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1822723003/200001
4 years, 8 months ago (2016-04-25 13:56:38 UTC) #22
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Build-Win-MSVC-x86-Debug-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Win-MSVC-x86-Debug-Trybot/builds/8076) Build-Win-MSVC-x86_64-Debug-Trybot on ...
4 years, 8 months ago (2016-04-25 13:59:30 UTC) #24
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1822723003/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1822723003/240001
4 years, 8 months ago (2016-04-25 14:03:36 UTC) #26
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Build-Win-MSVC-x86-Debug-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Win-MSVC-x86-Debug-Trybot/builds/8077)
4 years, 8 months ago (2016-04-25 14:07:46 UTC) #28
robertphillips
https://codereview.chromium.org/1822723003/diff/120001/src/gpu/GrStyle.h File src/gpu/GrStyle.h (right): https://codereview.chromium.org/1822723003/diff/120001/src/gpu/GrStyle.h#newcode36 src/gpu/GrStyle.h:36: On 2016/04/25 13:32:27, bsalomon wrote: > On 2016/04/24 23:00:44, ...
4 years, 8 months ago (2016-04-25 14:13:44 UTC) #29
robertphillips
https://codereview.chromium.org/1822723003/diff/120001/src/gpu/GrStyle.h File src/gpu/GrStyle.h (right): https://codereview.chromium.org/1822723003/diff/120001/src/gpu/GrStyle.h#newcode36 src/gpu/GrStyle.h:36: On 2016/04/25 14:13:44, robertphillips wrote: > On 2016/04/25 13:32:27, ...
4 years, 8 months ago (2016-04-25 14:15:31 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1822723003/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1822723003/260001
4 years, 8 months ago (2016-04-25 20:22:13 UTC) #33
commit-bot: I haz the power
Committed patchset #10 (id:260001) as https://skia.googlesource.com/skia/+/c885dacfe4625af8b0e2e5c6e8a8ae8dc2d620a8
4 years, 8 months ago (2016-04-25 20:37:26 UTC) #35
robertphillips
A revert of this CL (patchset #10 id:260001) has been created in https://codereview.chromium.org/1918203002/ by robertphillips@google.com. ...
4 years, 8 months ago (2016-04-26 12:07:13 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1822723003/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1822723003/280001
4 years, 8 months ago (2016-04-26 13:40:49 UTC) #40
commit-bot: I haz the power
Committed patchset #11 (id:280001) as https://skia.googlesource.com/skia/+/824e58fc6df8fc149d9675f577f7deeaba698b09
4 years, 8 months ago (2016-04-26 13:53:49 UTC) #42
bsalomon
A revert of this CL (patchset #11 id:280001) has been created in https://codereview.chromium.org/1919243002/ by bsalomon@google.com. ...
4 years, 8 months ago (2016-04-26 15:41:37 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1822723003/300001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1822723003/300001
4 years, 8 months ago (2016-04-26 19:43:02 UTC) #47
commit-bot: I haz the power
4 years, 8 months ago (2016-04-26 19:56:03 UTC) #49
Message was sent while issue was closed.
Committed patchset #12 (id:300001) as
https://skia.googlesource.com/skia/+/47cc7691181e3c9d74f7d66d5bc3c0b7ac7855d5

Powered by Google App Engine
This is Rietveld 408576698