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

Issue 2575503003: Getting rid of frame_size_in_dip in Layer::SetShowSurface (Closed)

Created:
4 years ago by Saman Sami
Modified:
4 years ago
Reviewers:
Fady Samuel, reveman, sadrul
CC:
cc-bugs_chromium.org, chromium-reviews, danakj+watch_chromium.org, darin-cc_chromium.org, jam, jbauman+watch_chromium.org, kalyank, miu+watch_chromium.org, piman+watch_chromium.org, Ian Vollick, xjz+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Getting rid of frame_size_in_dip in Layer::SetShowSurface frame_size_in_dip is a function of surface_size and scale, so in order to simplify the API, this CL removes it from the parameter list of Layer::SetShowSurface Committed: https://crrev.com/47fb891dcc80611ff6d28db61440d17699fd5e48 Cr-Commit-Position: refs/heads/master@{#438651}

Patch Set 1 #

Patch Set 2 : up #

Total comments: 7

Patch Set 3 : up #

Total comments: 2

Patch Set 4 : test #

Total comments: 1

Patch Set 5 : x #

Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -24 lines) Patch
M components/exo/surface.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/delegated_frame_host.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/compositor/layer.h View 1 2 3 4 2 chunks +6 lines, -3 lines 0 comments Download
M ui/compositor/layer.cc View 1 2 3 chunks +11 lines, -14 lines 0 comments Download
M ui/compositor/layer_unittest.cc View 1 2 3 4 6 chunks +22 lines, -5 lines 0 comments Download

Messages

Total messages: 38 (24 generated)
Fady Samuel
https://codereview.chromium.org/2575503003/diff/20001/components/exo/surface.cc File components/exo/surface.cc (right): https://codereview.chromium.org/2575503003/diff/20001/components/exo/surface.cc#newcode426 components/exo/surface.cc:426: content_size_, contents_surface_to_layer_scale); Doesn't this mean we're changing behavior? Both ...
4 years ago (2016-12-14 00:33:16 UTC) #10
Saman Sami
https://codereview.chromium.org/2575503003/diff/20001/components/exo/surface.cc File components/exo/surface.cc (right): https://codereview.chromium.org/2575503003/diff/20001/components/exo/surface.cc#newcode426 components/exo/surface.cc:426: content_size_, contents_surface_to_layer_scale); On 2016/12/14 00:33:16, Fady Samuel wrote: > ...
4 years ago (2016-12-14 00:39:46 UTC) #11
Fady Samuel
OK, LGTM!
4 years ago (2016-12-14 00:40:35 UTC) #12
sadrul
https://codereview.chromium.org/2575503003/diff/20001/ui/compositor/layer.h File ui/compositor/layer.h (right): https://codereview.chromium.org/2575503003/diff/20001/ui/compositor/layer.h#newcode299 ui/compositor/layer.h:299: gfx::Size surface_size, Can you rename this to be |surface_size_in_pixels| ...
4 years ago (2016-12-14 01:06:25 UTC) #15
Fady Samuel
https://codereview.chromium.org/2575503003/diff/20001/ui/compositor/layer.h File ui/compositor/layer.h (right): https://codereview.chromium.org/2575503003/diff/20001/ui/compositor/layer.h#newcode299 ui/compositor/layer.h:299: gfx::Size surface_size, On 2016/12/14 01:06:25, sadrul wrote: > Can ...
4 years ago (2016-12-14 01:11:44 UTC) #16
Saman Sami
PTAL https://codereview.chromium.org/2575503003/diff/20001/ui/compositor/layer.h File ui/compositor/layer.h (right): https://codereview.chromium.org/2575503003/diff/20001/ui/compositor/layer.h#newcode299 ui/compositor/layer.h:299: gfx::Size surface_size, On 2016/12/14 01:11:44, Fady Samuel wrote: ...
4 years ago (2016-12-14 01:28:03 UTC) #19
sadrul
lgtm https://codereview.chromium.org/2575503003/diff/40001/ui/compositor/layer_unittest.cc File ui/compositor/layer_unittest.cc (right): https://codereview.chromium.org/2575503003/diff/40001/ui/compositor/layer_unittest.cc#newcode1876 ui/compositor/layer_unittest.cc:1876: gfx::Size(20, 20), 2.0f); The numbers here don't match: ...
4 years ago (2016-12-14 05:13:28 UTC) #22
reveman
lgtm
4 years ago (2016-12-14 15:36:55 UTC) #23
Saman Sami
https://codereview.chromium.org/2575503003/diff/40001/ui/compositor/layer_unittest.cc File ui/compositor/layer_unittest.cc (right): https://codereview.chromium.org/2575503003/diff/40001/ui/compositor/layer_unittest.cc#newcode1876 ui/compositor/layer_unittest.cc:1876: gfx::Size(20, 20), 2.0f); On 2016/12/14 05:13:28, sadrul wrote: > ...
4 years ago (2016-12-14 18:46:05 UTC) #26
Fady Samuel
lgtm
4 years ago (2016-12-14 20:04:24 UTC) #29
sadrul
lgtm https://codereview.chromium.org/2575503003/diff/60001/ui/compositor/layer.h File ui/compositor/layer.h (right): https://codereview.chromium.org/2575503003/diff/60001/ui/compositor/layer.h#newcode390 ui/compositor/layer.h:390: const gfx::Size& frame_size_in_dip() const { return frame_size_in_dip_; } ...
4 years ago (2016-12-14 20:12:41 UTC) #30
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/2575503003/80001
4 years ago (2016-12-14 20:28:49 UTC) #33
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years ago (2016-12-14 22:25:20 UTC) #36
commit-bot: I haz the power
4 years ago (2016-12-14 22:27:46 UTC) #38
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/47fb891dcc80611ff6d28db61440d17699fd5e48
Cr-Commit-Position: refs/heads/master@{#438651}

Powered by Google App Engine
This is Rietveld 408576698