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

Issue 53633003: Do not give GPU memory to backgrounded compositors. (Closed)

Created:
7 years, 1 month ago by ccameron
Modified:
7 years, 1 month ago
Reviewers:
Tom Sepez, jamesr, piman, danakj
CC:
chromium-reviews, joi+watch-content_chromium.org, jam, apatrick_chromium, sievers+watch_chromium.org, jbauman+watch_chromium.org, darin-cc_chromium.org, kalyank, piman+watch_chromium.org, cc-bugs_chromium.org, danakj+watch_chromium.org
Visibility:
Public.

Description

Do not give GPU memory to backgrounded compositors. This has already been disabled on all platforms except Windows and Chrome OS to be more conservative about GPU memory. All platforms are moving to a delegated renderer where, if keeping around resources for a fast tab-switch is desired, it can be accomplished by not releasing those resources in the browser process. This feature was originally requested in crbug.com/134750. Also remove the infrastructure for preserving backbuffers of backgrounded renderers. This feature was never enabled. BUG=276559 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=232324

Patch Set 1 #

Total comments: 4

Patch Set 2 : Remove problem test #

Patch Set 3 : Remove test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -639 lines) Patch
M cc/output/context_provider.h View 1 chunk +2 lines, -3 lines 0 comments Download
M cc/output/delegating_renderer.h View 1 chunk +0 lines, -2 lines 0 comments Download
M cc/output/delegating_renderer.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M cc/output/gl_renderer.h View 2 chunks +0 lines, -3 lines 0 comments Download
M cc/output/gl_renderer.cc View 2 chunks +1 line, -8 lines 0 comments Download
M cc/output/gl_renderer_unittest.cc View 1 2 6 chunks +0 lines, -18 lines 0 comments Download
M cc/output/managed_memory_policy.h View 1 chunk +0 lines, -4 lines 0 comments Download
M cc/output/managed_memory_policy.cc View 1 chunk +0 lines, -12 lines 0 comments Download
M cc/output/output_surface.h View 1 chunk +1 line, -2 lines 0 comments Download
M cc/output/output_surface.cc View 1 chunk +3 lines, -6 lines 0 comments Download
M cc/output/output_surface_client.h View 1 chunk +0 lines, -1 line 0 comments Download
M cc/output/output_surface_unittest.cc View 1 2 1 chunk +3 lines, -24 lines 0 comments Download
M cc/output/renderer.h View 1 chunk +0 lines, -2 lines 0 comments Download
M cc/output/software_renderer.h View 1 chunk +0 lines, -1 line 0 comments Download
M cc/output/software_renderer.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M cc/test/fake_output_surface_client.h View 3 chunks +1 line, -8 lines 0 comments Download
M cc/test/fake_output_surface_client.cc View 1 chunk +0 lines, -5 lines 0 comments Download
M cc/test/pixel_test.cc View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M cc/test/test_context_provider.h View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M cc/test/test_context_provider.cc View 1 2 1 chunk +2 lines, -4 lines 0 comments Download
M cc/trees/layer_tree_host_impl.h View 1 chunk +0 lines, -1 line 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 6 chunks +4 lines, -16 lines 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 1 2 7 chunks +9 lines, -16 lines 0 comments Download
M cc/trees/layer_tree_host_pixeltest_on_demand_raster.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_host_unittest.cc View 1 2 6 chunks +11 lines, -13 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_damage.cc View 1 1 chunk +0 lines, -97 lines 0 comments Download
M content/common/gpu/client/context_provider_command_buffer.cc View 1 chunk +1 line, -5 lines 0 comments Download
M content/common/gpu/gpu_memory_manager.h View 3 chunks +0 lines, -8 lines 0 comments Download
M content/common/gpu/gpu_memory_manager.cc View 13 chunks +1 line, -131 lines 0 comments Download
M content/common/gpu/gpu_memory_manager_client.h View 1 chunk +0 lines, -1 line 0 comments Download
M content/common/gpu/gpu_memory_manager_client.cc View 1 chunk +0 lines, -1 line 0 comments Download
M content/common/gpu/gpu_memory_manager_unittest.cc View 5 chunks +6 lines, -210 lines 0 comments Download
M content/common/gpu/gpu_messages.h View 1 chunk +0 lines, -3 lines 0 comments Download
M content/renderer/gpu/compositor_output_surface.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M gpu/command_buffer/common/gpu_memory_allocation.h View 1 chunk +3 lines, -19 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
ccameron
This torches a lot of lines of code and removes a lot of complexity from ...
7 years, 1 month ago (2013-10-31 03:30:12 UTC) #1
piman
LGTM, I support this change. I tried on the Pixel and it seems to work ...
7 years, 1 month ago (2013-10-31 04:00:19 UTC) #2
Tom Sepez
rubberstamp LGTM on deleting members.
7 years, 1 month ago (2013-10-31 16:59:39 UTC) #3
danakj
LGTM! https://codereview.chromium.org/53633003/diff/1/cc/trees/layer_tree_host_unittest_damage.cc File cc/trees/layer_tree_host_unittest_damage.cc (right): https://codereview.chromium.org/53633003/diff/1/cc/trees/layer_tree_host_unittest_damage.cc#newcode27 cc/trees/layer_tree_host_unittest_damage.cc:27: class LayerTreeHostDamageTestSetVisibleDoesNotDraw On 2013/10/31 04:00:25, piman wrote: > ...
7 years, 1 month ago (2013-10-31 17:11:23 UTC) #4
ccameron
Thanks!! I ended up removing test. I'll should also go through the GpuMemoryManager tests and ...
7 years, 1 month ago (2013-10-31 18:26:29 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ccameron@chromium.org/53633003/110001
7 years, 1 month ago (2013-10-31 18:38:57 UTC) #6
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 1 month ago (2013-10-31 19:13:28 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ccameron@chromium.org/53633003/110001
7 years, 1 month ago (2013-10-31 20:22:02 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ccameron@chromium.org/53633003/110001
7 years, 1 month ago (2013-10-31 23:47:18 UTC) #9
commit-bot: I haz the power
7 years, 1 month ago (2013-11-01 09:53:38 UTC) #10
Message was sent while issue was closed.
Change committed as 232324

Powered by Google App Engine
This is Rietveld 408576698