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

Issue 1052873003: Explicitly use SkPaint(s) in SVGShapePainter (Closed)

Created:
5 years, 8 months ago by fs
Modified:
5 years, 8 months ago
CC:
blink-reviews, dshwang, eae+blinkwatch, fs, kouhei+svg_chromium.org, rwlbuis, krit, Justin Novosad, danakj, Rik, jchaffraix+rendering, blink-reviews-paint_chromium.org, gyuyoung2, pdr+svgwatchlist_chromium.org, zoltan1, jbroman, Dominik Röttsches, pdr+graphicswatchlist_chromium.org, blink-reviews-rendering, pdr+renderingwatchlist_chromium.org, leviw+renderwatch, slimming-paint-reviews_chromium.org, ed+blinkwatch_opera.com, f(malita), Stephen Chennney
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Explicitly use SkPaint(s) in SVGShapePainter This replaces use of SVGLayoutSupport::updateGraphicsContext to update the GC-state with code that fills in and uses SkPaints explicitly, and hence avoids saving GC-state (except for CTM updates). As a side-effect, the code to handle stroke of zero-length is simplified significantly. BUG=424655 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=193272

Patch Set 1 #

Total comments: 17

Patch Set 2 : Use GC::draw*; transfer->apply. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+125 lines, -55 lines) Patch
M Source/core/layout/svg/LayoutSVGResourcePaintServer.h View 1 2 chunks +3 lines, -0 lines 0 comments Download
M Source/core/layout/svg/LayoutSVGResourcePaintServer.cpp View 1 2 chunks +13 lines, -0 lines 0 comments Download
M Source/core/paint/SVGShapePainter.h View 1 2 chunks +7 lines, -5 lines 0 comments Download
M Source/core/paint/SVGShapePainter.cpp View 1 6 chunks +102 lines, -50 lines 0 comments Download

Messages

Total messages: 11 (2 generated)
fs
Easter special! https://codereview.chromium.org/1052873003/diff/1/Source/platform/graphics/GraphicsContext.h File Source/platform/graphics/GraphicsContext.h (right): https://codereview.chromium.org/1052873003/diff/1/Source/platform/graphics/GraphicsContext.h#newcode199 Source/platform/graphics/GraphicsContext.h:199: void fillPath(const Path&, const SkPaint* = nullptr); ...
5 years, 8 months ago (2015-04-02 15:01:47 UTC) #2
f(malita)
w00t! Initial GC API comments. https://codereview.chromium.org/1052873003/diff/1/Source/platform/graphics/GraphicsContext.h File Source/platform/graphics/GraphicsContext.h (right): https://codereview.chromium.org/1052873003/diff/1/Source/platform/graphics/GraphicsContext.h#newcode199 Source/platform/graphics/GraphicsContext.h:199: void fillPath(const Path&, const ...
5 years, 8 months ago (2015-04-02 15:23:01 UTC) #3
f(malita)
https://codereview.chromium.org/1052873003/diff/1/Source/platform/graphics/GraphicsContext.h File Source/platform/graphics/GraphicsContext.h (right): https://codereview.chromium.org/1052873003/diff/1/Source/platform/graphics/GraphicsContext.h#newcode214 Source/platform/graphics/GraphicsContext.h:214: void strokeRect(const FloatRect&, const SkPaint&); Same comment for fill/strokeRect ...
5 years, 8 months ago (2015-04-02 15:31:58 UTC) #4
f(malita)
moar piecemeal review https://codereview.chromium.org/1052873003/diff/1/Source/core/layout/svg/LayoutSVGResourcePaintServer.cpp File Source/core/layout/svg/LayoutSVGResourcePaintServer.cpp (right): https://codereview.chromium.org/1052873003/diff/1/Source/core/layout/svg/LayoutSVGResourcePaintServer.cpp#newcode52 Source/core/layout/svg/LayoutSVGResourcePaintServer.cpp:52: void SVGPaintServer::transferToSkPaint(SkPaint& paint, float paintAlpha) Naming ...
5 years, 8 months ago (2015-04-02 15:51:12 UTC) #5
fs
https://codereview.chromium.org/1052873003/diff/1/Source/core/paint/SVGShapePainter.cpp File Source/core/paint/SVGShapePainter.cpp (right): https://codereview.chromium.org/1052873003/diff/1/Source/core/paint/SVGShapePainter.cpp#newcode57 Source/core/paint/SVGShapePainter.cpp:57: paintServer.transferToSkPaint(paint, paintAlpha); On 2015/04/02 15:51:12, f(malita) wrote: > Would ...
5 years, 8 months ago (2015-04-03 18:19:44 UTC) #6
fs
https://codereview.chromium.org/1052873003/diff/1/Source/core/layout/svg/LayoutSVGResourcePaintServer.cpp File Source/core/layout/svg/LayoutSVGResourcePaintServer.cpp (right): https://codereview.chromium.org/1052873003/diff/1/Source/core/layout/svg/LayoutSVGResourcePaintServer.cpp#newcode52 Source/core/layout/svg/LayoutSVGResourcePaintServer.cpp:52: void SVGPaintServer::transferToSkPaint(SkPaint& paint, float paintAlpha) On 2015/04/02 15:51:12, f(malita) ...
5 years, 8 months ago (2015-04-07 12:03:56 UTC) #7
f(malita)
LGTM https://codereview.chromium.org/1052873003/diff/1/Source/core/paint/SVGShapePainter.cpp File Source/core/paint/SVGShapePainter.cpp (right): https://codereview.chromium.org/1052873003/diff/1/Source/core/paint/SVGShapePainter.cpp#newcode69 Source/core/paint/SVGShapePainter.cpp:69: paint.setColorFilter(paintInfo.context->colorFilter()); On 2015/04/03 18:19:44, fs wrote: > On ...
5 years, 8 months ago (2015-04-07 12:44:30 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1052873003/20001
5 years, 8 months ago (2015-04-07 14:55:07 UTC) #10
commit-bot: I haz the power
5 years, 8 months ago (2015-04-07 14:59:04 UTC) #11
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=193272

Powered by Google App Engine
This is Rietveld 408576698