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

Issue 2770693002: ash: HiDPI user avatar for SessionController (Closed)

Created:
3 years, 9 months ago by xiyuan
Modified:
3 years, 9 months ago
CC:
chromium-reviews, sadrul, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, rsesek+watch_chromium.org, kalyank, darin (slow to review)
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

ash: HiDPI user avatar for SessionController - Add mojo structs for ImageSkia and ImageSkiaRep; - Use ImageSkia instead of SkBitmap for user avatar; BUG=702689, 655874 TBR=ben@chromium.org Review-Url: https://codereview.chromium.org/2770693002 Cr-Commit-Position: refs/heads/master@{#459804} Committed: https://chromium.googlesource.com/chromium/src/+/fda72a9f6483a0cf08aa68091eb8f8af464bec64

Patch Set 1 #

Patch Set 2 : rebase, use shared buffer, add tests #

Total comments: 6

Patch Set 3 : fix gn check #

Total comments: 50

Patch Set 4 : buffer size uint32 -> uint64, support 0.0f scale #

Patch Set 5 : bail on negative scale when Read ImageSkiaRep #

Total comments: 4

Patch Set 6 : for msw comments, split SharedBufferSkBitmap out of ImageRep #

Patch Set 7 : fix compile #

Total comments: 8

Patch Set 8 : make mojo similar to c++, update test #

Total comments: 4

Patch Set 9 : nits, and gn check #

Unified diffs Side-by-side diffs Delta from patch set Stats (+562 lines, -12 lines) Patch
M ash/common/system/user/tray_user.cc View 1 chunk +1 line, -2 lines 0 comments Download
M ash/common/system/user/user_card_view.cc View 1 chunk +1 line, -3 lines 0 comments Download
M ash/public/interfaces/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M ash/public/interfaces/session_controller.mojom View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/session_controller_client.cc View 1 2 3 4 5 1 chunk +3 lines, -5 lines 0 comments Download
M ui/gfx/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
A ui/gfx/image/mojo/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +53 lines, -0 lines 0 comments Download
A ui/gfx/image/mojo/DEPS View 1 chunk +5 lines, -0 lines 0 comments Download
A ui/gfx/image/mojo/OWNERS View 1 1 chunk +8 lines, -0 lines 0 comments Download
A ui/gfx/image/mojo/image.mojom View 1 2 3 4 5 6 7 8 1 chunk +32 lines, -0 lines 0 comments Download
A ui/gfx/image/mojo/image.typemap View 1 2 3 4 5 1 chunk +19 lines, -0 lines 0 comments Download
A ui/gfx/image/mojo/image_skia_struct_traits.h View 1 2 3 4 5 6 7 1 chunk +75 lines, -0 lines 0 comments Download
A ui/gfx/image/mojo/image_skia_struct_traits.cc View 1 2 3 4 5 6 7 8 1 chunk +158 lines, -0 lines 0 comments Download
A ui/gfx/image/mojo/image_traits_test_service.mojom View 1 2 3 4 5 1 chunk +16 lines, -0 lines 0 comments Download
A ui/gfx/image/mojo/image_traits_unittest.cc View 1 2 3 4 5 6 7 1 chunk +186 lines, -0 lines 0 comments Download
M ui/gfx/typemaps.gni View 1 chunk +1 line, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 56 (39 generated)
xiyuan
A shared buffer based mojo transport for ImageSkia(Rep) and use it for user avatar. msw@: ...
3 years, 9 months ago (2017-03-23 18:07:27 UTC) #5
Tom Sepez
https://codereview.chromium.org/2770693002/diff/20001/ui/gfx/image/mojo/image_skia.mojom File ui/gfx/image/mojo/image_skia.mojom (right): https://codereview.chromium.org/2770693002/diff/20001/ui/gfx/image/mojo/image_skia.mojom#newcode13 ui/gfx/image/mojo/image_skia.mojom:13: uint32 buffer_byte_size; Could it be bigger than this on ...
3 years, 9 months ago (2017-03-23 18:11:39 UTC) #8
xiyuan
https://codereview.chromium.org/2770693002/diff/20001/ui/gfx/image/mojo/image_skia.mojom File ui/gfx/image/mojo/image_skia.mojom (right): https://codereview.chromium.org/2770693002/diff/20001/ui/gfx/image/mojo/image_skia.mojom#newcode13 ui/gfx/image/mojo/image_skia.mojom:13: uint32 buffer_byte_size; On 2017/03/23 18:11:39, Tom Sepez wrote: > ...
3 years, 9 months ago (2017-03-23 18:30:41 UTC) #10
xiyuan
https://codereview.chromium.org/2770693002/diff/20001/ui/gfx/image/mojo/image_skia.mojom File ui/gfx/image/mojo/image_skia.mojom (right): https://codereview.chromium.org/2770693002/diff/20001/ui/gfx/image/mojo/image_skia.mojom#newcode13 ui/gfx/image/mojo/image_skia.mojom:13: uint32 buffer_byte_size; On 2017/03/23 18:30:41, xiyuan wrote: > On ...
3 years, 9 months ago (2017-03-23 19:45:23 UTC) #14
Tom Sepez
> Changed uint32 -> uint64 and added a DCHECK for huge images (> 4k x ...
3 years, 9 months ago (2017-03-23 20:02:40 UTC) #17
xiyuan
On 2017/03/23 20:02:40, Tom Sepez wrote: > > Changed uint32 -> uint64 and added a ...
3 years, 9 months ago (2017-03-23 20:25:41 UTC) #19
msw
This is awesome, thank you for working on this! https://codereview.chromium.org/2770693002/diff/40001/chrome/browser/ui/ash/session_controller_client.cc File chrome/browser/ui/ash/session_controller_client.cc (right): https://codereview.chromium.org/2770693002/diff/40001/chrome/browser/ui/ash/session_controller_client.cc#newcode65 chrome/browser/ui/ash/session_controller_client.cc:65: ...
3 years, 9 months ago (2017-03-23 20:47:53 UTC) #20
Tom Sepez
lgtm
3 years, 9 months ago (2017-03-23 20:59:38 UTC) #21
xiyuan
https://codereview.chromium.org/2770693002/diff/40001/chrome/browser/ui/ash/session_controller_client.cc File chrome/browser/ui/ash/session_controller_client.cc (right): https://codereview.chromium.org/2770693002/diff/40001/chrome/browser/ui/ash/session_controller_client.cc#newcode65 chrome/browser/ui/ash/session_controller_client.cc:65: // Make sure all representations are loaded before sending ...
3 years, 9 months ago (2017-03-24 05:45:31 UTC) #24
msw
Nice work, and thanks for the good explanations/answers. Just a few questions and a minor ...
3 years, 9 months ago (2017-03-24 17:59:33 UTC) #35
xiyuan
https://codereview.chromium.org/2770693002/diff/140001/ui/gfx/image/mojo/image.mojom File ui/gfx/image/mojo/image.mojom (right): https://codereview.chromium.org/2770693002/diff/140001/ui/gfx/image/mojo/image.mojom#newcode9 ui/gfx/image/mojo/image.mojom:9: // to make less copies. On 2017/03/24 17:59:32, msw ...
3 years, 9 months ago (2017-03-24 18:36:53 UTC) #36
msw
Nice, lgtm with a couple minor optional nits. Thank you! https://codereview.chromium.org/2770693002/diff/160001/ui/gfx/image/mojo/image.mojom File ui/gfx/image/mojo/image.mojom (right): https://codereview.chromium.org/2770693002/diff/160001/ui/gfx/image/mojo/image.mojom#newcode27 ...
3 years, 9 months ago (2017-03-24 18:47:04 UTC) #41
xiyuan
https://codereview.chromium.org/2770693002/diff/160001/ui/gfx/image/mojo/image.mojom File ui/gfx/image/mojo/image.mojom (right): https://codereview.chromium.org/2770693002/diff/160001/ui/gfx/image/mojo/image.mojom#newcode27 ui/gfx/image/mojo/image.mojom:27: // Mojo transport for an ImageSkia via shared buffer. ...
3 years, 9 months ago (2017-03-24 18:53:05 UTC) #43
xiyuan
sky@, could you do owner reivew for ash/* ? ben@, could you approve the gfx/image.mojom ...
3 years, 9 months ago (2017-03-24 19:00:01 UTC) #46
sky
ash LGTM
3 years, 9 months ago (2017-03-24 19:41:07 UTC) #47
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/2770693002/180001
3 years, 9 months ago (2017-03-27 15:55:35 UTC) #53
commit-bot: I haz the power
3 years, 9 months ago (2017-03-27 17:05:28 UTC) #56
Message was sent while issue was closed.
Committed patchset #9 (id:180001) as
https://chromium.googlesource.com/chromium/src/+/fda72a9f6483a0cf08aa68091eb8...

Powered by Google App Engine
This is Rietveld 408576698