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

Issue 799563002: Use DrawingRecorder::canUseCachedDrawing (Closed)

Created:
6 years ago by Xianzhu
Modified:
6 years ago
Reviewers:
chrishtr, pdr.
CC:
blink-reviews, blink-reviews-paint_chromium.org, blink-reviews-rendering, Rik, danakj, Dominik Röttsches, krit, eae+blinkwatch, f(malita), jbroman, jchaffraix+rendering, leviw+renderwatch, pdr+graphicswatchlist_chromium.org, pdr+renderingwatchlist_chromium.org, rwlbuis, Stephen Chennney, slimming-paint-reviews_chromium.org, zoltan1
Project:
blink
Visibility:
Public.

Description

Use DrawingRecorder::canUseCachedDrawing If canUseCachedDrawing is true, the renderer is not invalidated and the cached display item should be used. The callers check the flag, and if it is true, omit all drawing operations for the renderer. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=186997

Patch Set 1 : #

Total comments: 8

Patch Set 2 : Address chrishtr's comments #

Patch Set 3 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+119 lines, -67 lines) Patch
M Source/core/paint/BlockPainter.cpp View 1 2 2 chunks +9 lines, -6 lines 0 comments Download
M Source/core/paint/BoxPainter.cpp View 1 chunk +4 lines, -2 lines 0 comments Download
M Source/core/paint/DrawingRecorderTest.cpp View 1 chunk +4 lines, -2 lines 0 comments Download
M Source/core/paint/EllipsisBoxPainter.cpp View 1 chunk +4 lines, -2 lines 0 comments Download
M Source/core/paint/FieldsetPainter.cpp View 1 chunk +4 lines, -1 line 0 comments Download
M Source/core/paint/HTMLCanvasPainter.cpp View 1 chunk +4 lines, -1 line 0 comments Download
M Source/core/paint/ImagePainter.cpp View 1 3 chunks +12 lines, -3 lines 0 comments Download
M Source/core/paint/InlineFlowBoxPainter.cpp View 2 chunks +6 lines, -3 lines 0 comments Download
M Source/core/paint/InlinePainter.cpp View 1 chunk +3 lines, -1 line 0 comments Download
M Source/core/paint/InlineTextBoxPainter.cpp View 1 chunk +5 lines, -2 lines 0 comments Download
M Source/core/paint/ListMarkerPainter.cpp View 1 chunk +4 lines, -1 line 0 comments Download
M Source/core/paint/ObjectPainter.cpp View 1 chunk +3 lines, -1 line 0 comments Download
M Source/core/paint/RenderDrawingRecorder.h View 1 1 chunk +5 lines, -3 lines 0 comments Download
M Source/core/paint/RenderDrawingRecorder.cpp View 1 2 chunks +3 lines, -6 lines 0 comments Download
M Source/core/paint/TableCellPainter.cpp View 2 chunks +7 lines, -2 lines 0 comments Download
M Source/core/paint/TablePainter.cpp View 1 chunk +3 lines, -2 lines 0 comments Download
M Source/core/paint/TableSectionPainter.cpp View 1 chunk +18 lines, -17 lines 0 comments Download
M Source/core/paint/ViewDisplayListTest.cpp View 1 chunk +3 lines, -1 line 0 comments Download
M Source/core/rendering/RenderBlockFlow.cpp View 3 chunks +9 lines, -6 lines 0 comments Download
M Source/platform/graphics/paint/DrawingRecorder.cpp View 2 chunks +9 lines, -5 lines 0 comments Download

Messages

Total messages: 20 (8 generated)
Xianzhu
https://codereview.chromium.org/799563002/diff/40001/Source/core/paint/RenderDrawingRecorder.h File Source/core/paint/RenderDrawingRecorder.h (right): https://codereview.chromium.org/799563002/diff/40001/Source/core/paint/RenderDrawingRecorder.h#newcode18 Source/core/paint/RenderDrawingRecorder.h:18: class RenderDrawingRecorder : public DrawingRecorder { This is to ...
6 years ago (2014-12-11 19:50:59 UTC) #4
chrishtr
https://codereview.chromium.org/799563002/diff/40001/Source/core/paint/BlockPainter.cpp File Source/core/paint/BlockPainter.cpp (right): https://codereview.chromium.org/799563002/diff/40001/Source/core/paint/BlockPainter.cpp#newcode92 Source/core/paint/BlockPainter.cpp:92: ScrollableAreaPainter(*m_renderBlock.layer()->scrollableArea()).paintOverflowControls(paintInfo.context, roundedIntPoint(paintOffset), paintInfo.rect, false /* paintingOverlayControls */); Why are ...
6 years ago (2014-12-11 20:01:49 UTC) #5
Xianzhu
https://codereview.chromium.org/799563002/diff/40001/Source/core/paint/BlockPainter.cpp File Source/core/paint/BlockPainter.cpp (right): https://codereview.chromium.org/799563002/diff/40001/Source/core/paint/BlockPainter.cpp#newcode92 Source/core/paint/BlockPainter.cpp:92: ScrollableAreaPainter(*m_renderBlock.layer()->scrollableArea()).paintOverflowControls(paintInfo.context, roundedIntPoint(paintOffset), paintInfo.rect, false /* paintingOverlayControls */); On 2014/12/11 ...
6 years ago (2014-12-11 20:22:16 UTC) #6
chrishtr
https://codereview.chromium.org/799563002/diff/40001/Source/core/paint/BlockPainter.cpp File Source/core/paint/BlockPainter.cpp (right): https://codereview.chromium.org/799563002/diff/40001/Source/core/paint/BlockPainter.cpp#newcode92 Source/core/paint/BlockPainter.cpp:92: ScrollableAreaPainter(*m_renderBlock.layer()->scrollableArea()).paintOverflowControls(paintInfo.context, roundedIntPoint(paintOffset), paintInfo.rect, false /* paintingOverlayControls */); On 2014/12/11 ...
6 years ago (2014-12-12 00:18:08 UTC) #7
Xianzhu
ptal. https://codereview.chromium.org/799563002/diff/40001/Source/core/paint/ImagePainter.cpp File Source/core/paint/ImagePainter.cpp (left): https://codereview.chromium.org/799563002/diff/40001/Source/core/paint/ImagePainter.cpp#oldcode94 Source/core/paint/ImagePainter.cpp:94: } else if (cWidth > 0 && cHeight ...
6 years ago (2014-12-12 00:56:49 UTC) #8
chrishtr
lgtm
6 years ago (2014-12-12 00:58:00 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/799563002/60001
6 years ago (2014-12-12 00:58:18 UTC) #11
commit-bot: I haz the power
Failed to apply patch for Source/core/paint/BlockPainter.cpp: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years ago (2014-12-12 00:58:33 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/799563002/80001
6 years ago (2014-12-12 01:05:08 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: win_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/win_blink_rel/builds/41057)
6 years ago (2014-12-12 01:33:46 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/799563002/80001
6 years ago (2014-12-12 02:45:32 UTC) #19
commit-bot: I haz the power
6 years ago (2014-12-12 04:08:39 UTC) #20
Message was sent while issue was closed.
Committed patchset #3 (id:80001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=186997

Powered by Google App Engine
This is Rietveld 408576698