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

Issue 11344050: Fix DrawQuad copy (Closed)

Created:
8 years, 1 month ago by piman
Modified:
8 years, 1 month ago
CC:
chromium-reviews, cc-bugs_chromium.org
Visibility:
Public.

Description

Fix DrawQuad copy Creating a copy of the quads by allocating a bag of bytes is problematic because the delete doesn't match the new (new [] vs scalar delete), which is wrong in general but in particular causes asserts in tcmalloc and ASAN. Instead, do the proper C++ version, relying on implicit copy constructors. BUG=None Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=165248

Patch Set 1 #

Total comments: 1

Patch Set 2 : fix tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -42 lines) Patch
M cc/draw_quad.h View 1 chunk +0 lines, -4 lines 0 comments Download
M cc/draw_quad.cc View 2 chunks +28 lines, -27 lines 0 comments Download
M cc/draw_quad_unittest.cc View 1 1 chunk +0 lines, -1 line 0 comments Download
M cc/render_pass_draw_quad.h View 1 1 chunk +0 lines, -2 lines 0 comments Download
M cc/render_pass_draw_quad.cc View 1 chunk +1 line, -6 lines 0 comments Download
M cc/yuv_video_draw_quad.h View 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
piman
8 years, 1 month ago (2012-10-31 01:25:19 UTC) #1
jamesr
surprisingly simple! lgtm
8 years, 1 month ago (2012-10-31 01:30:14 UTC) #2
aelias_OOO_until_Jul13
https://codereview.chromium.org/11344050/diff/1/cc/draw_quad.h File cc/draw_quad.h (left): https://codereview.chromium.org/11344050/diff/1/cc/draw_quad.h#oldcode60 cc/draw_quad.h:60: unsigned size() const; I don't think we want to ...
8 years, 1 month ago (2012-10-31 02:50:02 UTC) #3
jamesr
On 2012/10/31 02:50:02, aelias wrote: > https://codereview.chromium.org/11344050/diff/1/cc/draw_quad.h > File cc/draw_quad.h (left): > > https://codereview.chromium.org/11344050/diff/1/cc/draw_quad.h#oldcode60 > ...
8 years, 1 month ago (2012-10-31 02:55:25 UTC) #4
aelias_OOO_until_Jul13
The pickler is going to walk through a vector of pointers to the base class, ...
8 years, 1 month ago (2012-10-31 03:05:32 UTC) #5
jamesr
On 2012/10/31 03:05:32, aelias wrote: > The pickler is going to walk through a vector ...
8 years, 1 month ago (2012-10-31 03:09:18 UTC) #6
aelias_OOO_until_Jul13
OK, sounds good. Then we can also delete the #pragma pack()s in the draw quad ...
8 years, 1 month ago (2012-10-31 03:10:57 UTC) #7
aelias_OOO_until_Jul13
lgtm
8 years, 1 month ago (2012-10-31 03:12:30 UTC) #8
piman
Right, I have a pickler that walks the fields, it's not that much code.
8 years, 1 month ago (2012-10-31 05:42:12 UTC) #9
danakj
wow, nice template work! lgtm2
8 years, 1 month ago (2012-10-31 16:04:57 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/piman@chromium.org/11344050/10001
8 years, 1 month ago (2012-10-31 20:04:20 UTC) #11
commit-bot: I haz the power
8 years, 1 month ago (2012-10-31 22:48:15 UTC) #12
Change committed as 165248

Powered by Google App Engine
This is Rietveld 408576698