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

Issue 393583003: Support C++98 std::vector in mojo surfaces code (Closed)

Created:
6 years, 5 months ago by jamesr
Modified:
6 years, 5 months ago
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, ben+mojo_chromium.org
Project:
chromium
Visibility:
Public.

Description

Support C++98 std::vector in mojo surfaces code std::vector<>::data() is a C++11 feature and not available on all toolchains. This uses &vector[0] instead. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=284558

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Patch Set 3 : return null frame when any bad quads are present #

Unified diffs Side-by-side diffs Delta from patch set Stats (+86 lines, -15 lines) Patch
M mojo/services/public/cpp/surfaces/lib/surfaces_type_converters.cc View 1 2 9 chunks +46 lines, -14 lines 0 comments Download
M mojo/services/public/cpp/surfaces/tests/surface_unittest.cc View 1 2 chunks +40 lines, -1 line 0 comments Download

Messages

Total messages: 11 (0 generated)
jamesr
6 years, 5 months ago (2014-07-14 18:18:20 UTC) #1
darin (slow to review)
LGTM
6 years, 5 months ago (2014-07-14 19:58:23 UTC) #2
darin (slow to review)
Same question about other use of [0] https://codereview.chromium.org/393583003/diff/1/mojo/services/public/cpp/surfaces/lib/surfaces_type_converters.cc File mojo/services/public/cpp/surfaces/lib/surfaces_type_converters.cc (right): https://codereview.chromium.org/393583003/diff/1/mojo/services/public/cpp/surfaces/lib/surfaces_type_converters.cc#newcode156 mojo/services/public/cpp/surfaces/lib/surfaces_type_converters.cc:156: &texture_quad_state->vertex_opacity.storage()[0], Wait, ...
6 years, 5 months ago (2014-07-14 19:59:25 UTC) #3
Peter Kasting
https://codereview.chromium.org/393583003/diff/1/mojo/services/public/cpp/surfaces/lib/surfaces_type_converters.cc File mojo/services/public/cpp/surfaces/lib/surfaces_type_converters.cc (right): https://codereview.chromium.org/393583003/diff/1/mojo/services/public/cpp/surfaces/lib/surfaces_type_converters.cc#newcode156 mojo/services/public/cpp/surfaces/lib/surfaces_type_converters.cc:156: &texture_quad_state->vertex_opacity.storage()[0], On 2014/07/14 19:59:25, darin wrote: > Wait, do ...
6 years, 5 months ago (2014-07-14 20:02:16 UTC) #4
jamesr
On 2014/07/14 19:59:25, darin wrote: > Same question about other use of [0] > > ...
6 years, 5 months ago (2014-07-14 20:04:16 UTC) #5
darin (slow to review)
On 2014/07/14 20:04:16, jamesr wrote: > On 2014/07/14 19:59:25, darin wrote: > > Same question ...
6 years, 5 months ago (2014-07-14 20:19:04 UTC) #6
jamesr
Sorry for the delay. The most recent patch checks for empty arrays (and a few ...
6 years, 5 months ago (2014-07-21 20:50:26 UTC) #7
darin (slow to review)
LGTM
6 years, 5 months ago (2014-07-21 21:08:15 UTC) #8
jamesr
The CQ bit was checked by jamesr@chromium.org
6 years, 5 months ago (2014-07-21 21:09:51 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamesr@chromium.org/393583003/40001
6 years, 5 months ago (2014-07-21 21:11:27 UTC) #10
commit-bot: I haz the power
6 years, 5 months ago (2014-07-22 00:29:33 UTC) #11
Message was sent while issue was closed.
Change committed as 284558

Powered by Google App Engine
This is Rietveld 408576698