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

Side by Side Diff: media/audio/point.cc

Issue 1542013004: Switch to standard integer types in media/, take 2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more stddef Created 4 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « media/audio/mock_audio_source_callback.h ('k') | media/audio/pulse/pulse_input.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "media/audio/point.h" 5 #include "media/audio/point.h"
6 6
7 #include <stddef.h>
8
7 #include "base/logging.h" 9 #include "base/logging.h"
8 #include "base/strings/string_number_conversions.h" 10 #include "base/strings/string_number_conversions.h"
9 #include "base/strings/string_split.h" 11 #include "base/strings/string_split.h"
10 #include "base/strings/string_util.h" 12 #include "base/strings/string_util.h"
11 #include "base/strings/stringprintf.h" 13 #include "base/strings/stringprintf.h"
12 14
13 namespace media { 15 namespace media {
14 16
15 std::string PointsToString(const std::vector<Point>& points) { 17 std::string PointsToString(const std::vector<Point>& points) {
16 std::string points_string; 18 std::string points_string;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 points.reserve(float_tokens.size() / 3); 54 points.reserve(float_tokens.size() / 3);
53 for (size_t i = 0; i < float_tokens.size(); i += 3) { 55 for (size_t i = 0; i < float_tokens.size(); i += 3) {
54 points.push_back( 56 points.push_back(
55 Point(float_tokens[i + 0], float_tokens[i + 1], float_tokens[i + 2])); 57 Point(float_tokens[i + 0], float_tokens[i + 1], float_tokens[i + 2]));
56 } 58 }
57 59
58 return points; 60 return points;
59 } 61 }
60 62
61 } // namespace media 63 } // namespace media
OLDNEW
« no previous file with comments | « media/audio/mock_audio_source_callback.h ('k') | media/audio/pulse/pulse_input.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698