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

Issue 2633383004: Avoid unnecessary FloatRect<->LayoutRect conversions in PaintInvalidator (Closed)

Created:
3 years, 11 months ago by Xianzhu
Modified:
3 years, 11 months ago
Reviewers:
pdr.
CC:
blink-reviews, blink-reviews-paint_chromium.org, chromium-reviews, dshwang
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Avoid unnecessary FloatRect<->LayoutRect conversions in PaintInvalidator Make the static functions templates, to avoid unnecessary conversions between FloatRects and LayoutRects; Code size will not increase much because the functions are called only from 1 or 2 places. BUG=678597 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Review-Url: https://codereview.chromium.org/2633383004 Cr-Commit-Position: refs/heads/master@{#444459} Committed: https://chromium.googlesource.com/chromium/src/+/9b27859765e32d5de88395f802d9a861e2feac96

Patch Set 1 #

Total comments: 5

Patch Set 2 : Inline PaintInvalidation functions and avoid unnecessary conversions #

Total comments: 4

Patch Set 3 : Seperate inline change #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -30 lines) Patch
M third_party/WebKit/Source/core/paint/PaintInvalidator.h View 2 1 chunk +0 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintInvalidator.cpp View 1 2 7 chunks +22 lines, -26 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 23 (16 generated)
Xianzhu
3 years, 11 months ago (2017-01-18 01:23:16 UTC) #5
pdr.
https://codereview.chromium.org/2633383004/diff/1/third_party/WebKit/Source/core/paint/PaintInvalidator.cpp File third_party/WebKit/Source/core/paint/PaintInvalidator.cpp (right): https://codereview.chromium.org/2633383004/diff/1/third_party/WebKit/Source/core/paint/PaintInvalidator.cpp#newcode34 third_party/WebKit/Source/core/paint/PaintInvalidator.cpp:34: LayoutRect result(rect); (Just curious, not needed for this patch) ...
3 years, 11 months ago (2017-01-18 02:31:19 UTC) #6
Xianzhu
https://codereview.chromium.org/2633383004/diff/1/third_party/WebKit/Source/core/paint/PaintInvalidator.cpp File third_party/WebKit/Source/core/paint/PaintInvalidator.cpp (right): https://codereview.chromium.org/2633383004/diff/1/third_party/WebKit/Source/core/paint/PaintInvalidator.cpp#newcode34 third_party/WebKit/Source/core/paint/PaintInvalidator.cpp:34: LayoutRect result(rect); On 2017/01/18 02:31:19, pdr. wrote: > (Just ...
3 years, 11 months ago (2017-01-18 06:23:02 UTC) #12
pdr.
LGTM https://codereview.chromium.org/2633383004/diff/20001/third_party/WebKit/Source/core/paint/PaintInvalidator.cpp File third_party/WebKit/Source/core/paint/PaintInvalidator.cpp (right): https://codereview.chromium.org/2633383004/diff/20001/third_party/WebKit/Source/core/paint/PaintInvalidator.cpp#newcode47 third_party/WebKit/Source/core/paint/PaintInvalidator.cpp:47: template <typename Rect, typename Point> Can you add ...
3 years, 11 months ago (2017-01-18 17:57:01 UTC) #15
Xianzhu
https://codereview.chromium.org/2633383004/diff/20001/third_party/WebKit/Source/core/paint/PaintInvalidator.cpp File third_party/WebKit/Source/core/paint/PaintInvalidator.cpp (right): https://codereview.chromium.org/2633383004/diff/20001/third_party/WebKit/Source/core/paint/PaintInvalidator.cpp#newcode47 third_party/WebKit/Source/core/paint/PaintInvalidator.cpp:47: template <typename Rect, typename Point> On 2017/01/18 17:57:00, pdr. ...
3 years, 11 months ago (2017-01-18 18:21:06 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2633383004/40001
3 years, 11 months ago (2017-01-18 18:23:22 UTC) #20
commit-bot: I haz the power
3 years, 11 months ago (2017-01-18 20:25:38 UTC) #23
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/9b27859765e32d5de88395f802d9...

Powered by Google App Engine
This is Rietveld 408576698