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

Issue 271533014: Make ui::Layer use the cc:LayerTreeHost scale factor directly (Closed)

Created:
6 years, 7 months ago by ccameron
Modified:
6 years, 7 months ago
CC:
chromium-reviews, Ian Vollick, tfarina, sievers+watch_chromium.org, jbauman+watch_chromium.org, kalyank, piman+watch_chromium.org, danakj+watch_chromium.org, cc-bugs_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Make ui::Layer use the cc:LayerTreeHost scale factor directly Make ui::Layer's bounds be the cc::Layer's bounds, rather than a scaled version of them. Delete code in ui::Layer used to compute and track the scaled bounds. Change ui::Compositor to set the device scale factor on the cc::LayerTreeHost when its scale factor is set. BUG=170219 TEST=manual testing with --ash-host-window-bounds=1280x1024*2,1280+0-1280x1024, window dragging, etc Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=270370

Patch Set 1 #

Total comments: 5

Patch Set 2 : Fix mirror mode #

Patch Set 3 : Remove texture scaling fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -147 lines) Patch
M ui/aura/window_unittest.cc View 1 2 2 chunks +0 lines, -2 lines 0 comments Download
M ui/compositor/compositor.cc View 1 chunk +1 line, -0 lines 0 comments Download
M ui/compositor/layer.h View 4 chunks +0 lines, -22 lines 0 comments Download
M ui/compositor/layer.cc View 2 9 chunks +6 lines, -45 lines 0 comments Download
M ui/compositor/layer_animation_element.cc View 4 chunks +5 lines, -21 lines 0 comments Download
M ui/compositor/layer_owner.cc View 1 chunk +0 lines, -1 line 0 comments Download
M ui/compositor/layer_unittest.cc View 6 chunks +22 lines, -45 lines 0 comments Download
M ui/views/view_unittest.cc View 1 chunk +0 lines, -11 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
ccameron
ptal https://codereview.chromium.org/271533014/diff/1/ui/compositor/layer.cc File ui/compositor/layer.cc (right): https://codereview.chromium.org/271533014/diff/1/ui/compositor/layer.cc#newcode922 ui/compositor/layer.cc:922: texture_layer_->SetUV(uv_top_left, uv_bottom_right); Do you have an example of ...
6 years, 7 months ago (2014-05-13 20:06:31 UTC) #1
piman
lgtm https://codereview.chromium.org/271533014/diff/1/ui/compositor/layer.cc File ui/compositor/layer.cc (right): https://codereview.chromium.org/271533014/diff/1/ui/compositor/layer.cc#newcode922 ui/compositor/layer.cc:922: texture_layer_->SetUV(uv_top_left, uv_bottom_right); On 2014/05/13 20:06:31, ccameron1 wrote: > ...
6 years, 7 months ago (2014-05-13 20:13:09 UTC) #2
ccameron
Thanks! Adding ben for OWNER stamp on ui/views changes. https://codereview.chromium.org/271533014/diff/1/ui/compositor/layer.cc File ui/compositor/layer.cc (right): https://codereview.chromium.org/271533014/diff/1/ui/compositor/layer.cc#newcode922 ui/compositor/layer.cc:922: ...
6 years, 7 months ago (2014-05-13 20:28:25 UTC) #3
piman
https://codereview.chromium.org/271533014/diff/1/ui/compositor/layer.cc File ui/compositor/layer.cc (right): https://codereview.chromium.org/271533014/diff/1/ui/compositor/layer.cc#newcode922 ui/compositor/layer.cc:922: texture_layer_->SetUV(uv_top_left, uv_bottom_right); On 2014/05/13 20:28:25, ccameron1 wrote: > On ...
6 years, 7 months ago (2014-05-13 20:32:24 UTC) #4
piman
On Tue, May 13, 2014 at 1:32 PM, <piman@chromium.org> wrote: > > https://codereview.chromium.org/271533014/diff/1/ui/compositor/layer.cc > File ...
6 years, 7 months ago (2014-05-13 20:38:18 UTC) #5
Ben Goodger (Google)
lgtm
6 years, 7 months ago (2014-05-13 20:45:25 UTC) #6
ccameron
https://codereview.chromium.org/271533014/diff/1/ui/compositor/layer.cc File ui/compositor/layer.cc (right): https://codereview.chromium.org/271533014/diff/1/ui/compositor/layer.cc#newcode922 ui/compositor/layer.cc:922: texture_layer_->SetUV(uv_top_left, uv_bottom_right); On 2014/05/13 20:32:24, piman wrote: > On ...
6 years, 7 months ago (2014-05-13 20:55:55 UTC) #7
ccameron
The CQ bit was checked by ccameron@chromium.org
6 years, 7 months ago (2014-05-13 20:56:00 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ccameron@chromium.org/271533014/20001
6 years, 7 months ago (2014-05-13 20:56:35 UTC) #9
ccameron
The CQ bit was unchecked by ccameron@chromium.org
6 years, 7 months ago (2014-05-13 23:58:08 UTC) #10
ccameron
On 2014/05/13 20:38:18, piman wrote: > On Tue, May 13, 2014 at 1:32 PM, <mailto:piman@chromium.org> ...
6 years, 7 months ago (2014-05-14 06:34:56 UTC) #11
ccameron
The CQ bit was checked by ccameron@chromium.org
6 years, 7 months ago (2014-05-14 06:35:01 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ccameron@chromium.org/271533014/40001
6 years, 7 months ago (2014-05-14 06:35:06 UTC) #13
commit-bot: I haz the power
6 years, 7 months ago (2014-05-14 10:02:34 UTC) #14
Message was sent while issue was closed.
Change committed as 270370

Powered by Google App Engine
This is Rietveld 408576698