commit | ff013ede39f67bb7d400946e9761d06d28ee40b4 | [log] [tgz] |
---|---|---|
author | Michael Spang <spang@chromium.org> | Fri Oct 12 22:38:23 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Fri Oct 12 22:38:23 2018 |
tree | 3f9b5791b794e5a30e3df624765d491193f14d11 | |
parent | d776debf67053c5d588e7cb824986f4d9defd9b5 [diff] |
ozone: scenic: Initialize device pixel ratio in ScenicWindow When the view properties event arrives before the view metrics event, we get a wildly incorrect surface size due to use of an unitialized scale factor. We're already checking if it's nonzero before deciding the size, so initialize it to zero so that this check can work. Bug: 861853 Test: run_ozone_demo --ozone-platform=scenic --enable-vulkan Change-Id: I6049e05992b1041ee1f63b1f293f1ac2013c82b0 Reviewed-on: https://chromium-review.googlesource.com/c/1279286 Reviewed-by: Sergey Ulanov <sergeyu@chromium.org> Commit-Queue: Sergey Ulanov <sergeyu@chromium.org> Cr-Commit-Position: refs/heads/master@{#599385}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .