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

Issue 2276183002: mac: Don't lose pixels when copying a retina image from the clipboard. (Closed)

Created:
4 years, 3 months ago by erikchen
Modified:
4 years, 3 months ago
Reviewers:
Avi (use Gerrit)
CC:
chromium-reviews, dcheng
Base URL:
https://chromium.googlesource.com/chromium/src.git@temp85
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

mac: Don't lose pixels when copying a retina image from the clipboard. The image is converted into an SkBitmap, which has no concept of retina-ness. In the previous behavior, Chrome would maintain the image size but lose half the pixels. In the new behavior, Chrome keeps all the pixels and doubles the size of the SkBitmap. BUG=355477 Committed: https://crrev.com/7917e6ae37f5f838299aaaa65f785a0e657bc5bd Cr-Commit-Position: refs/heads/master@{#415171}

Patch Set 1 #

Patch Set 2 : Export ClipboardMac to fix link error. #

Total comments: 2

Patch Set 3 : Comment from avi. #

Patch Set 4 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -6 lines) Patch
M ui/base/clipboard/clipboard_mac.mm View 1 2 1 chunk +9 lines, -4 lines 0 comments Download
M ui/base/clipboard/clipboard_mac_unittest.mm View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 17 (10 generated)
erikchen
avi: Please review.
4 years, 3 months ago (2016-08-24 22:09:24 UTC) #2
Avi (use Gerrit)
https://codereview.chromium.org/2276183002/diff/20001/ui/base/clipboard/clipboard_mac.mm File ui/base/clipboard/clipboard_mac.mm (right): https://codereview.chromium.org/2276183002/diff/20001/ui/base/clipboard/clipboard_mac.mm#newcode329 ui/base/clipboard/clipboard_mac.mm:329: NSBitmapImageRep* rep = [[image representations] objectAtIndex:0]; NSImageRep* rep = ...
4 years, 3 months ago (2016-08-25 18:57:25 UTC) #5
erikchen
avi: PTAL https://codereview.chromium.org/2276183002/diff/20001/ui/base/clipboard/clipboard_mac.mm File ui/base/clipboard/clipboard_mac.mm (right): https://codereview.chromium.org/2276183002/diff/20001/ui/base/clipboard/clipboard_mac.mm#newcode329 ui/base/clipboard/clipboard_mac.mm:329: NSBitmapImageRep* rep = [[image representations] objectAtIndex:0]; On ...
4 years, 3 months ago (2016-08-26 17:55:33 UTC) #6
Avi (use Gerrit)
lgtm
4 years, 3 months ago (2016-08-26 19:25:46 UTC) #11
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/2276183002/60001
4 years, 3 months ago (2016-08-29 17:27:30 UTC) #14
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 3 months ago (2016-08-30 05:41:37 UTC) #15
commit-bot: I haz the power
4 years, 3 months ago (2016-08-30 05:43:14 UTC) #17
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/7917e6ae37f5f838299aaaa65f785a0e657bc5bd
Cr-Commit-Position: refs/heads/master@{#415171}

Powered by Google App Engine
This is Rietveld 408576698