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

Issue 1310283002: cc: Avoid duplicate work when computing draw properties using property trees (Closed)

Created:
5 years, 3 months ago by ajuma
Modified:
5 years, 3 months ago
Reviewers:
jaydasika, enne (OOO)
CC:
cc-bugs_chromium.org, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Avoid duplicate work when computing draw properties using property trees This adds a ComputeLayerDrawPropertiesUsingPropertyTrees function and a ComputeSurfaceDrawPropertiesUsingPropertyTrees function that compute these properties together, avoiding re-computing values that are needed by the computation of more than one property. BUG=497817 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/d301953f7a9c5ce542ebca832a26b234df81ce07 Cr-Commit-Position: refs/heads/master@{#347400}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 7

Patch Set 5 : Use existing DrawableContentRect method #

Patch Set 6 : Rebased #

Patch Set 7 : Rebased #

Total comments: 5

Patch Set 8 : Move RenderSurfaceDrawProperties to its own file #

Unified diffs Side-by-side diffs Delta from patch set Stats (+263 lines, -314 lines) Patch
M cc/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M cc/cc.gyp View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
A cc/layers/render_surface_draw_properties.h View 1 2 3 4 5 6 7 1 chunk +45 lines, -0 lines 0 comments Download
A cc/layers/render_surface_draw_properties.cc View 1 2 3 4 5 6 7 1 chunk +14 lines, -0 lines 0 comments Download
M cc/trees/draw_property_utils.h View 1 2 3 4 5 6 7 3 chunks +14 lines, -66 lines 0 comments Download
M cc/trees/draw_property_utils.cc View 1 2 3 4 5 6 7 9 chunks +123 lines, -138 lines 0 comments Download
M cc/trees/layer_tree_host_common.cc View 1 2 3 4 5 6 7 7 chunks +63 lines, -110 lines 0 comments Download

Messages

Total messages: 17 (3 generated)
ajuma
5 years, 3 months ago (2015-08-26 14:28:12 UTC) #2
jaydasika
https://codereview.chromium.org/1310283002/diff/60001/cc/trees/layer_tree_host_common.cc File cc/trees/layer_tree_host_common.cc (right): https://codereview.chromium.org/1310283002/diff/60001/cc/trees/layer_tree_host_common.cc#newcode2550 cc/trees/layer_tree_host_common.cc:2550: ? layer->drawable_content_rect() All the draw properties here are the ...
5 years, 3 months ago (2015-08-26 15:16:44 UTC) #3
ajuma
https://codereview.chromium.org/1310283002/diff/60001/cc/trees/layer_tree_host_common.cc File cc/trees/layer_tree_host_common.cc (right): https://codereview.chromium.org/1310283002/diff/60001/cc/trees/layer_tree_host_common.cc#newcode2550 cc/trees/layer_tree_host_common.cc:2550: ? layer->drawable_content_rect() On 2015/08/26 15:16:44, jaydasika wrote: > All ...
5 years, 3 months ago (2015-08-26 15:21:32 UTC) #4
jaydasika
https://codereview.chromium.org/1310283002/diff/60001/cc/trees/layer_tree_host_common.cc File cc/trees/layer_tree_host_common.cc (right): https://codereview.chromium.org/1310283002/diff/60001/cc/trees/layer_tree_host_common.cc#newcode2550 cc/trees/layer_tree_host_common.cc:2550: ? layer->drawable_content_rect() On 2015/08/26 15:21:32, ajuma wrote: > On ...
5 years, 3 months ago (2015-08-26 15:27:42 UTC) #5
ajuma
https://codereview.chromium.org/1310283002/diff/60001/cc/trees/layer_tree_host_common.cc File cc/trees/layer_tree_host_common.cc (right): https://codereview.chromium.org/1310283002/diff/60001/cc/trees/layer_tree_host_common.cc#newcode2550 cc/trees/layer_tree_host_common.cc:2550: ? layer->drawable_content_rect() On 2015/08/26 15:27:42, jaydasika wrote: > On ...
5 years, 3 months ago (2015-08-26 15:31:38 UTC) #6
jaydasika
lgtm lgtm. https://codereview.chromium.org/1310283002/diff/60001/cc/trees/layer_tree_host_common.cc File cc/trees/layer_tree_host_common.cc (right): https://codereview.chromium.org/1310283002/diff/60001/cc/trees/layer_tree_host_common.cc#newcode2550 cc/trees/layer_tree_host_common.cc:2550: ? layer->drawable_content_rect() On 2015/08/26 15:31:38, ajuma wrote: ...
5 years, 3 months ago (2015-08-26 15:54:03 UTC) #7
ajuma
https://codereview.chromium.org/1310283002/diff/60001/cc/trees/layer_tree_host_common.cc File cc/trees/layer_tree_host_common.cc (right): https://codereview.chromium.org/1310283002/diff/60001/cc/trees/layer_tree_host_common.cc#newcode2626 cc/trees/layer_tree_host_common.cc:2626: DrawableContentRectOfSurface(layer->render_surface())); On 2015/08/26 15:54:03, jaydasika wrote: > We already ...
5 years, 3 months ago (2015-08-26 17:06:43 UTC) #8
ajuma
enne, PTAL.
5 years, 3 months ago (2015-09-02 17:08:04 UTC) #9
enne (OOO)
https://codereview.chromium.org/1310283002/diff/120001/cc/trees/draw_property_utils.cc File cc/trees/draw_property_utils.cc (right): https://codereview.chromium.org/1310283002/diff/120001/cc/trees/draw_property_utils.cc#newcode846 cc/trees/draw_property_utils.cc:846: void ComputeLayerDrawPropertiesUsingPropertyTrees( I love how simple this function is! ...
5 years, 3 months ago (2015-09-02 21:51:35 UTC) #10
ajuma
https://codereview.chromium.org/1310283002/diff/120001/cc/trees/draw_property_utils.h File cc/trees/draw_property_utils.h (right): https://codereview.chromium.org/1310283002/diff/120001/cc/trees/draw_property_utils.h#newcode85 cc/trees/draw_property_utils.h:85: struct CC_EXPORT SurfaceDrawProperties { On 2015/09/02 21:51:35, enne wrote: ...
5 years, 3 months ago (2015-09-03 15:06:49 UTC) #11
enne (OOO)
lgtm
5 years, 3 months ago (2015-09-04 04:26:09 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1310283002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1310283002/140001
5 years, 3 months ago (2015-09-04 13:01:25 UTC) #15
commit-bot: I haz the power
Committed patchset #8 (id:140001)
5 years, 3 months ago (2015-09-04 14:20:28 UTC) #16
commit-bot: I haz the power
5 years, 3 months ago (2015-09-04 14:21:07 UTC) #17
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/d301953f7a9c5ce542ebca832a26b234df81ce07
Cr-Commit-Position: refs/heads/master@{#347400}

Powered by Google App Engine
This is Rietveld 408576698