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

Issue 2843723003: Make exo::Surface set device_scale_factor. (Closed)

Created:
3 years, 7 months ago by kylechar
Modified:
3 years, 7 months ago
Reviewers:
reveman
CC:
chromium-reviews, yoshiki
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Make exo::Surface set device_scale_factor. exo::Surface wasn't setting the device_scale_factor in CompositorFrames. This was triggering a DCHECK when the SurfaceInfo for new cc::Surfaces have device_scale_factor == 0. BUG=b/37654593 Review-Url: https://codereview.chromium.org/2843723003 Cr-Commit-Position: refs/heads/master@{#468076} Committed: https://chromium.googlesource.com/chromium/src/+/32dd23efdd4e557eddca40dc0f5bbb8c4e2ab5cc

Patch Set 1 #

Total comments: 4

Patch Set 2 : Get device_scale_factor from aura::Window. #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -1 line) Patch
M components/exo/surface.h View 1 2 chunks +6 lines, -0 lines 3 comments Download
M components/exo/surface.cc View 1 3 chunks +8 lines, -1 line 0 comments Download

Messages

Total messages: 15 (5 generated)
kylechar
3 years, 7 months ago (2017-04-25 19:14:35 UTC) #2
reveman
https://codereview.chromium.org/2843723003/diff/1/components/exo/surface.cc File components/exo/surface.cc (right): https://codereview.chromium.org/2843723003/diff/1/components/exo/surface.cc#newcode850 components/exo/surface.cc:850: frame.metadata.device_scale_factor = state_.buffer_scale; I don't think this is correct ...
3 years, 7 months ago (2017-04-25 20:56:17 UTC) #3
kylechar
https://codereview.chromium.org/2843723003/diff/1/components/exo/surface.cc File components/exo/surface.cc (right): https://codereview.chromium.org/2843723003/diff/1/components/exo/surface.cc#newcode850 components/exo/surface.cc:850: frame.metadata.device_scale_factor = state_.buffer_scale; On 2017/04/25 20:56:17, reveman wrote: > ...
3 years, 7 months ago (2017-04-26 13:56:52 UTC) #4
reveman
https://codereview.chromium.org/2843723003/diff/1/components/exo/surface.cc File components/exo/surface.cc (right): https://codereview.chromium.org/2843723003/diff/1/components/exo/surface.cc#newcode850 components/exo/surface.cc:850: frame.metadata.device_scale_factor = state_.buffer_scale; On 2017/04/26 at 13:56:52, kylechar wrote: ...
3 years, 7 months ago (2017-04-26 17:48:42 UTC) #5
kylechar
https://codereview.chromium.org/2843723003/diff/1/components/exo/surface.cc File components/exo/surface.cc (right): https://codereview.chromium.org/2843723003/diff/1/components/exo/surface.cc#newcode850 components/exo/surface.cc:850: frame.metadata.device_scale_factor = state_.buffer_scale; On 2017/04/26 17:48:42, reveman wrote: > ...
3 years, 7 months ago (2017-04-27 18:24:57 UTC) #6
reveman
one quick question, otherwise lgtm. if we have a bug for this then please update ...
3 years, 7 months ago (2017-04-27 21:01:30 UTC) #7
kylechar
I added the b/ bug since it looks like that is fine. https://codereview.chromium.org/2843723003/diff/20001/components/exo/surface.h File components/exo/surface.h ...
3 years, 7 months ago (2017-04-28 18:02:16 UTC) #9
reveman
https://codereview.chromium.org/2843723003/diff/20001/components/exo/surface.h File components/exo/surface.h (right): https://codereview.chromium.org/2843723003/diff/20001/components/exo/surface.h#newcode321 components/exo/surface.h:321: float device_scale_factor_ = 1.0f; On 2017/04/28 at 18:02:16, kylechar ...
3 years, 7 months ago (2017-04-28 18:06:50 UTC) #10
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/2843723003/20001
3 years, 7 months ago (2017-04-28 18:17:38 UTC) #12
commit-bot: I haz the power
3 years, 7 months ago (2017-04-28 18:53:46 UTC) #15
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/32dd23efdd4e557eddca40dc0f5b...

Powered by Google App Engine
This is Rietveld 408576698