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

Issue 1425163002: gfx: Rename canvas SaveAndUnscale to UnscaleTheDeviceScaleFactor. (Closed)

Created:
5 years, 1 month ago by danakj
Modified:
5 years, 1 month ago
CC:
chromium-reviews, kalyank, noyau+watch_chromium.org, sadrul, tfarina, piman
Base URL:
https://chromium.googlesource.com/chromium/src.git@ninepatchscale
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

gfx: Rename canvas SaveAndUnscale to UnscaleTheDeviceScaleFactor. This changes the method to only do the unscaling. Callers use a ScopedCanvas instead. Then they don't need to call Restore() themselves. R=pkasting, sky Committed: https://crrev.com/da76437a9d701587d08a93bbc4f37dd796f21124 Cr-Commit-Position: refs/heads/master@{#357172}

Patch Set 1 #

Patch Set 2 : scopedunscale: . #

Total comments: 5

Patch Set 3 : scopedunscale: . #

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

Depends on Patchset:

Messages

Total messages: 12 (5 generated)
danakj
I toyed with adding another constructor to ScopedCanvas or something, but this was the most ...
5 years, 1 month ago (2015-10-29 22:55:50 UTC) #3
Peter Kasting
LGTM, just naming quibbles https://codereview.chromium.org/1425163002/diff/20001/ash/frame/default_header_painter.cc File ash/frame/default_header_painter.cc (right): https://codereview.chromium.org/1425163002/diff/20001/ash/frame/default_header_painter.cc#newcode265 ash/frame/default_header_painter.cc:265: ScopedCanvas scoped(canvas); The variable name ...
5 years, 1 month ago (2015-10-29 23:11:10 UTC) #5
sky
LGTM https://codereview.chromium.org/1425163002/diff/20001/ui/gfx/canvas.h File ui/gfx/canvas.h (right): https://codereview.chromium.org/1425163002/diff/20001/ui/gfx/canvas.h#newcode171 ui/gfx/canvas.h:171: float UnscaleTheDeviceScaleFactor(); On 2015/10/29 23:11:10, Peter Kasting wrote: ...
5 years, 1 month ago (2015-10-29 23:37:55 UTC) #6
danakj
https://codereview.chromium.org/1425163002/diff/20001/ash/frame/default_header_painter.cc File ash/frame/default_header_painter.cc (right): https://codereview.chromium.org/1425163002/diff/20001/ash/frame/default_header_painter.cc#newcode265 ash/frame/default_header_painter.cc:265: ScopedCanvas scoped(canvas); On 2015/10/29 23:11:10, Peter Kasting wrote: > ...
5 years, 1 month ago (2015-10-30 17:51:22 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1425163002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1425163002/40001
5 years, 1 month ago (2015-10-30 17:51:34 UTC) #10
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 1 month ago (2015-10-30 19:25:23 UTC) #11
commit-bot: I haz the power
5 years, 1 month ago (2015-10-30 19:26:59 UTC) #12
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/da76437a9d701587d08a93bbc4f37dd796f21124
Cr-Commit-Position: refs/heads/master@{#357172}

Powered by Google App Engine
This is Rietveld 408576698