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

Issue 17029020: linux_aura: Redo how memory is handled in clipboard/drag code. (Closed)

Created:
7 years, 6 months ago by Elliot Glaysher
Modified:
7 years, 6 months ago
Reviewers:
sky
CC:
chromium-reviews, sadrul, yusukes+watch_chromium.org, derat+watch_chromium.org, ben+watch_chromium.org, tfarina, dcheng
Visibility:
Public.

Description

linux_aura: Redo how memory is handled in clipboard/drag code. This changes the ownership model from manually allocated arrays to RefCountedMemory segments. Coincidentally, this also reduces the number of memcpys by letting us pass around data sent to us by the X server. BUG=130806 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=208342

Patch Set 1 #

Total comments: 6

Patch Set 2 : Fixes for sky; ptal #

Unified diffs Side-by-side diffs Delta from patch set Stats (+360 lines, -323 lines) Patch
M ui/base/clipboard/clipboard_aurax11.cc View 1 18 chunks +82 lines, -92 lines 0 comments Download
M ui/base/dragdrop/os_exchange_data_provider_aurax11.h View 4 chunks +4 lines, -3 lines 0 comments Download
M ui/base/dragdrop/os_exchange_data_provider_aurax11.cc View 10 chunks +27 lines, -35 lines 0 comments Download
M ui/base/x/selection_owner.h View 3 chunks +4 lines, -5 lines 0 comments Download
M ui/base/x/selection_owner.cc View 3 chunks +35 lines, -38 lines 0 comments Download
M ui/base/x/selection_requestor.h View 2 chunks +8 lines, -7 lines 0 comments Download
M ui/base/x/selection_requestor.cc View 3 chunks +5 lines, -7 lines 0 comments Download
M ui/base/x/selection_utils.h View 6 chunks +25 lines, -20 lines 0 comments Download
M ui/base/x/selection_utils.cc View 1 4 chunks +89 lines, -66 lines 0 comments Download
M ui/base/x/x11_util.h View 1 3 chunks +31 lines, -6 lines 0 comments Download
M ui/base/x/x11_util.cc View 3 chunks +36 lines, -22 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.h View 1 chunk +2 lines, -2 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.cc View 8 chunks +12 lines, -20 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Elliot Glaysher
Here's the promised follow up patch that changes the ownership structure. This patch has the ...
7 years, 6 months ago (2013-06-24 19:34:24 UTC) #1
sky
https://codereview.chromium.org/17029020/diff/1/ui/base/clipboard/clipboard_aurax11.cc File ui/base/clipboard/clipboard_aurax11.cc (right): https://codereview.chromium.org/17029020/diff/1/ui/base/clipboard/clipboard_aurax11.cc#newcode356 ui/base/clipboard/clipboard_aurax11.cc:356: } else { nit: style guide says no else ...
7 years, 6 months ago (2013-06-24 20:36:18 UTC) #2
Elliot Glaysher
Fixes for sky; ptal
7 years, 6 months ago (2013-06-24 20:53:53 UTC) #3
Elliot Glaysher
(it looks like the command line didn't publish drafts. le sigh.) https://codereview.chromium.org/17029020/diff/1/ui/base/clipboard/clipboard_aurax11.cc File ui/base/clipboard/clipboard_aurax11.cc (right): ...
7 years, 6 months ago (2013-06-24 20:54:35 UTC) #4
sky
LGTM
7 years, 6 months ago (2013-06-24 20:55:58 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/erg@chromium.org/17029020/23002
7 years, 6 months ago (2013-06-24 20:58:47 UTC) #6
commit-bot: I haz the power
7 years, 6 months ago (2013-06-25 01:18:11 UTC) #7
Message was sent while issue was closed.
Change committed as 208342

Powered by Google App Engine
This is Rietveld 408576698