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

Issue 1002393002: Change ui::wm::Shadow to pass ImageSkia instead of SkBitmap. (Closed)

Created:
5 years, 9 months ago by hshi1
Modified:
5 years, 9 months ago
Reviewers:
danakj, oshima, piman
CC:
chromium-reviews, Ian Vollick, 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
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Change ui::wm::Shadow to pass ImageSkia instead of SkBitmap. This allows ui::Layer to take scale factor into consideration when updating the cc::NinePatchLayer. BUG=466950 R=danakj@chromium.org R=oshima@chromium.org TBR=sky@chromium.org TEST=verify on HiDPI display as well as HiDPI + LowDPI extended mode that shadows are correct. Committed: https://crrev.com/270f62296ebb49c6bcaff3dc8715346d3f0d321a Cr-Commit-Position: refs/heads/master@{#320974}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Handle device scale factor change. #

Total comments: 4

Patch Set 3 : address Dana's comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -7 lines) Patch
M ui/compositor/layer.h View 1 2 3 chunks +9 lines, -3 lines 0 comments Download
M ui/compositor/layer.cc View 1 2 3 chunks +12 lines, -3 lines 0 comments Download
M ui/wm/core/shadow.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 25 (8 generated)
hshi1
PTAL. This CL intends to let ui::Layer take care of device scale factor related calculations ...
5 years, 9 months ago (2015-03-14 01:20:15 UTC) #2
hshi1
On 2015/03/14 01:20:15, hshi1 wrote: > PTAL. This CL intends to let ui::Layer take care ...
5 years, 9 months ago (2015-03-14 01:38:48 UTC) #3
oshima
On 2015/03/14 01:38:48, hshi1 wrote: > On 2015/03/14 01:20:15, hshi1 wrote: > > PTAL. This ...
5 years, 9 months ago (2015-03-14 05:39:46 UTC) #4
oshima
https://codereview.chromium.org/1002393002/diff/1/ui/compositor/layer.cc File ui/compositor/layer.cc (right): https://codereview.chromium.org/1002393002/diff/1/ui/compositor/layer.cc#newcode82 ui/compositor/layer.cc:82: nine_patch_layer_bitmap_scale_factor_(1.0f) { Why you need this? You should just ...
5 years, 9 months ago (2015-03-14 05:42:55 UTC) #5
hshi1
PTAL patch set #2. I have verified that it handles device scale factor changes correctly. ...
5 years, 9 months ago (2015-03-16 16:50:48 UTC) #6
hshi1
Nico is traveling. piman/danakj (OWNER of ui/compositor) can you review? Thanks!
5 years, 9 months ago (2015-03-16 17:09:59 UTC) #8
hshi1
Ping...? I think this is a fairly straightforward change, please?
5 years, 9 months ago (2015-03-17 17:29:33 UTC) #9
danakj
LGTM https://codereview.chromium.org/1002393002/diff/20001/ui/compositor/layer.cc File ui/compositor/layer.cc (right): https://codereview.chromium.org/1002393002/diff/20001/ui/compositor/layer.cc#newcode641 ui/compositor/layer.cc:641: nine_patch_layer_aperture_ = aperture; can you add "in_dip" to ...
5 years, 9 months ago (2015-03-17 17:59:40 UTC) #10
hshi1
https://codereview.chromium.org/1002393002/diff/20001/ui/compositor/layer.cc File ui/compositor/layer.cc (right): https://codereview.chromium.org/1002393002/diff/20001/ui/compositor/layer.cc#newcode641 ui/compositor/layer.cc:641: nine_patch_layer_aperture_ = aperture; On 2015/03/17 17:59:40, danakj wrote: > ...
5 years, 9 months ago (2015-03-17 18:24:48 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1002393002/40001
5 years, 9 months ago (2015-03-17 18:25:53 UTC) #14
oshima
lgtm
5 years, 9 months ago (2015-03-17 18:29:56 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/50222)
5 years, 9 months ago (2015-03-17 19:00:46 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1002393002/40001
5 years, 9 months ago (2015-03-17 20:38:34 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/50268)
5 years, 9 months ago (2015-03-17 21:07:09 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1002393002/40001
5 years, 9 months ago (2015-03-17 21:13:22 UTC) #23
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 9 months ago (2015-03-17 21:18:43 UTC) #24
commit-bot: I haz the power
5 years, 9 months ago (2015-03-17 21:19:47 UTC) #25
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/270f62296ebb49c6bcaff3dc8715346d3f0d321a
Cr-Commit-Position: refs/heads/master@{#320974}

Powered by Google App Engine
This is Rietveld 408576698