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

Issue 719353004: [Slimming Paint] Track clip renderers (Closed)

Created:
6 years, 1 month ago by pdr.
Modified:
6 years, 1 month ago
CC:
blink-reviews, blink-reviews-paint_chromium.org, slimming-paint-reviews_chromium.org
Project:
blink
Visibility:
Public.

Description

[Slimming Paint] Track clip renderers This patch updates the clip recorder and clip items to track a RenderLayerModelObject (a subclass of RenderObject) so invalidations are properly handled in the update algorithm just like regular DisplayItems. Clipper callsites have been updated accordingly. With this patch, the ASSERT in ViewDisplayList::findDisplayItem can now be removed. TEST=ViewDisplayListTest_UpdateClip Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=185341

Patch Set 1 #

Total comments: 7

Patch Set 2 : Update per reviewer comments #

Total comments: 2

Patch Set 3 : Address reviewer comments #

Total comments: 1

Patch Set 4 : Address reviewer comments #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+183 lines, -125 lines) Patch
M Source/core/paint/ClipRecorder.h View 1 5 chunks +5 lines, -6 lines 0 comments Download
M Source/core/paint/ClipRecorder.cpp View 1 3 chunks +7 lines, -8 lines 0 comments Download
M Source/core/paint/ClipRecorderTest.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/paint/FilterPainter.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/paint/LayerPainter.cpp View 1 2 5 chunks +5 lines, -5 lines 0 comments Download
M Source/core/paint/ViewDisplayList.cpp View 1 1 chunk +1 line, -2 lines 0 comments Download
M Source/core/paint/ViewDisplayListTest.cpp View 1 2 3 14 chunks +163 lines, -102 lines 1 comment Download

Messages

Total messages: 14 (3 generated)
pdr.
6 years, 1 month ago (2014-11-13 01:31:12 UTC) #2
chrishtr
https://codereview.chromium.org/719353004/diff/1/Source/core/paint/ClipRecorder.cpp File Source/core/paint/ClipRecorder.cpp (right): https://codereview.chromium.org/719353004/diff/1/Source/core/paint/ClipRecorder.cpp#newcode40 Source/core/paint/ClipRecorder.cpp:40: m_renderLayer->renderer()->view()->viewDisplayList().add(adoptPtr(m_clipDisplayItem)); Just use m_renderLayer->renderer() rather than passing the renderer ...
6 years, 1 month ago (2014-11-13 01:46:11 UTC) #3
leviw_travelin_and_unemployed
https://codereview.chromium.org/719353004/diff/1/Source/core/paint/ClipRecorder.cpp File Source/core/paint/ClipRecorder.cpp (right): https://codereview.chromium.org/719353004/diff/1/Source/core/paint/ClipRecorder.cpp#newcode40 Source/core/paint/ClipRecorder.cpp:40: m_renderLayer->renderer()->view()->viewDisplayList().add(adoptPtr(m_clipDisplayItem)); Remove m_renderLayer and assert we have a layer. ...
6 years, 1 month ago (2014-11-13 01:46:40 UTC) #4
pdr.
PTAL https://codereview.chromium.org/719353004/diff/1/Source/core/paint/ClipRecorder.cpp File Source/core/paint/ClipRecorder.cpp (right): https://codereview.chromium.org/719353004/diff/1/Source/core/paint/ClipRecorder.cpp#newcode40 Source/core/paint/ClipRecorder.cpp:40: m_renderLayer->renderer()->view()->viewDisplayList().add(adoptPtr(m_clipDisplayItem)); On 2014/11/13 at 01:46:11, chrishtr wrote: > ...
6 years, 1 month ago (2014-11-13 06:49:29 UTC) #5
mstensho (USE GERRIT)
https://codereview.chromium.org/719353004/diff/20001/Source/core/paint/LayerPainter.cpp File Source/core/paint/LayerPainter.cpp (right): https://codereview.chromium.org/719353004/diff/20001/Source/core/paint/LayerPainter.cpp#newcode104 Source/core/paint/LayerPainter.cpp:104: clipRecorder = adoptPtr(new ClipRecorder(m_renderLayer.renderer(), context, DisplayItem::ClipLayerParent, clipRect)); That should ...
6 years, 1 month ago (2014-11-13 08:32:16 UTC) #7
pdr.
PTAL https://codereview.chromium.org/719353004/diff/20001/Source/core/paint/LayerPainter.cpp File Source/core/paint/LayerPainter.cpp (right): https://codereview.chromium.org/719353004/diff/20001/Source/core/paint/LayerPainter.cpp#newcode104 Source/core/paint/LayerPainter.cpp:104: clipRecorder = adoptPtr(new ClipRecorder(m_renderLayer.renderer(), context, DisplayItem::ClipLayerParent, clipRect)); On ...
6 years, 1 month ago (2014-11-13 18:40:48 UTC) #8
chrishtr
https://codereview.chromium.org/719353004/diff/40001/Source/core/paint/ViewDisplayListTest.cpp File Source/core/paint/ViewDisplayListTest.cpp (right): https://codereview.chromium.org/719353004/diff/40001/Source/core/paint/ViewDisplayListTest.cpp#newcode353 Source/core/paint/ViewDisplayListTest.cpp:353: EXPECT_EQ((size_t)4, firstList.size()); This is tedious and hard to read. ...
6 years, 1 month ago (2014-11-13 18:42:47 UTC) #9
pdr.
PTAL On 2014/11/13 at 18:42:47, chrishtr wrote: > https://codereview.chromium.org/719353004/diff/40001/Source/core/paint/ViewDisplayListTest.cpp > File Source/core/paint/ViewDisplayListTest.cpp (right): > > ...
6 years, 1 month ago (2014-11-14 00:16:51 UTC) #10
chrishtr
lgtm https://codereview.chromium.org/719353004/diff/60001/Source/core/paint/ViewDisplayListTest.cpp File Source/core/paint/ViewDisplayListTest.cpp (left): https://codereview.chromium.org/719353004/diff/60001/Source/core/paint/ViewDisplayListTest.cpp#oldcode63 Source/core/paint/ViewDisplayListTest.cpp:63: // TODO(schenney): Check that the IDs are what ...
6 years, 1 month ago (2014-11-14 01:11:26 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/719353004/60001
6 years, 1 month ago (2014-11-14 01:14:20 UTC) #13
commit-bot: I haz the power
6 years, 1 month ago (2014-11-14 02:21:28 UTC) #14
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as 185341

Powered by Google App Engine
This is Rietveld 408576698