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

Issue 2764163002: Use SkCanvas::SkCanvas(SkBitmap) instead of going thru SkSurface (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, Peter Beverloo, tfarina, mlamouri+watch-notifications_chromium.org, chromium-apps-reviews_chromium.org, kalyank, awdf+watch_chromium.org, vmpstr
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Use SkCanvas::SkCanvas(SkBitmap) instead of going thru SkSurface I learnt that you can just wrap an SkBitmap with an SkCanvas for cases like these. SkSurface is a more general thing when your backing may not be in cpu memory or when you have more complicated SkImageInfo. For us, it is coming from the SkBitmap which is cpu memory-backed. So this is simpler code. R=oshima@chromium.org, pkasting@chromium.org, sadrul@chromium.org BUG=671433 Review-Url: https://codereview.chromium.org/2764163002 Cr-Commit-Position: refs/heads/master@{#458749} Committed: https://chromium.googlesource.com/chromium/src/+/ba607278f124cd99822dda9cde8dfdaecef830a0

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -16 lines) Patch
M ash/common/accelerators/debug_commands.cc View 1 chunk +4 lines, -5 lines 0 comments Download
M chrome/browser/ui/app_list/extension_app_item.cc View 1 chunk +3 lines, -4 lines 0 comments Download
M chrome/browser/ui/webui/app_launcher_login_handler.cc View 1 chunk +3 lines, -4 lines 0 comments Download
M ui/message_center/message_center_impl_unittest.cc View 1 chunk +2 lines, -3 lines 0 comments Download

Messages

Total messages: 14 (8 generated)
danakj
I learnt something to make less lines of code. oshima: ash pkasting: chrome sadrul: ui
3 years, 9 months ago (2017-03-21 22:15:36 UTC) #2
Peter Kasting
LGTM
3 years, 9 months ago (2017-03-21 22:36:22 UTC) #5
oshima
ash lgtm
3 years, 9 months ago (2017-03-21 23:42:06 UTC) #8
sadrul
lgtm
3 years, 9 months ago (2017-03-22 14:50:14 UTC) #9
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/2764163002/1
3 years, 9 months ago (2017-03-22 14:52:19 UTC) #11
commit-bot: I haz the power
3 years, 9 months ago (2017-03-22 14:56:58 UTC) #14
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/ba607278f124cd99822dda9cde8d...

Powered by Google App Engine
This is Rietveld 408576698