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

Issue 2760133002: ui: Remove a bunch of uses of gfx::Canvas::ExtractImageRep() (Closed)

Created:
3 years, 9 months ago by danakj
Modified:
3 years, 9 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, sadrul, Matt Giuca, droger+watchlist_chromium.org, Peter Beverloo, tfarina, mlamouri+watch-notifications_chromium.org, sdefresne+watchlist_chromium.org, blundell+watchlist_chromium.org, chromium-apps-reviews_chromium.org, kalyank, awdf+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

ui: Remove a bunch of uses of gfx::Canvas::ExtractImageRep() This method calls PaintCanvas::getBaseLayerSize() which should not exist. Since these callers are just trying to generate a bitmap, close the loop and have them make a bitmap, then draw/raster into it. I have manually tested each ui case to verify that I see it in the browser and that it is the same after (this was not easy). BUG=671433 Review-Url: https://codereview.chromium.org/2760133002 Cr-Commit-Position: refs/heads/master@{#458447} Committed: https://chromium.googlesource.com/chromium/src/+/4c5cfacb5d7d63b4b264c2783dfb1cbf32aacda5

Patch Set 1 #

Patch Set 2 : canvasbounds: . #

Total comments: 6

Patch Set 3 : canvasbounds: nits #

Total comments: 2

Patch Set 4 : canvasbounds: ios #

Patch Set 5 : canvasbounds: ashnit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+99 lines, -72 lines) Patch
M ash/common/accelerators/debug_commands.cc View 2 chunks +14 lines, -9 lines 0 comments Download
M ash/common/frame/caption_buttons/frame_caption_button.h View 1 chunk +3 lines, -4 lines 0 comments Download
M ash/common/frame/caption_buttons/frame_caption_button.cc View 1 2 3 4 2 chunks +25 lines, -25 lines 0 comments Download
M chrome/browser/ui/app_list/extension_app_item.cc View 1 2 2 chunks +13 lines, -11 lines 0 comments Download
M chrome/browser/ui/webui/app_launcher_login_handler.cc View 1 2 2 chunks +9 lines, -7 lines 0 comments Download
M components/favicon/core/BUILD.gn View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M components/favicon/core/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M components/favicon/core/fallback_icon_service.cc View 2 chunks +7 lines, -4 lines 0 comments Download
M ui/message_center/message_center_impl_unittest.cc View 1 chunk +11 lines, -7 lines 0 comments Download
M ui/views/controls/button/blue_button_unittest.cc View 1 2 3 chunks +15 lines, -5 lines 0 comments Download

Messages

Total messages: 39 (22 generated)
danakj
enne: overall or just fyi pkasting: chrome blundell: favicon sadrul: ui oshima: ash
3 years, 9 months ago (2017-03-20 22:34:11 UTC) #3
Peter Kasting
LGTM https://codereview.chromium.org/2760133002/diff/20001/chrome/browser/ui/app_list/extension_app_item.cc File chrome/browser/ui/app_list/extension_app_item.cc (right): https://codereview.chromium.org/2760133002/diff/20001/chrome/browser/ui/app_list/extension_app_item.cc#newcode85 chrome/browser/ui/app_list/extension_app_item.cc:85: SkBitmap mask_bitmap; Nit: Trivial, but I liked having ...
3 years, 9 months ago (2017-03-20 22:49:21 UTC) #9
sadrul
lgtm https://codereview.chromium.org/2760133002/diff/20001/ui/views/controls/button/blue_button_unittest.cc File ui/views/controls/button/blue_button_unittest.cc (right): https://codereview.chromium.org/2760133002/diff/20001/ui/views/controls/button/blue_button_unittest.cc#newcode42 ui/views/controls/button/blue_button_unittest.cc:42: true); true /* is_opaque */? (I see the ...
3 years, 9 months ago (2017-03-21 00:15:20 UTC) #10
blundell
It looks like the trybots are not happy due to real problems?
3 years, 9 months ago (2017-03-21 08:21:01 UTC) #11
danakj
https://codereview.chromium.org/2760133002/diff/20001/chrome/browser/ui/app_list/extension_app_item.cc File chrome/browser/ui/app_list/extension_app_item.cc (right): https://codereview.chromium.org/2760133002/diff/20001/chrome/browser/ui/app_list/extension_app_item.cc#newcode85 chrome/browser/ui/app_list/extension_app_item.cc:85: SkBitmap mask_bitmap; On 2017/03/20 22:49:21, Peter Kasting wrote: > ...
3 years, 9 months ago (2017-03-21 15:25:57 UTC) #12
blundell
On 2017/03/21 08:21:01, blundell wrote: > It looks like the trybots are not happy due ...
3 years, 9 months ago (2017-03-21 15:26:45 UTC) #15
danakj
On Tue, Mar 21, 2017 at 11:25 AM, <danakj+owner@chromium.org> wrote: > On Tue, Mar 21, ...
3 years, 9 months ago (2017-03-21 15:27:46 UTC) #16
danakj
On Tue, Mar 21, 2017 at 4:21 AM, <blundell@chromium.org> wrote: > It looks like the ...
3 years, 9 months ago (2017-03-21 15:32:35 UTC) #17
danakj
On 2017/03/21 15:27:46, danakj wrote: > On Tue, Mar 21, 2017 at 11:25 AM, <mailto:danakj+owner@chromium.org> ...
3 years, 9 months ago (2017-03-21 15:37:37 UTC) #20
danakj
On 2017/03/21 15:37:37, danakj wrote: > On 2017/03/21 15:27:46, danakj wrote: > > On Tue, ...
3 years, 9 months ago (2017-03-21 15:40:44 UTC) #21
oshima
ash/ lgtm with a nit https://codereview.chromium.org/2760133002/diff/40001/ash/common/frame/caption_buttons/frame_caption_button.cc File ash/common/frame/caption_buttons/frame_caption_button.cc (right): https://codereview.chromium.org/2760133002/diff/40001/ash/common/frame/caption_buttons/frame_caption_button.cc#newcode128 ash/common/frame/caption_buttons/frame_caption_button.cc:128: int centered_y = (height() ...
3 years, 9 months ago (2017-03-21 15:47:24 UTC) #24
danakj
https://codereview.chromium.org/2760133002/diff/40001/ash/common/frame/caption_buttons/frame_caption_button.cc File ash/common/frame/caption_buttons/frame_caption_button.cc (right): https://codereview.chromium.org/2760133002/diff/40001/ash/common/frame/caption_buttons/frame_caption_button.cc#newcode128 ash/common/frame/caption_buttons/frame_caption_button.cc:128: int centered_y = (height() - icon_image_.height()) / 2; On ...
3 years, 9 months ago (2017-03-21 15:55:32 UTC) #26
danakj
On 2017/03/21 15:40:44, danakj wrote: > On 2017/03/21 15:37:37, danakj wrote: > > On 2017/03/21 ...
3 years, 9 months ago (2017-03-21 15:55:52 UTC) #28
blundell
//components lgtm, thanks that class shouldn't be in .../core at all, it should be in ...
3 years, 9 months ago (2017-03-21 16:04:46 UTC) #31
danakj
Thanks everyone!
3 years, 9 months ago (2017-03-21 16:07:30 UTC) #35
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/2760133002/80001
3 years, 9 months ago (2017-03-21 16:07:40 UTC) #36
commit-bot: I haz the power
3 years, 9 months ago (2017-03-21 17:11:09 UTC) #39
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/4c5cfacb5d7d63b4b264c2783dfb...

Powered by Google App Engine
This is Rietveld 408576698