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

Issue 1532923002: Add a Path::contains() version that use the Path's winding rule (Closed)

Created:
5 years ago by fs
Modified:
5 years ago
CC:
ajuma+watch-canvas_chromium.org, darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, blink-reviews-layout_chromium.org, blink-reviews-platform-graphics_chromium.org, blink-reviews-style_chromium.org, Rik, chromium-reviews, danakj, dglazkov+blink, dshwang, drott+blinkwatch_chromium.org, krit, eae+blinkwatch, f(malita), jbroman, jchaffraix+rendering, leviw+renderwatch, pdr+graphicswatchlist_chromium.org, pdr+renderingwatchlist_chromium.org, rwlbuis, Stephen Chennney, szager+layoutwatch_chromium.org, vmpstr+blinkwatch_chromium.org, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add a Path::contains() version that use the Path's winding rule In preparation for using SkPath::contains() for Path::contains(), add an overload that uses the winding rule (fill type) from the SkPath, since that the version which will require less impedance matching with the Skia API. Convert "obvious" current users to the new overload, and remove some unused winding rule accessors. Attempt to clean up some related includes while in the general area. BUG=523102 Committed: https://crrev.com/c1e1dee348b45db5bc8e598d7c942a932594570c Cr-Commit-Position: refs/heads/master@{#366080}

Patch Set 1 #

Patch Set 2 : Rebase. #

Total comments: 2

Patch Set 3 : Forward declare Path in GC.h #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -20 lines) Patch
M third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/ClipPathOperation.h View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintLayer.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/style/SVGComputedStyle.h View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/canvas2d/HitRegion.h View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/GraphicsContext.h View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/GraphicsContextState.h View 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/GraphicsContextState.cpp View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/GraphicsContextTest.cpp View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/Path.h View 2 chunks +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/Path.cpp View 1 chunk +6 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/skia/SkiaUtils.h View 1 chunk +0 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/skia/SkiaUtils.cpp View 1 chunk +2 lines, -4 lines 0 comments Download

Messages

Total messages: 13 (5 generated)
fs
5 years ago (2015-12-17 19:28:09 UTC) #3
pdr.
On 2015/12/17 at 19:28:09, fs wrote: > LGTM
5 years ago (2015-12-17 19:30:18 UTC) #4
f(malita)
lgtm https://codereview.chromium.org/1532923002/diff/20001/third_party/WebKit/Source/platform/graphics/GraphicsContext.h File third_party/WebKit/Source/platform/graphics/GraphicsContext.h (right): https://codereview.chromium.org/1532923002/diff/20001/third_party/WebKit/Source/platform/graphics/GraphicsContext.h#newcode39 third_party/WebKit/Source/platform/graphics/GraphicsContext.h:39: #include "platform/graphics/Path.h" nit: would a fw-decl not work ...
5 years ago (2015-12-17 20:00:06 UTC) #5
Justin Novosad
lgtm Thanks for the cleanup.
5 years ago (2015-12-17 22:23:31 UTC) #6
fs
https://codereview.chromium.org/1532923002/diff/20001/third_party/WebKit/Source/platform/graphics/GraphicsContext.h File third_party/WebKit/Source/platform/graphics/GraphicsContext.h (right): https://codereview.chromium.org/1532923002/diff/20001/third_party/WebKit/Source/platform/graphics/GraphicsContext.h#newcode39 third_party/WebKit/Source/platform/graphics/GraphicsContext.h:39: #include "platform/graphics/Path.h" On 2015/12/17 at 20:00:06, f(malita) wrote: > ...
5 years ago (2015-12-18 09:41:05 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1532923002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1532923002/40001
5 years ago (2015-12-18 10:20:50 UTC) #10
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years ago (2015-12-18 11:59:38 UTC) #11
commit-bot: I haz the power
5 years ago (2015-12-18 12:00:32 UTC) #13
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/c1e1dee348b45db5bc8e598d7c942a932594570c
Cr-Commit-Position: refs/heads/master@{#366080}

Powered by Google App Engine
This is Rietveld 408576698