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

Issue 10083056: GpuMemoryManager suggests values for renderer Contents Texture Managers' preferred memory limit. (Closed)

Created:
8 years, 8 months ago by mmocny
Modified:
8 years, 7 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, apatrick_chromium
Visibility:
Public.

Description

GpuMemoryManager suggests values for renderer Contents Texture Managers' preferred memory limit. BUG=123382 TEST=Manual Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=134428 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=134801

Patch Set 1 #

Total comments: 15

Patch Set 2 : Making allocations clearer to read, and changing the distribution to include canvas/webgl etc. #

Total comments: 1

Patch Set 3 : Skia still gets Minimum memory allocation when in background -- it only purges in hibernate. #

Patch Set 4 : Fixed wrong memory allocation values being were set (should be min+bonus not total+bonus). #

Patch Set 5 : Replaced faulty check for ui stubs with check for stubs who handle allocations. #

Patch Set 6 : Fixing issue with every proxy registering a callback, even when it is null. #

Total comments: 3

Patch Set 7 : Adding support for clearing callback, big unittest cleanup, added test for bonus allocations. #

Patch Set 8 : Android memory limits #

Patch Set 9 : clang compile fix #

Patch Set 10 : #

Patch Set 11 : Hopefully last win_rel fix. #

Patch Set 12 : On max 10.5, it fails to init command buffer, and my callback code didn't guard against that. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+368 lines, -204 lines) Patch
M content/common/gpu/client/command_buffer_proxy_impl.cc View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +11 lines, -4 lines 0 comments Download
M content/common/gpu/gpu_command_buffer_stub.h View 1 2 3 4 5 6 7 8 4 chunks +5 lines, -0 lines 0 comments Download
M content/common/gpu/gpu_command_buffer_stub.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +17 lines, -1 line 0 comments Download
M content/common/gpu/gpu_memory_allocation.h View 1 2 3 4 5 6 7 8 9 2 chunks +11 lines, -5 lines 0 comments Download
M content/common/gpu/gpu_memory_manager.h View 1 2 3 4 5 6 7 1 chunk +17 lines, -0 lines 0 comments Download
M content/common/gpu/gpu_memory_manager.cc View 1 2 3 4 5 6 5 chunks +67 lines, -38 lines 0 comments Download
M content/common/gpu/gpu_memory_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 10 14 chunks +233 lines, -156 lines 0 comments Download
M content/common/gpu/gpu_messages.h View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (0 generated)
mmocny
This patch will attempt to send memory allocation values to wk compositor to be used ...
8 years, 8 months ago (2012-04-18 20:43:11 UTC) #1
piman
I have serious concerns about having the GPU process make UI vs non-UI decisions, and ...
8 years, 8 months ago (2012-04-18 22:20:14 UTC) #2
nduca
So how do we deal with the UI compositor's memory? https://chromiumcodereview.appspot.com/10083056/diff/1/content/common/gpu/gpu_channel.cc File content/common/gpu/gpu_channel.cc (right): https://chromiumcodereview.appspot.com/10083056/diff/1/content/common/gpu/gpu_channel.cc#newcode131 ...
8 years, 8 months ago (2012-04-18 23:16:28 UTC) #3
piman
Also as a general comment, I hate that we're hard-coding completely arbitrary memory limits all ...
8 years, 8 months ago (2012-04-18 23:39:37 UTC) #4
Nat
Hey Antoine - What's the context here? The point mmocny's patch is to move the ...
8 years, 8 months ago (2012-04-18 23:54:07 UTC) #5
piman
On Wed, Apr 18, 2012 at 4:54 PM, Nat Duca <nduca@google.com> wrote: > Hey Antoine ...
8 years, 8 months ago (2012-04-19 00:05:50 UTC) #6
mmocny
Refactored the allocations and updated the unittests so they pass. I have yet to write ...
8 years, 8 months ago (2012-04-20 18:37:55 UTC) #7
mmocny
The unittest expectations changed since allocations are no longer fixed values. The actual gpu resource ...
8 years, 8 months ago (2012-04-20 18:47:30 UTC) #8
nduca
This is looking good. What about this --- when the renderer_gl gets a callback registered ...
8 years, 8 months ago (2012-04-20 19:51:15 UTC) #9
nduca
(then, we set up the UI compositor to use a ccsetting about "use gpu memory ...
8 years, 8 months ago (2012-04-20 19:55:11 UTC) #10
mmocny
That sounds like a good solution. A couple questions: - We would need to add ...
8 years, 8 months ago (2012-04-20 20:03:08 UTC) #11
nduca
On 2012/04/20 20:03:08, mmocny wrote: > That sounds like a good solution. > > A ...
8 years, 8 months ago (2012-04-20 20:18:26 UTC) #12
mmocny
Okay, yeah that sounds sweet. Doing it! On 2012/04/20 20:18:26, nduca wrote: > On 2012/04/20 ...
8 years, 8 months ago (2012-04-20 20:25:11 UTC) #13
mmocny
Done, and much more elegant now, but I am still seeing more handlers registered than ...
8 years, 8 months ago (2012-04-20 21:05:41 UTC) #14
mmocny
Okay, the issue with using two ui graphics contexts is a known one (http://code.google.com/p/chromium/issues/detail?id=124641&thanks=124641&ts=1335196601) but ...
8 years, 8 months ago (2012-04-23 21:34:19 UTC) #15
nduca
I'm happy with this approach. http://codereview.chromium.org/10083056/diff/15001/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc File content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc (right): http://codereview.chromium.org/10083056/diff/15001/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc#newcode679 content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc:679: what if they clear ...
8 years, 8 months ago (2012-04-23 22:12:18 UTC) #16
mmocny
Antoine, I am waiting on the exact numbers to use for limits on android (changing ...
8 years, 8 months ago (2012-04-26 19:38:01 UTC) #17
piman
lgtm
8 years, 8 months ago (2012-04-26 20:15:04 UTC) #18
nduca
lgtm
8 years, 8 months ago (2012-04-26 20:35:12 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mmocny@chromium.org/10083056/30001
8 years, 8 months ago (2012-04-27 15:45:46 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mmocny@chromium.org/10083056/33003
8 years, 8 months ago (2012-04-28 00:18:26 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mmocny@chromium.org/10083056/33003
8 years, 8 months ago (2012-04-28 00:44:19 UTC) #22
commit-bot: I haz the power
Change committed as 134428
8 years, 8 months ago (2012-04-28 02:23:48 UTC) #23
mmocny
On 2012/04/28 02:23:48, I haz the power (commit-bot) wrote: > Change committed as 134428 This ...
8 years, 7 months ago (2012-05-01 20:24:40 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mmocny@chromium.org/10083056/42003
8 years, 7 months ago (2012-05-01 20:25:00 UTC) #25
commit-bot: I haz the power
8 years, 7 months ago (2012-05-01 22:21:19 UTC) #26
Change committed as 134801

Powered by Google App Engine
This is Rietveld 408576698