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

Issue 10221028: Move DIP translation from ui/aura to ui/compositor (Closed)

Created:
8 years, 7 months ago by oshima
Modified:
8 years, 7 months ago
Reviewers:
Daniel Erat, sky, piman
CC:
chromium-reviews, Ian Vollick, piman+watch_chromium.org, dhollowa+watch_chromium.org, jonathan.backer, pkotwicz
Visibility:
Public.

Description

Move DIP translation from ui/aura to ui/compositor. Layer's coordinate system is now in DIP. Added support of dynamic density switching. Removed ENABLE_DIP gyp/macro and added runtime flag "--ui-enable-dip" BUG=105165, 114666 TEST=enabled monitor test. added new tests to compositor_unittests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=135888

Patch Set 1 #

Patch Set 2 : compositor dip #

Patch Set 3 : . #

Patch Set 4 : latest #

Patch Set 5 : . #

Patch Set 6 : for try #

Patch Set 7 : cleanup&sync #

Patch Set 8 : remove dip from gyp #

Total comments: 12

Patch Set 9 : reuse compositor: for comparison #

Patch Set 10 : . #

Total comments: 9

Patch Set 11 : . #

Patch Set 12 : gyp fix #

Total comments: 2

Patch Set 13 : revert change i made by accident #

Total comments: 12

Patch Set 14 : . #

Patch Set 15 : addressed comments #

Patch Set 16 : sync #

Patch Set 17 : fix merge error #

Patch Set 18 : win aura text fix #

Patch Set 19 : disable tests that doesn't run on bots #

Unified diffs Side-by-side diffs Delta from patch set Stats (+631 lines, -480 lines) Patch
M ash/accelerators/accelerator_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +5 lines, -2 lines 0 comments Download
M ash/accelerators/accelerator_table.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +3 lines, -2 lines 0 comments Download
M ash/accelerators/accelerator_table.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +3 lines, -2 lines 0 comments Download
M ash/dip_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +20 lines, -45 lines 0 comments Download
M ash/monitor/multi_monitor_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +2 lines, -0 lines 0 comments Download
M ash/monitor/multi_monitor_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +22 lines, -0 lines 0 comments Download
M ash/wm/image_grid.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +1 line, -10 lines 0 comments Download
M ash/wm/image_grid.cc View 1 2 3 4 5 5 chunks +11 lines, -24 lines 0 comments Download
M ash/wm/image_grid_unittest.cc View 1 6 chunks +6 lines, -6 lines 0 comments Download
M ash/wm/resize_shadow.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -1 line 0 comments Download
M ash/wm/shadow.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +1 line, -9 lines 0 comments Download
M ash/wm/shadow.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +2 lines, -2 lines 0 comments Download
M ash/wm/shadow_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -2 lines 0 comments Download
M ash/wm/shelf_layout_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 5 chunks +3 lines, -8 lines 0 comments Download
M ash/wm/window_animations.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 5 chunks +6 lines, -8 lines 0 comments Download
M build/common.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 5 chunks +0 lines, -9 lines 0 comments Download
M chrome/browser/ui/views/ash/window_positioner.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/window_snapshot/window_snapshot_aura.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +3 lines, -0 lines 0 comments Download
M ui/aura/aura.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +0 lines, -2 lines 0 comments Download
D ui/aura/dip_util.h View 1 1 chunk +0 lines, -41 lines 0 comments Download
D ui/aura/dip_util.cc View 1 1 chunk +0 lines, -84 lines 0 comments Download
M ui/aura/root_window.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +3 lines, -4 lines 0 comments Download
M ui/aura/root_window.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 13 chunks +57 lines, -46 lines 0 comments Download
M ui/aura/window.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +1 line, -5 lines 0 comments Download
M ui/aura/window.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 6 chunks +6 lines, -31 lines 0 comments Download
M ui/compositor/compositor.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 5 chunks +16 lines, -10 lines 0 comments Download
M ui/compositor/compositor.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 4 chunks +27 lines, -18 lines 0 comments Download
M ui/compositor/compositor.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +2 lines, -0 lines 0 comments Download
M ui/compositor/compositor_switches.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -0 lines 0 comments Download
M ui/compositor/compositor_switches.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +3 lines, -0 lines 0 comments Download
A ui/compositor/dip_util.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +64 lines, -0 lines 0 comments Download
A ui/compositor/dip_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +101 lines, -0 lines 0 comments Download
M ui/compositor/layer.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 5 chunks +21 lines, -2 lines 0 comments Download
M ui/compositor/layer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 10 chunks +60 lines, -14 lines 0 comments Download
M ui/compositor/layer_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 9 chunks +163 lines, -5 lines 0 comments Download
M ui/compositor/test/test_compositor_host_linux.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +2 lines, -1 line 0 comments Download
M ui/compositor/test/test_compositor_host_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +2 lines, -1 line 0 comments Download
M ui/gfx/insets_f.h View 1 2 3 4 1 chunk +0 lines, -4 lines 0 comments Download
M ui/gfx/monitor.h View 1 2 3 4 1 chunk +3 lines, -4 lines 0 comments Download
M ui/gfx/monitor.cc View 1 2 3 4 1 chunk +0 lines, -4 lines 0 comments Download
M ui/gfx/monitor_unittest.cc View 1 2 3 4 2 chunks +0 lines, -2 lines 0 comments Download
M ui/gfx/path.h View 1 2 3 4 1 chunk +0 lines, -4 lines 0 comments Download
M ui/gfx/path.cc View 1 2 3 4 1 chunk +0 lines, -2 lines 0 comments Download
M ui/gfx/point_f.h View 1 2 3 4 1 chunk +0 lines, -4 lines 0 comments Download
M ui/gfx/rect_f.h View 1 2 3 4 1 chunk +0 lines, -4 lines 0 comments Download
M ui/gfx/size_f.h View 1 2 3 4 1 chunk +0 lines, -4 lines 0 comments Download
M ui/ui.gyp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -12 lines 0 comments Download
M ui/views/view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 5 chunks +5 lines, -38 lines 0 comments Download

Messages

Total messages: 28 (0 generated)
oshima
Hi, this is not for full review, but want to get early feedback about the ...
8 years, 7 months ago (2012-05-02 20:19:28 UTC) #1
oshima
+vollick for feedback on animation side.
8 years, 7 months ago (2012-05-02 20:22:57 UTC) #2
sky
If I'm reading this right this feels a bit half way there. You're making Layer ...
8 years, 7 months ago (2012-05-02 21:15:41 UTC) #3
oshima
On 2012/05/02 21:15:41, sky wrote: > If I'm reading this right this feels a bit ...
8 years, 7 months ago (2012-05-02 21:29:03 UTC) #4
oshima
I was a bit wrong here. If layer uses DIP as default (that is, bounds() ...
8 years, 7 months ago (2012-05-02 22:06:36 UTC) #5
piman
On Wed, May 2, 2012 at 3:06 PM, <oshima@chromium.org> wrote: > I was a bit ...
8 years, 7 months ago (2012-05-02 22:57:54 UTC) #6
sky
On Wed, May 2, 2012 at 3:57 PM, Antoine Labour <piman@chromium.org> wrote: > > > ...
8 years, 7 months ago (2012-05-02 23:16:42 UTC) #7
oshima
I looked into this yesterday. Turns out that translation operate on web_layer (which is obvious ...
8 years, 7 months ago (2012-05-03 17:31:56 UTC) #8
oshima
On 2012/05/03 17:31:56, oshima wrote: > I looked into this yesterday. Turns out that translation ...
8 years, 7 months ago (2012-05-03 17:35:16 UTC) #9
oshima
Uploaded new patch. I'm working on tests and will add this to this CL a ...
8 years, 7 months ago (2012-05-04 18:12:55 UTC) #10
piman
Overall, I think this is a great approach. The UI code doesn't have to care ...
8 years, 7 months ago (2012-05-04 18:46:06 UTC) #11
oshima
http://codereview.chromium.org/10221028/diff/29009/ui/gfx/compositor/layer.cc File ui/gfx/compositor/layer.cc (right): http://codereview.chromium.org/10221028/diff/29009/ui/gfx/compositor/layer.cc#newcode544 ui/gfx/compositor/layer.cc:544: Compositor* compositor = GetCompositor(); On 2012/05/04 18:46:06, piman wrote: ...
8 years, 7 months ago (2012-05-04 21:08:05 UTC) #12
piman
On Fri, May 4, 2012 at 2:08 PM, <oshima@chromium.org> wrote: > > http://codereview.chromium.**org/10221028/diff/29009/ui/** > gfx/compositor/layer.cc<http://codereview.chromium.org/10221028/diff/29009/ui/gfx/compositor/layer.cc> ...
8 years, 7 months ago (2012-05-04 21:20:18 UTC) #13
oshima
On 2012/05/04 21:20:18, piman wrote: > On Fri, May 4, 2012 at 2:08 PM, <mailto:oshima@chromium.org> ...
8 years, 7 months ago (2012-05-04 21:42:43 UTC) #14
sky
As discussed in person I don't remember the specifics, but I prefer looking up the ...
8 years, 7 months ago (2012-05-04 23:23:45 UTC) #15
oshima
Hi, I uploaded three patches with different approaches. reduced number of times to lookup to ...
8 years, 7 months ago (2012-05-06 02:27:17 UTC) #16
Daniel Erat
FYI drive-by nits http://codereview.chromium.org/10221028/diff/17007/ash/accelerators/accelerator_table.h File ash/accelerators/accelerator_table.h (right): http://codereview.chromium.org/10221028/diff/17007/ash/accelerators/accelerator_table.h#newcode64 ash/accelerators/accelerator_table.h:64: SCALE_MONITOR, nit: keep alphabetized (like the ...
8 years, 7 months ago (2012-05-07 19:44:05 UTC) #17
piman
On Sat, May 5, 2012 at 7:27 PM, <oshima@chromium.org> wrote: > Hi, I uploaded three ...
8 years, 7 months ago (2012-05-07 19:55:38 UTC) #18
oshima
On Mon, May 7, 2012 at 12:55 PM, Antoine Labour <piman@chromium.org> wrote: > > > ...
8 years, 7 months ago (2012-05-07 20:01:41 UTC) #19
sky
The main area this would effect is paint. In particular paint would now have to ...
8 years, 7 months ago (2012-05-07 21:57:43 UTC) #20
oshima
Uploaded new patch. PTAL.
8 years, 7 months ago (2012-05-08 00:12:04 UTC) #21
oshima
http://codereview.chromium.org/10221028/diff/17007/ash/accelerators/accelerator_table.h File ash/accelerators/accelerator_table.h (right): http://codereview.chromium.org/10221028/diff/17007/ash/accelerators/accelerator_table.h#newcode64 ash/accelerators/accelerator_table.h:64: SCALE_MONITOR, On 2012/05/07 19:44:05, Daniel Erat wrote: > nit: ...
8 years, 7 months ago (2012-05-08 00:17:24 UTC) #22
piman
ui/compositor lgtm (with nit) http://codereview.chromium.org/10221028/diff/28102/ui/gfx/compositor/layer.cc File ui/gfx/compositor/layer.cc (right): http://codereview.chromium.org/10221028/diff/28102/ui/gfx/compositor/layer.cc#newcode100 ui/gfx/compositor/layer.cc:100: compositor && device_scale_factor_ != compositor->device_scale_factor()) ...
8 years, 7 months ago (2012-05-08 00:28:46 UTC) #23
sky
http://codereview.chromium.org/10221028/diff/20052/ash/monitor/multi_monitor_manager.h File ash/monitor/multi_monitor_manager.h (right): http://codereview.chromium.org/10221028/diff/20052/ash/monitor/multi_monitor_manager.h#newcode40 ash/monitor/multi_monitor_manager.h:40: static void ScaleMonitor(); Should this be named ToggleMonitorScale? http://codereview.chromium.org/10221028/diff/20052/ui/gfx/compositor/compositor.cc ...
8 years, 7 months ago (2012-05-08 00:41:58 UTC) #24
Daniel Erat
On Mon, May 7, 2012 at 5:17 PM, <oshima@chromium.org> wrote: > > http://codereview.chromium.org/10221028/diff/17007/ash/accelerators/accelerator_table.h > File ...
8 years, 7 months ago (2012-05-08 00:45:07 UTC) #25
oshima
http://codereview.chromium.org/10221028/diff/20052/ash/monitor/multi_monitor_manager.h File ash/monitor/multi_monitor_manager.h (right): http://codereview.chromium.org/10221028/diff/20052/ash/monitor/multi_monitor_manager.h#newcode40 ash/monitor/multi_monitor_manager.h:40: static void ScaleMonitor(); On 2012/05/08 00:41:59, sky wrote: > ...
8 years, 7 months ago (2012-05-08 01:24:16 UTC) #26
oshima
http://codereview.chromium.org/10221028/diff/20052/ui/gfx/compositor/layer.cc File ui/gfx/compositor/layer.cc (right): http://codereview.chromium.org/10221028/diff/20052/ui/gfx/compositor/layer.cc#newcode56 ui/gfx/compositor/layer.cc:56: device_scale_factor_(0.0f) { On 2012/05/08 00:41:59, sky wrote: > I ...
8 years, 7 months ago (2012-05-08 01:27:25 UTC) #27
sky
8 years, 7 months ago (2012-05-08 15:36:15 UTC) #28
LGTM

Powered by Google App Engine
This is Rietveld 408576698