OLD | NEW |
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 Loading... |
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 |
OLD | NEW |