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

Issue 657023006: GC::drawConvexPolygon() & friends cleanup (Closed)

Created:
6 years, 2 months ago by f(malita)
Modified:
6 years, 2 months ago
CC:
blink-reviews, krit, Rik, jbroman, mkwst+moarreviews_chromium.org, danakj, pdr+graphicswatchlist_chromium.org, Stephen Chennney, rwlbuis, reed1
Project:
blink
Visibility:
Public.

Description

GC::drawConvexPolygon() & friends cleanup Assorted tweaks: * Both drawConvexPolygon() clients (ObjectPainter::drawSolidBoxSide & RenderThemeChromiumMac::paintMenuListButton) turn off stroking, so we're always in fill-only mode. Update the method to reflect this limited scope, and stop mutating the global stroke style. * Take an explicit color param to avoid changing (and leaking in the case of drawSolidBoxSide) the global fill color. (because of the above, drawSolidBoxSides no longer dirties the GC paint state in the common case => reduced pressure for committing deferred paint saves). * All drawConvexPolygon & clipConvexPolygon callers except RenderThemeChromiumMac pass in four points (quads), and per comments in setPathFromConvexPoints we don't assume convexity in this common case => update the method names to reflect this reality. R=schenney@chromium.org,senorblanco@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=183772

Patch Set 1 #

Patch Set 2 : speculative RenderThemeChromiumMac fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -45 lines) Patch
M Source/core/paint/BoxPainter.cpp View 2 chunks +3 lines, -3 lines 0 comments Download
M Source/core/paint/ObjectPainter.cpp View 2 chunks +9 lines, -10 lines 0 comments Download
M Source/core/rendering/RenderThemeChromiumMac.mm View 1 3 chunks +3 lines, -6 lines 0 comments Download
M Source/platform/graphics/GraphicsContext.h View 3 chunks +4 lines, -3 lines 0 comments Download
M Source/platform/graphics/GraphicsContext.cpp View 4 chunks +10 lines, -23 lines 0 comments Download

Messages

Total messages: 5 (1 generated)
f(malita)
6 years, 2 months ago (2014-10-15 18:20:29 UTC) #1
Stephen White
LGTM. Nice!
6 years, 2 months ago (2014-10-15 18:26:17 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/657023006/20001
6 years, 2 months ago (2014-10-15 22:51:48 UTC) #4
commit-bot: I haz the power
6 years, 2 months ago (2014-10-15 22:55:29 UTC) #5
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as 183772

Powered by Google App Engine
This is Rietveld 408576698