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

Issue 2767803003: Replace Canvas::ExtractImageRep in render_view_context_menu.cc (Closed)

Created:
3 years, 9 months ago by danakj
Modified:
3 years, 9 months ago
CC:
chromium-reviews, enne (OOO)
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Replace Canvas::ExtractImageRep in render_view_context_menu.cc Instead of using ExtractImageRep to raster a bitmap that is passed to an ImageSkiaSource for later scaling, we just tell that ImageSkiaSource to do the circle mask also, avoiding the first bitmap altogether. R=pkasting@chromium.org BUG=671433 Review-Url: https://codereview.chromium.org/2767803003 Cr-Commit-Position: refs/heads/master@{#458885} Committed: https://chromium.googlesource.com/chromium/src/+/d0d5714663b6a19befac1ec77ebdb1b4585ae953

Patch Set 1 #

Patch Set 2 : menu-bitmap: . #

Total comments: 2

Patch Set 3 : menu-bitmap: headers #

Patch Set 4 : menu-bitmap: just-use-shape-circle #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -23 lines) Patch
M chrome/browser/renderer_context_menu/render_view_context_menu.cc View 1 2 3 2 chunks +8 lines, -23 lines 0 comments Download

Messages

Total messages: 27 (19 generated)
danakj
3 years, 9 months ago (2017-03-21 23:53:43 UTC) #2
Peter Kasting
https://codereview.chromium.org/2767803003/diff/20001/chrome/browser/renderer_context_menu/render_view_context_menu.cc File chrome/browser/renderer_context_menu/render_view_context_menu.cc (right): https://codereview.chromium.org/2767803003/diff/20001/chrome/browser/renderer_context_menu/render_view_context_menu.cc#newcode465 chrome/browser/renderer_context_menu/render_view_context_menu.cc:465: icon.ToImageSkia()->GetRepresentation(raster_scale); Rather than used this fixed-scale representation, we should ...
3 years, 9 months ago (2017-03-22 00:04:15 UTC) #7
danakj
https://codereview.chromium.org/2767803003/diff/20001/chrome/browser/renderer_context_menu/render_view_context_menu.cc File chrome/browser/renderer_context_menu/render_view_context_menu.cc (right): https://codereview.chromium.org/2767803003/diff/20001/chrome/browser/renderer_context_menu/render_view_context_menu.cc#newcode471 chrome/browser/renderer_context_menu/render_view_context_menu.cc:471: gfx::CalculateFaviconTargetSize(&width, &height); I had some trouble understanding if the ...
3 years, 9 months ago (2017-03-22 14:41:42 UTC) #12
danakj
PTAL. This code was making a bitmap with the circle, then giving that to another ...
3 years, 9 months ago (2017-03-22 20:47:54 UTC) #15
danakj
Oh, I mistakenly thought you're an owner here, +avi for OWNERS. (Feel free to review ...
3 years, 9 months ago (2017-03-22 20:55:21 UTC) #18
Avi (use Gerrit)
lgtm
3 years, 9 months ago (2017-03-22 21:11:59 UTC) #21
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/2767803003/60001
3 years, 9 months ago (2017-03-22 21:15:54 UTC) #24
commit-bot: I haz the power
3 years, 9 months ago (2017-03-22 21:51:33 UTC) #27
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/d0d5714663b6a19befac1ec77ebd...

Powered by Google App Engine
This is Rietveld 408576698