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

Issue 1441973003: Use recomputed interest rect only if it changed enough (Closed)

Created:
5 years, 1 month ago by Xianzhu
Modified:
5 years, 1 month ago
Reviewers:
chrishtr
CC:
blink-layers+watch_chromium.org, blink-reviews, blink-reviews-layout_chromium.org, blink-reviews-platform-graphics_chromium.org, Rik, chromium-reviews, danakj, dshwang, drott+blinkwatch_chromium.org, krit, eae+blinkwatch, f(malita), jbroman, jchaffraix+rendering, Justin Novosad, leviw+renderwatch, pdr+graphicswatchlist_chromium.org, pdr+renderingwatchlist_chromium.org, rwlbuis, Stephen Chennney, szager+layoutwatch_chromium.org, vmpstr+blinkwatch_chromium.org, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use recomputed interest rect only if it changed enough Previously if there is any invalidation, we'll use recomputed interest rect even if hasn't changed enough. This causes unnecessary interest rect change and inconsistent interest rects between blink and cc. Now use recomputed interest rect only if it changed enough. We also need to save previous interest rect in GraphicsLayers instead of in CompositedLayerMapping because one CompositedLayerMaping may have multiple GraphicsLayers which have different interest rects. BUG=553281 Committed: https://crrev.com/affad41e8c7d2f81f33ed31af4903b6fbdd05a73 Cr-Commit-Position: refs/heads/master@{#360116}

Patch Set 1 #

Total comments: 1

Patch Set 2 : #

Total comments: 6

Patch Set 3 : #

Total comments: 4

Patch Set 4 : Refactor interface #

Patch Set 5 : Fix release builds #

Unified diffs Side-by-side diffs Delta from patch set Stats (+182 lines, -97 lines) Patch
M third_party/WebKit/Source/core/frame/VisualViewport.h View 1 2 3 4 1 chunk +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/frame/VisualViewport.cpp View 1 2 3 4 2 chunks +7 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.h View 1 2 3 4 5 chunks +6 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp View 1 2 3 4 3 chunks +14 lines, -24 lines 0 comments Download
M third_party/WebKit/Source/core/layout/compositing/CompositedLayerMappingTest.cpp View 1 2 3 16 chunks +95 lines, -29 lines 0 comments Download
M third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.h View 1 2 3 4 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp View 1 2 3 4 2 chunks +9 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/ContentLayerDelegate.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/GraphicsLayer.h View 1 2 3 4 4 chunks +5 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp View 1 2 3 2 chunks +17 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/GraphicsLayerClient.h View 1 2 3 4 1 chunk +5 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/GraphicsLayerTest.cpp View 1 2 3 4 1 chunk +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/ImageLayerChromiumTest.cpp View 1 2 3 4 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/web/PageOverlay.h View 1 2 3 4 1 chunk +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/PageOverlay.cpp View 1 2 3 4 1 chunk +8 lines, -3 lines 0 comments Download

Messages

Total messages: 20 (6 generated)
Xianzhu
https://codereview.chromium.org/1441973003/diff/1/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp File third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp (right): https://codereview.chromium.org/1441973003/diff/1/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp#newcode2277 third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp:2277: previousInterestRect.x(), previousInterestRect.y(), previousInterestRect.width(), previousInterestRect.height()); The message indicates that there ...
5 years, 1 month ago (2015-11-14 00:36:17 UTC) #2
enne (OOO)
What is "corrupted painting"? If Blink is going to generate the recordings and the interest ...
5 years, 1 month ago (2015-11-16 19:17:43 UTC) #3
chrishtr
https://codereview.chromium.org/1441973003/diff/20001/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMappingTest.cpp File third_party/WebKit/Source/core/layout/compositing/CompositedLayerMappingTest.cpp (right): https://codereview.chromium.org/1441973003/diff/20001/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMappingTest.cpp#newcode53 third_party/WebKit/Source/core/layout/compositing/CompositedLayerMappingTest.cpp:53: do { \ Just use { } and skip ...
5 years, 1 month ago (2015-11-16 19:22:11 UTC) #4
chrishtr
On 2015/11/16 at 19:17:43, enne wrote: > What is "corrupted painting"? > > If Blink ...
5 years, 1 month ago (2015-11-16 19:23:01 UTC) #5
jbroman
https://codereview.chromium.org/1441973003/diff/20001/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMappingTest.cpp File third_party/WebKit/Source/core/layout/compositing/CompositedLayerMappingTest.cpp (right): https://codereview.chromium.org/1441973003/diff/20001/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMappingTest.cpp#newcode53 third_party/WebKit/Source/core/layout/compositing/CompositedLayerMappingTest.cpp:53: do { \ On 2015/11/16 at 19:22:11, chrishtr wrote: ...
5 years, 1 month ago (2015-11-16 19:26:00 UTC) #6
Xianzhu
Updated the CL description. This CL and the change of cc interface about interest rect ...
5 years, 1 month ago (2015-11-16 22:21:39 UTC) #8
chrishtr
https://codereview.chromium.org/1441973003/diff/40001/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp File third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp (right): https://codereview.chromium.org/1441973003/diff/40001/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp#newcode2262 third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp:2262: IntRect previousInterestRect = graphicsLayer->previousInterestRect(); If there were a method ...
5 years, 1 month ago (2015-11-16 23:29:40 UTC) #9
Xianzhu
https://codereview.chromium.org/1441973003/diff/40001/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp File third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp (right): https://codereview.chromium.org/1441973003/diff/40001/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp#newcode2262 third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp:2262: IntRect previousInterestRect = graphicsLayer->previousInterestRect(); On 2015/11/16 23:29:40, chrishtr wrote: ...
5 years, 1 month ago (2015-11-17 00:42:11 UTC) #10
chrishtr
lgtm
5 years, 1 month ago (2015-11-17 00:47:54 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1441973003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1441973003/60001
5 years, 1 month ago (2015-11-17 00:50:24 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_gn_rel on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_gn_rel/builds/30713)
5 years, 1 month ago (2015-11-17 01:07:56 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1441973003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1441973003/80001
5 years, 1 month ago (2015-11-17 17:20:18 UTC) #18
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 1 month ago (2015-11-17 18:19:20 UTC) #19
commit-bot: I haz the power
5 years, 1 month ago (2015-11-17 18:20:05 UTC) #20
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/affad41e8c7d2f81f33ed31af4903b6fbdd05a73
Cr-Commit-Position: refs/heads/master@{#360116}

Powered by Google App Engine
This is Rietveld 408576698