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

Issue 2793993003: Make GeometryMapper fully static (Closed)

Created:
3 years, 8 months ago by chrishtr
Modified:
3 years, 8 months ago
Reviewers:
haraken, keishi, pdr., Xianzhu, tasak
CC:
ajuma+watch_chromium.org, blink-reviews, blink-reviews-frames_chromium.org, blink-reviews-layout_chromium.org, blink-reviews-paint_chromium.org, blink-reviews-platform-graphics_chromium.org, Rik, chromium-reviews, dshwang, drott+blinkwatch_chromium.org, krit, eae+blinkwatch, fmalita+watch_chromium.org, jbroman, jchaffraix+rendering, Justin Novosad, kinuko+watch, leviw+renderwatch, pdr+graphicswatchlist_chromium.org, pdr+renderingwatchlist_chromium.org, rwlbuis, Stephen Chennney, szager+layoutwatch_chromium.org, zoltan1
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Make GeometryMapper fully static. Now that the cache for GeometryMapper is not stored on that object, we don't really need to allocate GeometryMapper objects at all. This change lets us avoid the cost and plumbing complexity of such objects. CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Review-Url: https://codereview.chromium.org/2793993003 Cr-Commit-Position: refs/heads/master@{#461510} Committed: https://chromium.googlesource.com/chromium/src/+/0be71969c80ff018be92afb6bba2076bf3c1f55f

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+158 lines, -222 lines) Patch
M third_party/WebKit/Source/core/frame/FrameView.h View 3 chunks +0 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/frame/FrameView.cpp View 3 chunks +2 lines, -16 lines 0 comments Download
M third_party/WebKit/Source/core/layout/PaintInvalidationState.cpp View 1 chunk +1 line, -7 lines 0 comments Download
M third_party/WebKit/Source/core/layout/VisualRectMappingTest.cpp View 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/paint/PaintInvalidator.h View 4 chunks +3 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintInvalidator.cpp View 3 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintLayer.cpp View 1 chunk +2 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintLayerClipper.h View 4 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintLayerClipper.cpp View 18 chunks +21 lines, -20 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilderTest.cpp View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PrePaintTreeWalk.h View 3 chunks +2 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PrePaintTreeWalk.cpp View 3 chunks +7 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositor.h View 6 chunks +6 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositor.cpp View 12 chunks +26 lines, -35 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositorTest.cpp View 11 chunks +12 lines, -27 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/compositing/PaintChunksToCcLayer.h View 2 chunks +1 line, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/compositing/PaintChunksToCcLayer.cpp View 8 chunks +15 lines, -17 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/GeometryMapper.h View 8 chunks +26 lines, -33 lines 2 comments Download
M third_party/WebKit/Source/platform/graphics/paint/GeometryMapper.cpp View 7 chunks +24 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/GeometryMapperTest.cpp View 1 chunk +0 lines, -3 lines 1 comment Download
M third_party/WebKit/Source/platform/graphics/paint/PaintArtifact.cpp View 2 chunks +1 line, -3 lines 0 comments Download

Messages

Total messages: 19 (10 generated)
chrishtr
3 years, 8 months ago (2017-04-03 17:42:22 UTC) #4
Xianzhu
lgtm
3 years, 8 months ago (2017-04-03 17:47:48 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2793993003/1
3 years, 8 months ago (2017-04-03 17:48:36 UTC) #7
commit-bot: I haz the power
Committed patchset #1 (id:1) as https://chromium.googlesource.com/chromium/src/+/0be71969c80ff018be92afb6bba2076bf3c1f55f
3 years, 8 months ago (2017-04-03 19:56:19 UTC) #11
haraken
https://codereview.chromium.org/2793993003/diff/1/third_party/WebKit/Source/platform/graphics/paint/GeometryMapper.h File third_party/WebKit/Source/platform/graphics/paint/GeometryMapper.h (right): https://codereview.chromium.org/2793993003/diff/1/third_party/WebKit/Source/platform/graphics/paint/GeometryMapper.h#newcode31 third_party/WebKit/Source/platform/graphics/paint/GeometryMapper.h:31: USING_FAST_MALLOC(GeometryMapper); You can remove this and instead use STATIC_ONLY ...
3 years, 8 months ago (2017-04-03 23:55:27 UTC) #13
chrishtr
https://codereview.chromium.org/2793993003/diff/1/third_party/WebKit/Source/platform/graphics/paint/GeometryMapper.h File third_party/WebKit/Source/platform/graphics/paint/GeometryMapper.h (right): https://codereview.chromium.org/2793993003/diff/1/third_party/WebKit/Source/platform/graphics/paint/GeometryMapper.h#newcode31 third_party/WebKit/Source/platform/graphics/paint/GeometryMapper.h:31: USING_FAST_MALLOC(GeometryMapper); On 2017/04/03 at 23:55:27, haraken wrote: > You ...
3 years, 8 months ago (2017-04-03 23:57:17 UTC) #14
haraken
+keishi@: Would it be possible to improve the GC plugin to detect a static-member-only class ...
3 years, 8 months ago (2017-04-04 00:00:33 UTC) #16
Timothy Loh
A revert of this CL (patchset #1 id:1) has been created in https://codereview.chromium.org/2798513002/ by timloh@chromium.org. ...
3 years, 8 months ago (2017-04-04 03:25:00 UTC) #17
tasak
3 years, 8 months ago (2017-04-04 07:40:26 UTC) #19
Message was sent while issue was closed.
https://codereview.chromium.org/2793993003/diff/1/third_party/WebKit/Source/p...
File third_party/WebKit/Source/platform/graphics/paint/GeometryMapperTest.cpp
(left):

https://codereview.chromium.org/2793993003/diff/1/third_party/WebKit/Source/p...
third_party/WebKit/Source/platform/graphics/paint/GeometryMapperTest.cpp:78:
void TearDown() override { geometryMapper.reset(); }
I think, we still need this? Because this test uses geometryMapper (c.f.
CHECK_MAPPINGS).

Powered by Google App Engine
This is Rietveld 408576698