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

Issue 1027563002: Integrate custom paint with the DocumentLifecycle (Closed)

Created:
5 years, 9 months ago by abarth-chromium
Modified:
5 years, 9 months ago
Reviewers:
ojan
CC:
ojan, mojo-reviews_chromium.org, qsr+mojo_chromium.org
Base URL:
git@github.com:domokit/mojo.git@master
Target Ref:
refs/heads/master
Project:
mojo
Visibility:
Public.

Description

Integrate custom paint with the DocumentLifecycle Instead of running paint requests during microtasks, we run them after updating layout for the current frame. After draining all the paint requests, we then drain whatever commits are available. It's still possible that requestPaint callbacks can dirty style and layout information, so we need to clean that information after servicing the requests. Ideally we'd block these callbacks from dirtying style or layout information. R=ojan@chromium.org Committed: https://chromium.googlesource.com/external/mojo/+/7b2dab6dffc725f87491f045933a58a58e467c84

Patch Set 1 #

Total comments: 3

Patch Set 2 : nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+162 lines, -61 lines) Patch
M sky/engine/core/core.gni View 1 chunk +2 lines, -0 lines 0 comments Download
M sky/engine/core/dom/Element.cpp View 3 chunks +3 lines, -30 lines 0 comments Download
M sky/engine/core/page/PageAnimator.cpp View 1 2 chunks +10 lines, -9 lines 0 comments Download
M sky/engine/core/painting/PaintingContext.h View 3 chunks +4 lines, -15 lines 0 comments Download
M sky/engine/core/painting/PaintingContext.cpp View 2 chunks +14 lines, -7 lines 0 comments Download
A sky/engine/core/painting/PaintingTasks.h View 1 chunk +31 lines, -0 lines 0 comments Download
A sky/engine/core/painting/PaintingTasks.cpp View 1 1 chunk +98 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
abarth-chromium
5 years, 9 months ago (2015-03-20 00:06:53 UTC) #1
ojan
lgtm https://codereview.chromium.org/1027563002/diff/1/sky/engine/core/page/PageAnimator.cpp File sky/engine/core/page/PageAnimator.cpp (right): https://codereview.chromium.org/1027563002/diff/1/sky/engine/core/page/PageAnimator.cpp#newcode56 sky/engine/core/page/PageAnimator.cpp:56: view->updateLayoutAndStyleForPainting(); Is this call needed?
5 years, 9 months ago (2015-03-20 02:35:14 UTC) #2
abarth-chromium
https://codereview.chromium.org/1027563002/diff/1/sky/engine/core/page/PageAnimator.cpp File sky/engine/core/page/PageAnimator.cpp (right): https://codereview.chromium.org/1027563002/diff/1/sky/engine/core/page/PageAnimator.cpp#newcode56 sky/engine/core/page/PageAnimator.cpp:56: view->updateLayoutAndStyleForPainting(); On 2015/03/20 at 02:35:14, ojan wrote: > Is ...
5 years, 9 months ago (2015-03-20 02:54:52 UTC) #3
ojan
https://codereview.chromium.org/1027563002/diff/1/sky/engine/core/page/PageAnimator.cpp File sky/engine/core/page/PageAnimator.cpp (right): https://codereview.chromium.org/1027563002/diff/1/sky/engine/core/page/PageAnimator.cpp#newcode56 sky/engine/core/page/PageAnimator.cpp:56: view->updateLayoutAndStyleForPainting(); On 2015/03/20 at 02:54:51, abarth wrote: > On ...
5 years, 9 months ago (2015-03-20 03:38:02 UTC) #4
abarth-chromium
On 2015/03/20 at 03:38:02, ojan wrote: > Don't know if this is intentional, but if ...
5 years, 9 months ago (2015-03-20 04:34:05 UTC) #5
abarth-chromium
5 years, 9 months ago (2015-03-20 04:58:20 UTC) #6
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
7b2dab6dffc725f87491f045933a58a58e467c84 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698