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

Issue 643993005: Remove limit on number of resources in cc (Closed)

Created:
6 years, 2 months ago by boliu
Modified:
6 years, 1 month ago
CC:
chromium-reviews, jam, darin-cc_chromium.org, mkwst+moarreviews-renderer_chromium.org, piman+watch_chromium.org, cc-bugs_chromium.org, android-webview-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Remove limit on number of resources in cc This ability was added for Android WebView to limit the number of gralloc buffers, which has a low limit on the number of allocations. Android WebView no longer uses gralloc buffers, so no need to keep this ability. Use memory limit to limit the staging resource pool for 1-copy rasterizer. BUG=426548 Committed: https://crrev.com/77de0216df77874d43b21233fcb675671cfd0c55 Cr-Commit-Position: refs/heads/master@{#301559}

Patch Set 1 #

Total comments: 3

Patch Set 2 : s/MemoryUsage/int64/ #

Patch Set 3 : rebase #

Patch Set 4 : rebase #

Total comments: 6

Patch Set 5 : rebase again #

Patch Set 6 : review #

Total comments: 2

Patch Set 7 : using MemoryUsage = int64_t; #

Total comments: 1

Patch Set 8 : no cc change #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -584 lines) Patch
M android_webview/android_webview.gyp View 1 chunk +0 lines, -3 lines 0 comments Download
M android_webview/android_webview_tests.gypi View 1 chunk +0 lines, -1 line 0 comments Download
M android_webview/browser/browser_view_renderer.h View 1 2 3 7 chunks +2 lines, -24 lines 0 comments Download
M android_webview/browser/browser_view_renderer.cc View 1 2 3 8 chunks +15 lines, -81 lines 0 comments Download
D android_webview/browser/global_tile_manager.h View 1 chunk +0 lines, -79 lines 0 comments Download
D android_webview/browser/global_tile_manager.cc View 1 chunk +0 lines, -152 lines 0 comments Download
D android_webview/browser/global_tile_manager_client.h View 1 chunk +0 lines, -30 lines 0 comments Download
D android_webview/browser/global_tile_manager_unittest.cc View 1 chunk +0 lines, -165 lines 0 comments Download
M content/browser/android/in_process/synchronous_compositor_impl.h View 1 chunk +1 line, -2 lines 0 comments Download
M content/browser/android/in_process/synchronous_compositor_impl.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M content/browser/android/in_process/synchronous_compositor_output_surface.h View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/android/in_process/synchronous_compositor_output_surface.cc View 1 2 3 4 5 6 7 2 chunks +6 lines, -4 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M content/public/browser/android/synchronous_compositor.h View 2 chunks +1 line, -15 lines 0 comments Download
D content/public/browser/android/synchronous_compositor.cc View 1 chunk +0 lines, -23 lines 0 comments Download

Messages

Total messages: 32 (7 generated)
boliu
PTAL! hush - android_webview yfriedman - content reveman - cc
6 years, 2 months ago (2014-10-24 23:31:57 UTC) #2
hush (inactive)
https://codereview.chromium.org/643993005/diff/1/android_webview/browser/browser_view_renderer.cc File android_webview/browser/browser_view_renderer.cc (right): https://codereview.chromium.org/643993005/diff/1/android_webview/browser/browser_view_renderer.cc#newcode122 android_webview/browser/browser_view_renderer.cc:122: compositor_->SetMemoryPolicy(0u); do you need to enforce it immediately right ...
6 years, 2 months ago (2014-10-24 23:36:37 UTC) #3
boliu
https://codereview.chromium.org/643993005/diff/1/android_webview/browser/browser_view_renderer.cc File android_webview/browser/browser_view_renderer.cc (right): https://codereview.chromium.org/643993005/diff/1/android_webview/browser/browser_view_renderer.cc#newcode122 android_webview/browser/browser_view_renderer.cc:122: compositor_->SetMemoryPolicy(0u); On 2014/10/24 23:36:37, hush wrote: > do you ...
6 years, 2 months ago (2014-10-24 23:37:53 UTC) #4
hush (inactive)
android_webview/ lgtm https://codereview.chromium.org/643993005/diff/1/android_webview/browser/browser_view_renderer.cc File android_webview/browser/browser_view_renderer.cc (right): https://codereview.chromium.org/643993005/diff/1/android_webview/browser/browser_view_renderer.cc#newcode122 android_webview/browser/browser_view_renderer.cc:122: compositor_->SetMemoryPolicy(0u); On 2014/10/24 23:37:53, boliu wrote: > ...
6 years, 2 months ago (2014-10-24 23:49:59 UTC) #5
reveman
https://codereview.chromium.org/643993005/diff/60001/cc/resources/tile_manager.h File cc/resources/tile_manager.h (right): https://codereview.chromium.org/643993005/diff/60001/cc/resources/tile_manager.h#newcode214 cc/resources/tile_manager.h:214: int64 BytesLimitFromConfig(const gfx::Size& size, ResourceFormat format); MemoryUsageFromConfig? https://codereview.chromium.org/643993005/diff/60001/cc/resources/tile_manager.h#newcode215 cc/resources/tile_manager.h:215: ...
6 years, 1 month ago (2014-10-27 13:39:00 UTC) #6
boliu
https://codereview.chromium.org/643993005/diff/60001/cc/resources/tile_manager.h File cc/resources/tile_manager.h (right): https://codereview.chromium.org/643993005/diff/60001/cc/resources/tile_manager.h#newcode214 cc/resources/tile_manager.h:214: int64 BytesLimitFromConfig(const gfx::Size& size, ResourceFormat format); On 2014/10/27 13:39:00, ...
6 years, 1 month ago (2014-10-27 15:35:58 UTC) #7
reveman
cc/ lgtm but vmpstr should take a look at tile manager changes before this land
6 years, 1 month ago (2014-10-27 16:57:56 UTC) #9
Yaron
content lgtm but I don't own content/renderer/gpu/compositor_output_surface.cc
6 years, 1 month ago (2014-10-27 17:02:10 UTC) #10
boliu
On 2014/10/27 17:02:10, Yaron wrote: > content lgtm but I don't own content/renderer/gpu/compositor_output_surface.cc +sievers :)
6 years, 1 month ago (2014-10-27 17:05:24 UTC) #12
boliu
Oops, Daniel doesn't own that file either. +jbauman for content/renderer/gpu/compositor_output_surface.cc
6 years, 1 month ago (2014-10-27 17:07:52 UTC) #14
danakj
Daniel owns all of content/ now fwiw On Mon, Oct 27, 2014 at 1:07 PM, ...
6 years, 1 month ago (2014-10-27 17:16:54 UTC) #15
boliu
On 2014/10/27 17:16:54, danakj wrote: > Daniel owns all of content/ now fwiw Sorry for ...
6 years, 1 month ago (2014-10-27 17:20:52 UTC) #16
vmpstr
https://codereview.chromium.org/643993005/diff/100001/cc/resources/tile_manager.cc File cc/resources/tile_manager.cc (right): https://codereview.chromium.org/643993005/diff/100001/cc/resources/tile_manager.cc#newcode549 cc/resources/tile_manager.cc:549: int64 hard_memory_limit = global_state_.hard_memory_limit_in_bytes; i would kinda weakly prefer ...
6 years, 1 month ago (2014-10-27 17:58:55 UTC) #17
jamesr
https://codereview.chromium.org/643993005/diff/100001/cc/resources/tile_manager.cc File cc/resources/tile_manager.cc (right): https://codereview.chromium.org/643993005/diff/100001/cc/resources/tile_manager.cc#newcode549 cc/resources/tile_manager.cc:549: int64 hard_memory_limit = global_state_.hard_memory_limit_in_bytes; we use int64_t, etc, nowadays ...
6 years, 1 month ago (2014-10-27 18:03:25 UTC) #18
boliu
reveman/vmpstr: Please take another look at tile_manager.cc/h Went with "using MemoryUsage = int64_t;" which is ...
6 years, 1 month ago (2014-10-27 18:48:07 UTC) #19
vmpstr
lgtm, thanks
6 years, 1 month ago (2014-10-27 19:15:41 UTC) #20
no sievers
lgtm
6 years, 1 month ago (2014-10-28 00:07:06 UTC) #21
jbauman
not lgtm. We still use this for software rendering (set in CompositorOutputSurface::BindToClient), so I'd prefer ...
6 years, 1 month ago (2014-10-28 00:09:20 UTC) #22
boliu
On 2014/10/28 00:09:20, jbauman wrote: > not lgtm. We still use this for software rendering ...
6 years, 1 month ago (2014-10-28 00:19:54 UTC) #23
boliu
Done. jbauman: PTAL
6 years, 1 month ago (2014-10-28 00:26:24 UTC) #24
jbauman
On 2014/10/28 00:19:54, boliu wrote: > On 2014/10/28 00:09:20, jbauman wrote: > > not lgtm. ...
6 years, 1 month ago (2014-10-28 00:38:53 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/643993005/140001
6 years, 1 month ago (2014-10-28 00:55:45 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/643993005/140001
6 years, 1 month ago (2014-10-28 03:17:51 UTC) #30
commit-bot: I haz the power
Committed patchset #8 (id:140001)
6 years, 1 month ago (2014-10-28 04:06:48 UTC) #31
commit-bot: I haz the power
6 years, 1 month ago (2014-10-28 04:07:42 UTC) #32
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/77de0216df77874d43b21233fcb675671cfd0c55
Cr-Commit-Position: refs/heads/master@{#301559}

Powered by Google App Engine
This is Rietveld 408576698