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

Side by Side Diff: ppapi/shared_impl/array_writer.cc

Issue 1548813002: Switch to standard integer types in ppapi/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixes 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 | « ppapi/shared_impl/array_writer.h ('k') | ppapi/shared_impl/callback_tracker.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "ppapi/shared_impl/array_writer.h" 5 #include "ppapi/shared_impl/array_writer.h"
6 6
7 #include <stddef.h>
8
7 #include <algorithm> 9 #include <algorithm>
8 10
9 #include "ppapi/shared_impl/ppapi_globals.h" 11 #include "ppapi/shared_impl/ppapi_globals.h"
10 #include "ppapi/shared_impl/resource.h" 12 #include "ppapi/shared_impl/resource.h"
11 #include "ppapi/shared_impl/resource_tracker.h" 13 #include "ppapi/shared_impl/resource_tracker.h"
12 #include "ppapi/shared_impl/var.h" 14 #include "ppapi/shared_impl/var.h"
13 #include "ppapi/shared_impl/var_tracker.h" 15 #include "ppapi/shared_impl/var_tracker.h"
14 16
15 namespace ppapi { 17 namespace ppapi {
16 18
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 for (size_t i = 0; i < input.size(); i++) 118 for (size_t i = 0; i < input.size(); i++)
117 PpapiGlobals::Get()->GetVarTracker()->ReleaseVar(input[i]); 119 PpapiGlobals::Get()->GetVarTracker()->ReleaseVar(input[i]);
118 return false; 120 return false;
119 } 121 }
120 122
121 std::copy(input.begin(), input.end(), static_cast<PP_Var*>(dest)); 123 std::copy(input.begin(), input.end(), static_cast<PP_Var*>(dest));
122 return true; 124 return true;
123 } 125 }
124 126
125 } // namespace ppapi 127 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/shared_impl/array_writer.h ('k') | ppapi/shared_impl/callback_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698