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

Issue 1972433002: [Chromecast] Handle device scale factor correctly (Closed)

Created:
4 years, 7 months ago by halliwell
Modified:
4 years, 7 months ago
Reviewers:
derekjchow1, Simeon, alokp
CC:
chromium-reviews, lcwu+watch_chromium.org, dglazkov+blink, apavlov+blink_chromium.org, halliwell+watch_chromium.org, darktears, blink-reviews, blink-reviews-css, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Chromecast] Handle device scale factor correctly On ATV, this removes the forced device scale factor hack; it can have its intended natural value for the platform. On Linux, we use device scale factor of 1.5 when we can use a 1080p device resolution. With this, all applications should get a 720p viewport (in CSS pixels). Applications that wish to provide higher-res assets can use CSS or JS to detect the higher scale factor. BUG=internal b/28199180 Committed: https://crrev.com/b7f20ad97366a9392432f65ef330545a40d71674 Cr-Commit-Position: refs/heads/master@{#394034}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Simpler approach after offline discussion with alokp #

Total comments: 1

Patch Set 3 : Set device scale factor correctly #

Total comments: 10

Patch Set 4 : Make it work on ATV + alokp nits #

Patch Set 5 : oops #

Total comments: 6

Patch Set 6 : Add missing include #

Patch Set 7 : Fix test compile error #

Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -150 lines) Patch
M chromecast/browser/android/BUILD.gn View 1 chunk +0 lines, -1 line 0 comments Download
M chromecast/browser/android/apk/src/org/chromium/chromecast/shell/CastBrowserHelper.java View 1 2 3 2 chunks +0 lines, -4 lines 0 comments Download
M chromecast/browser/android/apk/src/org/chromium/chromecast/shell/CastShellActivity.java View 4 chunks +0 lines, -29 lines 0 comments Download
D chromecast/browser/android/apk/src/org/chromium/chromecast/shell/CastSwitches.java View 1 chunk +0 lines, -14 lines 0 comments Download
M chromecast/browser/android/cast_window_android.cc View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M chromecast/browser/cast_browser_main_parts.cc View 1 2 3 4 2 chunks +5 lines, -10 lines 0 comments Download
M chromecast/browser/cast_content_window.h View 1 2 1 chunk +2 lines, -4 lines 0 comments Download
M chromecast/browser/cast_content_window.cc View 1 2 3 4 5 3 chunks +12 lines, -13 lines 0 comments Download
M chromecast/browser/service/cast_service_simple.cc View 1 2 1 chunk +2 lines, -5 lines 0 comments Download
M chromecast/browser/test/chromecast_browser_test_helper_default.cc View 1 2 3 4 5 6 1 chunk +2 lines, -3 lines 0 comments Download
M chromecast/graphics/cast_screen.h View 1 2 3 3 chunks +0 lines, -8 lines 0 comments Download
M chromecast/graphics/cast_screen.cc View 1 2 3 3 chunks +18 lines, -22 lines 0 comments Download
M chromecast/media/base/video_plane_controller.h View 1 2 3 3 chunks +3 lines, -10 lines 0 comments Download
M chromecast/media/base/video_plane_controller.cc View 1 2 3 3 chunks +3 lines, -25 lines 0 comments Download

Messages

Total messages: 32 (13 generated)
halliwell
PTAL. As you'll see from the internal CL, I haven't finished the ATV codepath yet, ...
4 years, 7 months ago (2016-05-11 01:09:08 UTC) #3
alokp
https://codereview.chromium.org/1972433002/diff/1/chromecast/browser/cast_content_browser_client.cc File chromecast/browser/cast_content_browser_client.cc (right): https://codereview.chromium.org/1972433002/diff/1/chromecast/browser/cast_content_browser_client.cc#newcode293 chromecast/browser/cast_content_browser_client.cc:293: prefs->viewport_enabled = false; This seems risky to me. I ...
4 years, 7 months ago (2016-05-11 16:46:54 UTC) #4
halliwell
On 2016/05/11 16:46:54, alokp wrote: > https://codereview.chromium.org/1972433002/diff/1/chromecast/browser/cast_content_browser_client.cc > File chromecast/browser/cast_content_browser_client.cc (right): > > https://codereview.chromium.org/1972433002/diff/1/chromecast/browser/cast_content_browser_client.cc#newcode293 > ...
4 years, 7 months ago (2016-05-11 17:56:56 UTC) #5
halliwell
Updated with a first pass at new approach ... still needs testing though :)
4 years, 7 months ago (2016-05-11 21:40:59 UTC) #7
alokp
This looks pretty good. Still need to verify the theory that: 1. device-scale-factor will obviate ...
4 years, 7 months ago (2016-05-11 21:48:48 UTC) #8
halliwell
On 2016/05/11 21:48:48, alokp wrote: > This looks pretty good. Still need to verify the ...
4 years, 7 months ago (2016-05-12 21:10:12 UTC) #10
alokp
lgtm % nits https://codereview.chromium.org/1972433002/diff/40001/chromecast/browser/cast_browser_main_parts.cc File chromecast/browser/cast_browser_main_parts.cc (right): https://codereview.chromium.org/1972433002/diff/40001/chromecast/browser/cast_browser_main_parts.cc#newcode371 chromecast/browser/cast_browser_main_parts.cc:371: #if defined(USE_AURA) nit: move the logic ...
4 years, 7 months ago (2016-05-12 21:35:16 UTC) #11
halliwell
This patchset contains changes to get it working on ATV. In particular: * It didn't ...
4 years, 7 months ago (2016-05-13 23:48:03 UTC) #12
alokp
still lgtm https://codereview.chromium.org/1972433002/diff/80001/chromecast/browser/cast_content_window.cc File chromecast/browser/cast_content_window.cc (right): https://codereview.chromium.org/1972433002/diff/80001/chromecast/browser/cast_content_window.cc#newcode76 chromecast/browser/cast_content_window.cc:76: gfx::Size display_size = Ideally we should query ...
4 years, 7 months ago (2016-05-14 05:15:32 UTC) #13
halliwell
https://codereview.chromium.org/1972433002/diff/80001/chromecast/browser/cast_content_window.cc File chromecast/browser/cast_content_window.cc (right): https://codereview.chromium.org/1972433002/diff/80001/chromecast/browser/cast_content_window.cc#newcode76 chromecast/browser/cast_content_window.cc:76: gfx::Size display_size = On 2016/05/14 05:15:32, alokp wrote: > ...
4 years, 7 months ago (2016-05-16 15:48:48 UTC) #14
alokp
https://codereview.chromium.org/1972433002/diff/80001/chromecast/browser/cast_content_window.cc File chromecast/browser/cast_content_window.cc (right): https://codereview.chromium.org/1972433002/diff/80001/chromecast/browser/cast_content_window.cc#newcode76 chromecast/browser/cast_content_window.cc:76: gfx::Size display_size = On 2016/05/16 15:48:48, halliwell wrote: > ...
4 years, 7 months ago (2016-05-16 16:26:14 UTC) #15
halliwell
https://codereview.chromium.org/1972433002/diff/80001/chromecast/browser/cast_content_window.cc File chromecast/browser/cast_content_window.cc (right): https://codereview.chromium.org/1972433002/diff/80001/chromecast/browser/cast_content_window.cc#newcode76 chromecast/browser/cast_content_window.cc:76: gfx::Size display_size = On 2016/05/16 16:26:14, alokp wrote: > ...
4 years, 7 months ago (2016-05-16 20:42:20 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1972433002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1972433002/80001
4 years, 7 months ago (2016-05-16 23:07:45 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_android on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/cast_shell_android/builds/66852)
4 years, 7 months ago (2016-05-16 23:29:30 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1972433002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1972433002/100001
4 years, 7 months ago (2016-05-17 00:07:28 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/161333)
4 years, 7 months ago (2016-05-17 00:22:58 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1972433002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1972433002/120001
4 years, 7 months ago (2016-05-17 01:52:37 UTC) #28
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 7 months ago (2016-05-17 03:09:18 UTC) #30
commit-bot: I haz the power
4 years, 7 months ago (2016-05-17 03:10:26 UTC) #32
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/b7f20ad97366a9392432f65ef330545a40d71674
Cr-Commit-Position: refs/heads/master@{#394034}

Powered by Google App Engine
This is Rietveld 408576698