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

Issue 2086833005: align WebMemoryPressureLevel with MemoryPressureListener::MemoryPressureLevel (Closed)

Created:
4 years, 6 months ago by hong.zheng
Modified:
4 years, 5 months ago
Reviewers:
tkent, esprehn, bashi
CC:
blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, dglazkov+blink
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

align WebMemoryPressureLevel with MemoryPressureListener::MemoryPressureLevel MemoryPressureListener::MemoryPressureLevel enum has changed to 0, 1, 2. Let's align WebMemoryPressureLevel with it BUG= Committed: https://crrev.com/2e296f823ae220a5eae4ce86a8a34d3a190a6429 Cr-Commit-Position: refs/heads/master@{#402691}

Patch Set 1 #

Patch Set 2 : add static_assert check #

Total comments: 1

Patch Set 3 : check in render_thread_impl.cc #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -3 lines) Patch
M content/renderer/render_thread_impl.cc View 1 2 1 chunk +14 lines, -0 lines 0 comments Download
M third_party/WebKit/public/platform/WebMemoryPressureLevel.h View 2 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 29 (9 generated)
hong.zheng
PTAL
4 years, 6 months ago (2016-06-23 03:30:49 UTC) #2
tkent
+bashi It's unfortunate that we can't prevent such mismatch. Can you add static_assert to check ...
4 years, 6 months ago (2016-06-23 03:50:51 UTC) #4
bashi
Thanks for fixing this! We are replacing memory pressure notification with memory coordinator (e.g. https://codereview.chromium.org/2094583002/) ...
4 years, 6 months ago (2016-06-23 04:21:05 UTC) #5
hong.zheng
Thanks for your comments. Add static_assert check. PTAL
4 years, 6 months ago (2016-06-23 05:02:39 UTC) #6
bashi
https://codereview.chromium.org/2086833005/diff/20001/third_party/WebKit/public/platform/WebMemoryPressureLevel.h File third_party/WebKit/public/platform/WebMemoryPressureLevel.h (right): https://codereview.chromium.org/2086833005/diff/20001/third_party/WebKit/public/platform/WebMemoryPressureLevel.h#newcode20 third_party/WebKit/public/platform/WebMemoryPressureLevel.h:20: static_assert(static_cast<WebMemoryPressureLevel>( Can you put these static aseerts in RenderThreadImpl::OnMemoryPressure() ...
4 years, 6 months ago (2016-06-23 05:07:37 UTC) #7
hong.zheng
On 2016/06/23 05:07:37, bashi1 wrote: > https://codereview.chromium.org/2086833005/diff/20001/third_party/WebKit/public/platform/WebMemoryPressureLevel.h > File third_party/WebKit/public/platform/WebMemoryPressureLevel.h (right): > > https://codereview.chromium.org/2086833005/diff/20001/third_party/WebKit/public/platform/WebMemoryPressureLevel.h#newcode20 > ...
4 years, 6 months ago (2016-06-23 05:34:46 UTC) #8
tkent
> There is V8 static_assert check in the front part of render_thread_impl.cc. So I also ...
4 years, 6 months ago (2016-06-23 05:36:51 UTC) #9
hong.zheng
Thanks. esprehn, could you please review render_thread_impl.cc part?
4 years, 6 months ago (2016-06-23 05:44:22 UTC) #11
bashi
non-owner lgtm
4 years, 6 months ago (2016-06-23 07:28:45 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2086833005/40001
4 years, 6 months ago (2016-06-24 01:36:41 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/182597) linux_chromium_chromeos_compile_dbg_ng on tryserver.chromium.linux (JOB_FAILED, ...
4 years, 6 months ago (2016-06-24 01:44:39 UTC) #16
hong.zheng
ping esprehn, could you please take a look?
4 years, 5 months ago (2016-06-28 01:35:02 UTC) #17
esprehn
Why is everything red?
4 years, 5 months ago (2016-06-28 03:51:22 UTC) #18
bashi
Seems that presubmit errors and compile errors w/o this CL. I'll kick a dry-run.
4 years, 5 months ago (2016-06-28 04:39:23 UTC) #19
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2086833005/40001
4 years, 5 months ago (2016-06-28 04:39:44 UTC) #21
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/253550)
4 years, 5 months ago (2016-06-28 05:53:52 UTC) #23
esprehn
lgtm
4 years, 5 months ago (2016-06-28 06:07:39 UTC) #24
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/2086833005/40001
4 years, 5 months ago (2016-06-29 01:27:56 UTC) #26
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 5 months ago (2016-06-29 02:49:15 UTC) #27
commit-bot: I haz the power
4 years, 5 months ago (2016-06-29 02:52:24 UTC) #29
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/2e296f823ae220a5eae4ce86a8a34d3a190a6429
Cr-Commit-Position: refs/heads/master@{#402691}

Powered by Google App Engine
This is Rietveld 408576698