Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(280)

Issue 16700003: Zero-budget TileManager in resourceless software mode (Closed)

Created:
7 years, 6 months ago by boliu
Modified:
7 years, 6 months ago
Reviewers:
danakj
CC:
chromium-reviews, cc-bugs_chromium.org
Visibility:
Public.

Description

Zero-budget TileManager in resourceless software mode In ResourceManager, add Reinitialize which essentially calls Initialize again. Make sure the default resource type is updated again to be correct. In LayerTreeHostImpl, set bytes_limit_when_visible_ to 0 in resourceless software mode. Set back default value in DeferredInitialize. In TextureLayerImpl, release the resource on DidLoseOutputSurface if not using mailboxes. For mailboxes, the resource cannot be recreated by simply calling CreateResourceFromTextureMailbox again. BUG=245935 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=207424

Patch Set 1 #

Patch Set 2 : sw works but failing some dchecks, hw TileManager/RasterWorkerPool has problems with RP #

Patch Set 3 : sort of works #

Patch Set 4 : clean up #

Patch Set 5 : one more clean up #

Patch Set 6 : SetNeedsCommit #

Total comments: 1

Patch Set 7 : TextureLayer recreate mailbox texture if cleared by DidLoseOutputSurface #

Patch Set 8 : Do not DeleteResource in TextureLayerImpl for mailboxes #

Total comments: 1

Patch Set 9 : clean ups #

Total comments: 4

Patch Set 10 : rebase and address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+158 lines, -83 lines) Patch
M cc/layers/texture_layer_impl.cc View 1 2 3 4 5 6 7 8 9 1 chunk +5 lines, -0 lines 0 comments Download
M cc/output/software_renderer.cc View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
M cc/resources/resource_provider.h View 1 2 3 4 5 6 2 chunks +3 lines, -0 lines 0 comments Download
M cc/resources/resource_provider.cc View 1 2 3 4 5 6 7 8 9 4 chunks +15 lines, -1 line 0 comments Download
M cc/test/fake_output_surface.h View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -2 lines 0 comments Download
M cc/test/fake_output_surface.cc View 1 2 3 4 5 6 7 8 9 1 chunk +6 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_impl.h View 1 2 3 4 5 6 7 8 9 3 chunks +6 lines, -3 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 4 5 6 7 8 9 7 chunks +89 lines, -63 lines 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 5 chunks +17 lines, -10 lines 0 comments Download
M cc/trees/layer_tree_host_unittest.cc View 1 2 3 4 5 6 7 8 9 3 chunks +5 lines, -3 lines 0 comments Download
M cc/trees/thread_proxy.cc View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 9 (0 generated)
boliu
Dana, could you give this a first pass. There are still some clean up TODO ...
7 years, 6 months ago (2013-06-14 04:48:33 UTC) #1
boliu
In texture layer, release texture_id resource, but don't release mail box resource. I think other ...
7 years, 6 months ago (2013-06-14 20:46:33 UTC) #2
boliu
Dana: friendly ping!
7 years, 6 months ago (2013-06-17 20:08:58 UTC) #3
danakj
LGTM overall, few nits https://codereview.chromium.org/16700003/diff/20001/cc/layers/texture_layer_impl.cc File cc/layers/texture_layer_impl.cc (right): https://codereview.chromium.org/16700003/diff/20001/cc/layers/texture_layer_impl.cc#newcode133 cc/layers/texture_layer_impl.cc:133: if (external_texture_resource_ && !uses_mailbox_) { ...
7 years, 6 months ago (2013-06-19 18:38:12 UTC) #4
boliu
All done.
7 years, 6 months ago (2013-06-19 19:32:08 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/16700003/31001
7 years, 6 months ago (2013-06-19 19:33:04 UTC) #6
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) chrome_frame_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=166698
7 years, 6 months ago (2013-06-20 13:55:23 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/16700003/31001
7 years, 6 months ago (2013-06-20 13:58:28 UTC) #8
commit-bot: I haz the power
7 years, 6 months ago (2013-06-20 13:58:57 UTC) #9
Message was sent while issue was closed.
Change committed as 207424

Powered by Google App Engine
This is Rietveld 408576698