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

Issue 2475293003: [RemotePlayback] No monitoring on low-end devices (Closed)

Created:
4 years, 1 month ago by whywhat
Modified:
4 years ago
CC:
blink-reviews, chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[RemotePlayback] No monitoring on low-end devices BUG=659672 TEST=layout test with extra plumbing through Internals Committed: https://crrev.com/2707b633861011503944b886e36e3708e39d2593 Cr-Commit-Position: refs/heads/master@{#435095}

Patch Set 1 #

Patch Set 2 : Added a layout test #

Patch Set 3 : Added the internals files #

Total comments: 5

Patch Set 4 : Rebase on MC change #

Total comments: 2

Patch Set 5 : Rebase #

Patch Set 6 : Set isLowEndDevice to false when the test passes #

Patch Set 7 : Rebased on the last CL for isLowEndDevice #

Total comments: 3

Patch Set 8 : Added s_isLowEndDevice #

Patch Set 9 : Reverted to a local static bool #

Patch Set 10 : Use blink::initialize #

Total comments: 2

Patch Set 11 : Moved to Platform::initialize() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+79 lines, -6 lines) Patch
A third_party/WebKit/LayoutTests/media/remoteplayback/watch-availability-throws-low-end-device.html View 1 2 3 4 5 1 chunk +28 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/testing/Internals.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/testing/Internals.cpp View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/testing/Internals.idl View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/remoteplayback/RemotePlayback.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +8 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/MemoryCoordinator.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +14 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/MemoryCoordinator.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +18 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/exported/Platform.cpp View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 78 (34 generated)
whywhat
PTaL
4 years, 1 month ago (2016-11-05 00:28:16 UTC) #3
mlamouri (slow - plz ping)
Could you check whether a setIsLowEndDeviceForTesting() could be added and use this from Internals.idl in ...
4 years, 1 month ago (2016-11-05 08:29:35 UTC) #7
whywhat
Added a layout test
4 years, 1 month ago (2016-11-08 01:20:10 UTC) #8
whywhat
PTAL
4 years, 1 month ago (2016-11-08 01:21:51 UTC) #9
whywhat
Added the internals files
4 years, 1 month ago (2016-11-08 01:42:01 UTC) #10
whywhat
Seems like Mounir forgot to lgtm this one pending added layout test.
4 years, 1 month ago (2016-11-11 20:18:46 UTC) #16
haraken
(I think this is a bug of the architecture, so I'm not sure if I ...
4 years, 1 month ago (2016-11-12 07:31:35 UTC) #18
mlamouri (slow - plz ping)
lgtm but I think you should either move the internals to change the value of ...
4 years, 1 month ago (2016-11-12 20:53:33 UTC) #19
haraken
https://codereview.chromium.org/2475293003/diff/40001/third_party/WebKit/Source/modules/remoteplayback/testing/InternalsRemotePlayback.idl File third_party/WebKit/Source/modules/remoteplayback/testing/InternalsRemotePlayback.idl (right): https://codereview.chromium.org/2475293003/diff/40001/third_party/WebKit/Source/modules/remoteplayback/testing/InternalsRemotePlayback.idl#newcode6 third_party/WebKit/Source/modules/remoteplayback/testing/InternalsRemotePlayback.idl:6: void setIsLowEndDevice(RemotePlayback remote, boolean isLowEndDevice); On 2016/11/12 20:53:33, mlamouri ...
4 years, 1 month ago (2016-11-13 05:56:31 UTC) #20
bashi
platform/MemoryCoordinator seems the best place to have IsLowEndDevice() and SetIsLowEndDeviceForTesting(). https://codereview.chromium.org/2475293003/diff/40001/third_party/WebKit/Source/modules/remoteplayback/testing/InternalsRemotePlayback.idl File third_party/WebKit/Source/modules/remoteplayback/testing/InternalsRemotePlayback.idl (right): https://codereview.chromium.org/2475293003/diff/40001/third_party/WebKit/Source/modules/remoteplayback/testing/InternalsRemotePlayback.idl#newcode6 ...
4 years, 1 month ago (2016-11-13 23:45:12 UTC) #21
whywhat
Ok. I'm inclined at moving the existing call to MemoryCoordinator in the first CL and ...
4 years, 1 month ago (2016-11-14 01:14:08 UTC) #22
whywhat
Ok. I'm inclined at moving the existing call to MemoryCoordinator in the first CL and ...
4 years, 1 month ago (2016-11-14 01:14:08 UTC) #23
haraken
On 2016/11/14 01:14:08, whywhat wrote: > Ok. I'm inclined at moving the existing call to ...
4 years, 1 month ago (2016-11-14 01:36:06 UTC) #24
whywhat
Rebase on MC change
4 years, 1 month ago (2016-11-15 08:37:44 UTC) #25
whywhat
PTAL (depends on https://codereview.chromium.org/2503433003)
4 years, 1 month ago (2016-11-15 08:41:36 UTC) #27
haraken
LGTM, thanks!
4 years, 1 month ago (2016-11-15 08:50:20 UTC) #28
mlamouri (slow - plz ping)
lgtm with question addressed. https://codereview.chromium.org/2475293003/diff/60001/third_party/WebKit/LayoutTests/media/remoteplayback/watch-availability-throws-low-end-device.html File third_party/WebKit/LayoutTests/media/remoteplayback/watch-availability-throws-low-end-device.html (right): https://codereview.chromium.org/2475293003/diff/60001/third_party/WebKit/LayoutTests/media/remoteplayback/watch-availability-throws-low-end-device.html#newcode16 third_party/WebKit/LayoutTests/media/remoteplayback/watch-availability-throws-low-end-device.html:16: internals.setIsLowEndDevice(true); Would this leak to ...
4 years, 1 month ago (2016-11-15 18:18:32 UTC) #29
whywhat
Rebase
4 years, 1 month ago (2016-11-15 20:20:03 UTC) #30
whywhat
Set isLowEndDevice to false when the test passes
4 years, 1 month ago (2016-11-15 20:23:06 UTC) #31
whywhat
https://codereview.chromium.org/2475293003/diff/60001/third_party/WebKit/LayoutTests/media/remoteplayback/watch-availability-throws-low-end-device.html File third_party/WebKit/LayoutTests/media/remoteplayback/watch-availability-throws-low-end-device.html (right): https://codereview.chromium.org/2475293003/diff/60001/third_party/WebKit/LayoutTests/media/remoteplayback/watch-availability-throws-low-end-device.html#newcode16 third_party/WebKit/LayoutTests/media/remoteplayback/watch-availability-throws-low-end-device.html:16: internals.setIsLowEndDevice(true); On 2016/11/15 at 18:18:32, mlamouri (slow) wrote: > ...
4 years, 1 month ago (2016-11-15 20:24:24 UTC) #33
haraken
On 2016/11/15 20:24:24, whywhat wrote: > https://codereview.chromium.org/2475293003/diff/60001/third_party/WebKit/LayoutTests/media/remoteplayback/watch-availability-throws-low-end-device.html > File > third_party/WebKit/LayoutTests/media/remoteplayback/watch-availability-throws-low-end-device.html > (right): > > ...
4 years, 1 month ago (2016-11-15 20:26:08 UTC) #35
bashi
lgtm
4 years, 1 month ago (2016-11-15 21:12:50 UTC) #38
whywhat
Rebased on the last CL for isLowEndDevice
4 years, 1 month ago (2016-11-23 02:15:15 UTC) #39
whywhat
PTAL wrt the new MemoryCoordinator::isLowEndDevice implementation.
4 years, 1 month ago (2016-11-23 02:17:32 UTC) #40
haraken
https://codereview.chromium.org/2475293003/diff/120001/third_party/WebKit/Source/platform/MemoryCoordinator.cpp File third_party/WebKit/Source/platform/MemoryCoordinator.cpp (right): https://codereview.chromium.org/2475293003/diff/120001/third_party/WebKit/Source/platform/MemoryCoordinator.cpp#newcode18 third_party/WebKit/Source/platform/MemoryCoordinator.cpp:18: static bool isLowEndDevice = ::base::SysInfo::IsLowEndDevice(); Can we make this ...
4 years, 1 month ago (2016-11-23 02:31:31 UTC) #43
whywhat
Added s_isLowEndDevice
4 years, 1 month ago (2016-11-23 03:56:45 UTC) #46
whywhat
https://codereview.chromium.org/2475293003/diff/120001/third_party/WebKit/Source/platform/MemoryCoordinator.cpp File third_party/WebKit/Source/platform/MemoryCoordinator.cpp (right): https://codereview.chromium.org/2475293003/diff/120001/third_party/WebKit/Source/platform/MemoryCoordinator.cpp#newcode18 third_party/WebKit/Source/platform/MemoryCoordinator.cpp:18: static bool isLowEndDevice = ::base::SysInfo::IsLowEndDevice(); On 2016/11/23 at 02:31:31, ...
4 years, 1 month ago (2016-11-23 03:57:01 UTC) #47
whywhat
https://codereview.chromium.org/2475293003/diff/120001/third_party/WebKit/Source/platform/MemoryCoordinator.cpp File third_party/WebKit/Source/platform/MemoryCoordinator.cpp (right): https://codereview.chromium.org/2475293003/diff/120001/third_party/WebKit/Source/platform/MemoryCoordinator.cpp#newcode18 third_party/WebKit/Source/platform/MemoryCoordinator.cpp:18: static bool isLowEndDevice = ::base::SysInfo::IsLowEndDevice(); On 2016/11/23 at 03:57:01, ...
4 years, 1 month ago (2016-11-23 04:08:42 UTC) #48
whywhat
Reverted to a local static bool
4 years, 1 month ago (2016-11-23 04:11:27 UTC) #49
whywhat
4 years, 1 month ago (2016-11-23 04:11:42 UTC) #51
bashi
FWIW, the value of SysInfo::IsLowEndDevice() may depend on when it is called. crbug.com/657939 We might ...
4 years ago (2016-11-23 05:15:27 UTC) #55
haraken
On 2016/11/23 05:15:27, bashi1 wrote: > FWIW, the value of SysInfo::IsLowEndDevice() may depend on when ...
4 years ago (2016-11-23 05:40:59 UTC) #56
bashi
On 2016/11/23 05:40:59, haraken wrote: > On 2016/11/23 05:15:27, bashi1 wrote: > > FWIW, the ...
4 years ago (2016-11-23 05:55:06 UTC) #57
haraken
On 2016/11/23 05:55:06, bashi1 wrote: > On 2016/11/23 05:40:59, haraken wrote: > > On 2016/11/23 ...
4 years ago (2016-11-23 06:17:26 UTC) #60
whywhat
On 2016/11/23 at 06:17:26, haraken wrote: > On 2016/11/23 05:55:06, bashi1 wrote: > > On ...
4 years ago (2016-11-23 18:16:50 UTC) #61
haraken
On 2016/11/23 18:16:50, whywhat_OOO_till_Mon_Nov_28 wrote: > On 2016/11/23 at 06:17:26, haraken wrote: > > On ...
4 years ago (2016-11-24 04:19:48 UTC) #62
whywhat
Use blink::initialize
4 years ago (2016-11-28 22:05:40 UTC) #63
whywhat
PTAL Using base::SysInfo is not allowed from WebKit.cpp so I had to add an initialize() ...
4 years ago (2016-11-28 22:12:30 UTC) #66
haraken
LGTM with a comment. https://codereview.chromium.org/2475293003/diff/180001/third_party/WebKit/Source/web/WebKit.cpp File third_party/WebKit/Source/web/WebKit.cpp (right): https://codereview.chromium.org/2475293003/diff/180001/third_party/WebKit/Source/web/WebKit.cpp#newcode86 third_party/WebKit/Source/web/WebKit.cpp:86: MemoryCoordinator::initialize(); We should call this ...
4 years ago (2016-11-29 02:02:46 UTC) #69
whywhat
Moved to Platform::initialize()
4 years ago (2016-11-29 19:52:15 UTC) #70
whywhat
https://codereview.chromium.org/2475293003/diff/180001/third_party/WebKit/Source/web/WebKit.cpp File third_party/WebKit/Source/web/WebKit.cpp (right): https://codereview.chromium.org/2475293003/diff/180001/third_party/WebKit/Source/web/WebKit.cpp#newcode86 third_party/WebKit/Source/web/WebKit.cpp:86: MemoryCoordinator::initialize(); On 2016/11/29 at 02:02:46, haraken wrote: > We ...
4 years ago (2016-11-29 20:04:44 UTC) #71
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/2475293003/200001
4 years ago (2016-11-29 20:05:23 UTC) #74
commit-bot: I haz the power
Committed patchset #11 (id:200001)
4 years ago (2016-11-29 22:28:38 UTC) #76
commit-bot: I haz the power
4 years ago (2016-11-29 22:39:19 UTC) #78
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/2707b633861011503944b886e36e3708e39d2593
Cr-Commit-Position: refs/heads/master@{#435095}

Powered by Google App Engine
This is Rietveld 408576698