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

Issue 2468023002: Don't free non-tile resources on GPU rasterization toggle (Closed)

Created:
4 years, 1 month ago by ericrk
Modified:
4 years, 1 month ago
Reviewers:
enne (OOO)
CC:
cc-bugs_chromium.org, chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Don't free non-tile resources on GPU rasterization toggle Currently we free all tree resources when GPU rasterization is toggled. This causes problems for non-tile resources as these resources: a) Are not impacted by GPU raster and don't need to be re-rasterized. b) Are not trivially re-creatable, leading to them disappearing. This change adds a new function ReleaseTileResources, which is used in place of ReleaseResources when only tile resources need to be freed. It also renames RecreateResources to RecreateTileResources, as we only implemented this function for picture layers. BUG=660929 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel Committed: https://crrev.com/7cedb549a0624a5a592bb592c1a828e52623fcb9 Cr-Commit-Position: refs/heads/master@{#429354}

Patch Set 1 #

Patch Set 2 : remove RecreateResources #

Patch Set 3 : test fix #

Patch Set 4 : fix unittest #

Unified diffs Side-by-side diffs Delta from patch set Stats (+163 lines, -73 lines) Patch
M cc/layers/layer_impl.h View 1 1 chunk +8 lines, -4 lines 0 comments Download
M cc/layers/layer_impl.cc View 1 1 chunk +3 lines, -2 lines 0 comments Download
M cc/layers/picture_layer_impl.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M cc/layers/picture_layer_impl.cc View 1 1 chunk +6 lines, -1 line 0 comments Download
M cc/layers/picture_layer_impl_unittest.cc View 1 2 3 11 chunks +51 lines, -28 lines 0 comments Download
M cc/layers/texture_layer_impl_unittest.cc View 1 chunk +45 lines, -0 lines 0 comments Download
M cc/test/fake_picture_layer_impl.h View 2 chunks +10 lines, -6 lines 0 comments Download
M cc/test/fake_picture_layer_impl.cc View 1 2 4 chunks +8 lines, -18 lines 0 comments Download
M cc/trees/layer_tree_host_impl.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 5 chunks +17 lines, -9 lines 0 comments Download
M cc/trees/layer_tree_impl.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M cc/trees/layer_tree_impl.cc View 1 1 chunk +9 lines, -2 lines 0 comments Download

Messages

Total messages: 17 (10 generated)
ericrk
4 years, 1 month ago (2016-11-01 21:28:38 UTC) #5
enne (OOO)
lgtm
4 years, 1 month ago (2016-11-01 22:47:10 UTC) #7
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/2468023002/40001
4 years, 1 month ago (2016-11-02 00:21:09 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/326915)
4 years, 1 month ago (2016-11-02 01:03:25 UTC) #11
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/2468023002/60001
4 years, 1 month ago (2016-11-02 17:28:17 UTC) #14
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 1 month ago (2016-11-02 19:04:07 UTC) #15
commit-bot: I haz the power
4 years, 1 month ago (2016-11-02 19:24:20 UTC) #17
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/7cedb549a0624a5a592bb592c1a828e52623fcb9
Cr-Commit-Position: refs/heads/master@{#429354}

Powered by Google App Engine
This is Rietveld 408576698