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

Issue 1457073002: [Reland] Fix NVPR assert for equivalent ovals (Closed)

Created:
5 years, 1 month ago by f(malita)
Modified:
5 years, 1 month ago
CC:
reviews_skia.org, reed1
Base URL:
https://chromium.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

[Reland] Fix NVPR assert for equivalent ovals For oval paths, GrPath ignores the point order and only uses the bounds when building its key. This is problematic because 1) point order is important when dashing 2) GrStencilAndCoverPathRenderer asserts that the lookup SkPath is equal to the cached SkPath - which is not the case for ovals with different directions/different point order. With this CL we no longer use the reduced oval key when dashing, and instead fall through to the more general path cases. The assert is adjusted to accommodate "equivalent" ovals (when not dashing). Also re-enabled & updated the GpuDrawPath unit test (disabled in https://codereview.chromium.org/1456463003/, presumably due to the use of uninitialized SkRects). R=bsalomon@google.com,robertphillips@google.com,cdalton@nvidia.com Committed: https://skia.googlesource.com/skia/+/fbe1c110acf218a7b2b5d378a752dc1845816d6e

Patch Set 1 #

Patch Set 2 : don't enable GpuDrawPath #

Unified diffs Side-by-side diffs Delta from patch set Stats (+72 lines, -12 lines) Patch
M src/gpu/GrPath.h View 1 chunk +1 line, -3 lines 0 comments Download
M src/gpu/GrPath.cpp View 2 chunks +19 lines, -1 line 0 comments Download
M tests/GpuDrawPathTest.cpp View 1 4 chunks +52 lines, -8 lines 0 comments Download

Messages

Total messages: 17 (7 generated)
f(malita)
5 years, 1 month ago (2015-11-18 21:10:29 UTC) #2
bsalomon
lgtm
5 years, 1 month ago (2015-11-18 21:15:05 UTC) #3
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1457073002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1457073002/1
5 years, 1 month ago (2015-11-18 21:17:42 UTC) #5
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 1 month ago (2015-11-18 21:36:24 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1457073002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1457073002/1
5 years, 1 month ago (2015-11-18 22:06:25 UTC) #9
commit-bot: I haz the power
Committed patchset #1 (id:1) as https://skia.googlesource.com/skia/+/f9b1577d763988ebc043ddabf80674f71571ecff
5 years, 1 month ago (2015-11-18 22:07:15 UTC) #10
stephana
A revert of this CL (patchset #1 id:1) has been created in https://codereview.chromium.org/1461913002/ by stephana@google.com. ...
5 years, 1 month ago (2015-11-19 02:35:44 UTC) #11
f(malita)
On 2015/11/19 02:35:44, stephana wrote: > A revert of this CL (patchset #1 id:1) has ...
5 years, 1 month ago (2015-11-19 04:01:02 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1457073002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1457073002/20001
5 years, 1 month ago (2015-11-19 04:01:12 UTC) #16
commit-bot: I haz the power
5 years, 1 month ago (2015-11-19 04:13:02 UTC) #17
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://skia.googlesource.com/skia/+/fbe1c110acf218a7b2b5d378a752dc1845816d6e

Powered by Google App Engine
This is Rietveld 408576698