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

Issue 2402643002: Make RenderThreadImpl a client of memory coordinator (Closed)

Created:
4 years, 2 months ago by hajimehoshi
Modified:
4 years, 2 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, jam, dglazkov+blink, darin-cc_chromium.org, blink-reviews, blink-reviews-api_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make RenderThreadImpl a client of memory coordinator When the memory coordinator is enabled, RenderThreadImpl becomes a client of the memory coordinator instead of installing MemoryPressureListener. In the implmentation of this CL, both MemoryPressureListener and MemoryCoordinatorClient are installed regardless of the flag, but as default MemoryCoordinator is not enabled and when MemoryCoordinator is enabled by a flag, it is planed to suppress MemoryPressureMonitor features. Design Doc: https://docs.google.com/document/d/1a69mMr7jI7qK0OfKNlrZ350xiXizVMCCe8orGX7K8Uo/edit?ts=57d7968b# BUG=639700 Committed: https://crrev.com/7bb39585012ce3c383e880bc43b710226326a026 Cr-Commit-Position: refs/heads/master@{#424668}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Address on haraken's review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+92 lines, -26 lines) Patch
M content/renderer/render_thread_impl.h View 1 3 chunks +7 lines, -0 lines 0 comments Download
M content/renderer/render_thread_impl.cc View 1 4 chunks +43 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/platform/MemoryCoordinator.h View 1 3 chunks +7 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/MemoryCoordinator.cpp View 1 1 chunk +18 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/platform/exported/WebMemoryCoordinator.cpp View 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/public/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/public/platform/WebMemoryCoordinator.h View 2 chunks +3 lines, -0 lines 0 comments Download
A + third_party/WebKit/public/platform/WebMemoryState.h View 1 1 chunk +9 lines, -9 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 23 (14 generated)
hajimehoshi
PTAL
4 years, 2 months ago (2016-10-07 11:29:07 UTC) #4
haraken
https://codereview.chromium.org/2402643002/diff/20001/content/renderer/render_thread_impl.cc File content/renderer/render_thread_impl.cc (right): https://codereview.chromium.org/2402643002/diff/20001/content/renderer/render_thread_impl.cc#newcode905 content/renderer/render_thread_impl.cc:905: base::MemoryCoordinatorClientRegistry::GetInstance()->Unregister(this); I'd call this in Shutdown(). https://codereview.chromium.org/2402643002/diff/20001/content/renderer/render_thread_impl.cc#newcode2170 content/renderer/render_thread_impl.cc:2170: void ...
4 years, 2 months ago (2016-10-07 11:45:30 UTC) #7
Avi (use Gerrit)
I'm liking what I see so far, but ping me when haraken is satisfied.
4 years, 2 months ago (2016-10-07 14:43:02 UTC) #8
hajimehoshi
Thank you! https://codereview.chromium.org/2402643002/diff/20001/content/renderer/render_thread_impl.cc File content/renderer/render_thread_impl.cc (right): https://codereview.chromium.org/2402643002/diff/20001/content/renderer/render_thread_impl.cc#newcode905 content/renderer/render_thread_impl.cc:905: base::MemoryCoordinatorClientRegistry::GetInstance()->Unregister(this); On 2016/10/07 11:45:30, haraken wrote: > ...
4 years, 2 months ago (2016-10-11 07:05:32 UTC) #11
haraken
LGTM
4 years, 2 months ago (2016-10-11 08:38:55 UTC) #16
Avi (use Gerrit)
stampity stamp lgtm
4 years, 2 months ago (2016-10-11 15:04:57 UTC) #17
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/2402643002/40001
4 years, 2 months ago (2016-10-12 04:26:04 UTC) #19
commit-bot: I haz the power
Committed patchset #2 (id:40001)
4 years, 2 months ago (2016-10-12 04:31:21 UTC) #21
commit-bot: I haz the power
4 years, 2 months ago (2016-10-12 04:34:38 UTC) #23
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/7bb39585012ce3c383e880bc43b710226326a026
Cr-Commit-Position: refs/heads/master@{#424668}

Powered by Google App Engine
This is Rietveld 408576698