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

Issue 982913003: Web Animations: Add a fast path for LengthStyleIntepolation application (Closed)

Created:
5 years, 9 months ago by alancutter (OOO until 2018)
Modified:
5 years, 9 months ago
CC:
dstockwell, darktears, blink-reviews, blink-reviews-animation_chromium.org, blink-reviews-style_chromium.org, Eric Willigers, Mike Lawther (Google), rjwright, shans, Steve Block, Timothy Loh
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Web Animations: Add a fast path for LengthStyleIntepolation application This change bypasses creating a CSSValue when applying length animations where only pixels or percentage values are interpolating and the LayoutStyle has a Length setter for the animated property. This is a performance change, there should be no behavioural changes. Avoiding creating a CSSValue at application time improves the css_value_type_length_simple?api=web_animations benchmark by ~4% bringing it to the same level as css_value_type_length_simple?api=css_animations. Tested on a Nexus 7 device. BUG=309981 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=191521

Patch Set 1 #

Patch Set 2 : g cl try #

Total comments: 10

Patch Set 3 : Review changes. #

Total comments: 2

Patch Set 4 : Rebase #

Patch Set 5 : Review changes #

Patch Set 6 : Make compile work. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+146 lines, -5 lines) Patch
M Source/core/animation/LengthStyleInterpolation.h View 2 chunks +14 lines, -4 lines 0 comments Download
M Source/core/animation/LengthStyleInterpolation.cpp View 1 2 3 4 5 4 chunks +132 lines, -1 line 0 comments Download

Messages

Total messages: 19 (7 generated)
alancutter (OOO until 2018)
5 years, 9 months ago (2015-03-06 01:51:34 UTC) #2
Eric Willigers
lgtm s/there should be behavioural changes./there should not be behavioural changes./ https://codereview.chromium.org/982913003/diff/20001/Source/core/animation/LengthStyleInterpolation.cpp File Source/core/animation/LengthStyleInterpolation.cpp (right): ...
5 years, 9 months ago (2015-03-06 02:22:08 UTC) #4
dstockwell
https://codereview.chromium.org/982913003/diff/20001/Source/core/animation/LengthStyleInterpolation.cpp File Source/core/animation/LengthStyleInterpolation.cpp (right): https://codereview.chromium.org/982913003/diff/20001/Source/core/animation/LengthStyleInterpolation.cpp#newcode121 Source/core/animation/LengthStyleInterpolation.cpp:121: return nullptr; When does this happen?
5 years, 9 months ago (2015-03-06 02:32:07 UTC) #5
dstockwell
https://codereview.chromium.org/982913003/diff/20001/Source/core/animation/LengthStyleInterpolation.cpp File Source/core/animation/LengthStyleInterpolation.cpp (right): https://codereview.chromium.org/982913003/diff/20001/Source/core/animation/LengthStyleInterpolation.cpp#newcode222 Source/core/animation/LengthStyleInterpolation.cpp:222: StyleBuilder::applyProperty(m_id, state, fromInterpolableValue(*m_cachedValue, m_range).get()); Is there a way that ...
5 years, 9 months ago (2015-03-06 02:34:57 UTC) #6
alancutter (OOO until 2018)
https://codereview.chromium.org/982913003/diff/20001/Source/core/animation/LengthStyleInterpolation.cpp File Source/core/animation/LengthStyleInterpolation.cpp (right): https://codereview.chromium.org/982913003/diff/20001/Source/core/animation/LengthStyleInterpolation.cpp#newcode103 Source/core/animation/LengthStyleInterpolation.cpp:103: return &LayoutStyle::setMotionPosition; On 2015/03/06 02:22:08, Eric Willigers wrote: > ...
5 years, 9 months ago (2015-03-06 07:18:59 UTC) #7
dstockwell
https://codereview.chromium.org/982913003/diff/20001/Source/core/animation/LengthStyleInterpolation.cpp File Source/core/animation/LengthStyleInterpolation.cpp (right): https://codereview.chromium.org/982913003/diff/20001/Source/core/animation/LengthStyleInterpolation.cpp#newcode121 Source/core/animation/LengthStyleInterpolation.cpp:121: return nullptr; On 2015/03/06 07:18:58, alancutter wrote: > On ...
5 years, 9 months ago (2015-03-09 02:39:25 UTC) #8
alancutter (OOO until 2018)
https://codereview.chromium.org/982913003/diff/20001/Source/core/animation/LengthStyleInterpolation.cpp File Source/core/animation/LengthStyleInterpolation.cpp (right): https://codereview.chromium.org/982913003/diff/20001/Source/core/animation/LengthStyleInterpolation.cpp#newcode121 Source/core/animation/LengthStyleInterpolation.cpp:121: return nullptr; On 2015/03/09 02:39:25, dstockwell wrote: > On ...
5 years, 9 months ago (2015-03-09 03:09:00 UTC) #9
dstockwell
lgtm
5 years, 9 months ago (2015-03-09 04:38:45 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/982913003/80001
5 years, 9 months ago (2015-03-09 04:39:50 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: android_blink_compile_dbg on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/android_blink_compile_dbg/builds/30783)
5 years, 9 months ago (2015-03-09 05:04:31 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/982913003/100001
5 years, 9 months ago (2015-03-09 06:28:04 UTC) #18
commit-bot: I haz the power
5 years, 9 months ago (2015-03-09 08:02:31 UTC) #19
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=191521

Powered by Google App Engine
This is Rietveld 408576698