Fadi Meawad posted comments on this change.
Patch set 1:Commit-Queue +1
To view, visit change 546997. To unsubscribe, visit settings.
Fadi Meawad would like Shubhie Panicker and Kentaro Hara to review this change.
[device-ram] Update the <value> calculations to match the updated spec
After implmenting the original spec, we noticed that the returned value
did not provide a good representation of the actual device-ram.
The issue was discussed on the spec:
https://github.com/WICG/device-ram/issues/1 and the spec was updated.
The new <value> is a rounding (instead of flooring) of the actual
memory to a bound that can have only the 2 most significant bits set.
More details in the spec description at:
https://github.com/WICG/device-ram
Bug:chromium:718622
Change-Id: I33df6b0480b8e65a24fe4765839fb22633dfcd43
---
M third_party/WebKit/Source/core/loader/FrameFetchContext.cpp
M third_party/WebKit/Source/core/loader/FrameFetchContextTest.cpp
2 files changed, 27 insertions(+), 17 deletions(-)
PTAL :)
Kentaro Hara posted comments on this change.
Patch set 1:Code-Review +1
LGTM
Fadi Meawad posted comments on this change.
Patch set 1:Commit-Queue +2
Commit Bot merged this change.
[device-ram] Update the <value> calculations to match the updated spec
After implmenting the original spec, we noticed that the returned value
did not provide a good representation of the actual device-ram.
The issue was discussed on the spec:
https://github.com/WICG/device-ram/issues/1 and the spec was updated.
The new <value> is a rounding (instead of flooring) of the actual
memory to a bound that can have only the 2 most significant bits set.
More details in the spec description at:
https://github.com/WICG/device-ram
Bug: chromium:718622
Change-Id: I33df6b0480b8e65a24fe4765839fb22633dfcd43
Reviewed-on: https://chromium-review.googlesource.com/546997
Reviewed-by: Kentaro Hara <har...@chromium.org>
Commit-Queue: Fadi Meawad <fme...@chromium.org>
Cr-Commit-Position: refs/heads/master@{#482306}
---
M third_party/WebKit/Source/core/loader/FrameFetchContext.cpp
M third_party/WebKit/Source/core/loader/FrameFetchContextTest.cpp
2 files changed, 27 insertions(+), 17 deletions(-)
Shubhie Panicker posted comments on this change.
Patch set 2:
LGTM