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

Issue 2617623002: Switch RenderWidgetHostViewAndroid to use Screen (Closed)

Created:
3 years, 11 months ago by boliu
Modified:
3 years, 11 months ago
CC:
chromium-reviews, yusukes+watch_chromium.org, shuchen+watch_chromium.org, jam, nona+watch_chromium.org, darin-cc_chromium.org, James Su, Tima Vaisburd
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Switch RenderWidgetHostViewAndroid to use Screen Start to remove usage of native device_display_info.h and eventually removing it altogether. RenderWidgetHostViewAndroid uses the primary display size to calculate the max texture size. Loop over all Displays and use the largest one to calculate this instead. Note need to add storage for physical size in Display, since there are rounding errors if the physical size is computed from float scale and integer dip size. BUG=625089 Review-Url: https://codereview.chromium.org/2617623002 Cr-Commit-Position: refs/heads/master@{#442634} Committed: https://chromium.googlesource.com/chromium/src/+/fa8bcd12c55c0997520ff969de9e70ab6d0a59dc

Patch Set 1 #

Patch Set 2 : physical #

Patch Set 3 : GetSizeInPixel #

Patch Set 4 : debug #

Patch Set 5 : moar debug #

Patch Set 6 : fix? #

Total comments: 4

Patch Set 7 : os_android #

Patch Set 8 : remove comment change #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -9 lines) Patch
M content/browser/renderer_host/render_widget_host_view_android.cc View 1 2 3 4 5 6 7 3 chunks +14 lines, -8 lines 0 comments Download
M content/browser/web_contents/web_contents_android.cc View 1 chunk +0 lines, -1 line 0 comments Download
M ui/android/display_android_manager.cc View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M ui/display/display.h View 1 2 3 4 5 6 7 2 chunks +6 lines, -0 lines 0 comments Download
M ui/display/display.cc View 1 2 3 4 5 6 2 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 34 (22 generated)
boliu
ptal
3 years, 11 months ago (2017-01-05 20:12:39 UTC) #5
boliu
interesting, failures on n5x looks real. All hitting DCHECKs like [FATAL:mapped_memory.h(142)] Check failed: multiple % ...
3 years, 11 months ago (2017-01-06 01:22:02 UTC) #9
boliu
On 2017/01/06 01:22:02, boliu wrote: > interesting, failures on n5x looks real. All hitting DCHECKs ...
3 years, 11 months ago (2017-01-06 03:37:30 UTC) #11
boliu
+oshima for ui/display ptal, fixed the rounding error by storing the physical size separately in ...
3 years, 11 months ago (2017-01-06 06:08:45 UTC) #17
oshima
https://codereview.chromium.org/2617623002/diff/100001/ui/display/display.cc File ui/display/display.cc (right): https://codereview.chromium.org/2617623002/diff/100001/ui/display/display.cc#newcode156 ui/display/display.cc:156: size_in_pixels_ = bounds_in_pixel.size(); Would you mind adding ifdef android ...
3 years, 11 months ago (2017-01-06 19:31:23 UTC) #20
boliu
ptal https://codereview.chromium.org/2617623002/diff/100001/ui/display/display.cc File ui/display/display.cc (right): https://codereview.chromium.org/2617623002/diff/100001/ui/display/display.cc#newcode156 ui/display/display.cc:156: size_in_pixels_ = bounds_in_pixel.size(); On 2017/01/06 19:31:23, oshima wrote: ...
3 years, 11 months ago (2017-01-06 20:26:21 UTC) #21
oshima
lgtm
3 years, 11 months ago (2017-01-06 21:55:28 UTC) #22
boliu
aelias: ping for ui/gfx/android +tedchoc for ui/android
3 years, 11 months ago (2017-01-10 00:29:57 UTC) #24
Ted C
On 2017/01/10 00:29:57, boliu wrote: > aelias: ping for ui/gfx/android > +tedchoc for ui/android lgtm ...
3 years, 11 months ago (2017-01-10 00:58:36 UTC) #25
boliu
On 2017/01/10 00:58:36, Ted C wrote: > On 2017/01/10 00:29:57, boliu wrote: > > aelias: ...
3 years, 11 months ago (2017-01-10 17:16:05 UTC) #28
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/2617623002/140001
3 years, 11 months ago (2017-01-10 17:22:24 UTC) #31
commit-bot: I haz the power
3 years, 11 months ago (2017-01-10 18:25:44 UTC) #34
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/fa8bcd12c55c0997520ff969de9e...

Powered by Google App Engine
This is Rietveld 408576698