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

Issue 1393013007: Add a Canvas::SaveAndUnscale() method for pixel-accurate drawing. (Closed)

Created:
5 years, 2 months ago by Peter Kasting
Modified:
5 years, 2 months ago
Reviewers:
danakj, pkotwicz, sky
CC:
chromium-reviews, kalyank, sadrul, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add a Canvas::SaveAndUnscale() method for pixel-accurate drawing. This will be useful for various Material Design implementation bits. BUG=none TEST=none Committed: https://crrev.com/0ca0ebd49346783db18dd53c493c1e39a93826bc Cr-Commit-Position: refs/heads/master@{#353946}

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -26 lines) Patch
M ash/frame/default_header_painter.cc View 1 chunk +6 lines, -11 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.cc View 1 chunk +4 lines, -9 lines 0 comments Download
M chrome/browser/ui/views/location_bar/location_bar_view.cc View 2 chunks +3 lines, -6 lines 0 comments Download
M ui/gfx/canvas.h View 1 chunk +5 lines, -0 lines 0 comments Download
M ui/gfx/canvas.cc View 1 chunk +7 lines, -0 lines 4 comments Download

Messages

Total messages: 16 (2 generated)
Peter Kasting
pkotwicz: ash/frame/ OWNERS sky: chrome/browser/ui/views/ OWNERS danakj: ui/gfx/ OWNERS
5 years, 2 months ago (2015-10-13 22:13:50 UTC) #2
sky
https://codereview.chromium.org/1393013007/diff/1/ui/gfx/canvas.cc File ui/gfx/canvas.cc (right): https://codereview.chromium.org/1393013007/diff/1/ui/gfx/canvas.cc#newcode183 ui/gfx/canvas.cc:183: float Canvas::SaveAndUnscale() { How expensive is save? The common ...
5 years, 2 months ago (2015-10-13 22:23:11 UTC) #3
Peter Kasting
https://codereview.chromium.org/1393013007/diff/1/ui/gfx/canvas.cc File ui/gfx/canvas.cc (right): https://codereview.chromium.org/1393013007/diff/1/ui/gfx/canvas.cc#newcode183 ui/gfx/canvas.cc:183: float Canvas::SaveAndUnscale() { On 2015/10/13 22:23:11, sky wrote: > ...
5 years, 2 months ago (2015-10-13 22:34:42 UTC) #4
danakj
This is at odds with how painting is done today. We have painting done in ...
5 years, 2 months ago (2015-10-13 22:40:38 UTC) #5
Peter Kasting
On 2015/10/13 22:40:38, danakj wrote: > This is at odds with how painting is done ...
5 years, 2 months ago (2015-10-13 22:44:24 UTC) #6
sky
LGTM
5 years, 2 months ago (2015-10-13 23:09:36 UTC) #7
sky
On 2015/10/13 22:44:24, Peter Kasting wrote: > On 2015/10/13 22:40:38, danakj wrote: > > This ...
5 years, 2 months ago (2015-10-13 23:18:51 UTC) #8
Peter Kasting
On 2015/10/13 23:18:51, sky wrote: > Be warned that getting drawing that spans multiple views ...
5 years, 2 months ago (2015-10-13 23:23:45 UTC) #9
danakj
On 2015/10/13 22:44:24, Peter Kasting wrote: > On 2015/10/13 22:40:38, danakj wrote: > > This ...
5 years, 2 months ago (2015-10-13 23:26:11 UTC) #10
pkotwicz
ash/frame LGTM
5 years, 2 months ago (2015-10-14 01:21:43 UTC) #11
pkotwicz
ash/frame LGTM
5 years, 2 months ago (2015-10-14 01:21:48 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1393013007/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1393013007/1
5 years, 2 months ago (2015-10-14 01:37:35 UTC) #14
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years, 2 months ago (2015-10-14 02:19:11 UTC) #15
commit-bot: I haz the power
5 years, 2 months ago (2015-10-14 02:20:40 UTC) #16
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/0ca0ebd49346783db18dd53c493c1e39a93826bc
Cr-Commit-Position: refs/heads/master@{#353946}

Powered by Google App Engine
This is Rietveld 408576698