| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 <limits> | 5 #include <limits> |
| 6 | 6 |
| 7 #include "flip_frame_builder.h" // cross-google3 directory naming. | 7 #include "flip_frame_builder.h" // cross-google3 directory naming. |
| 8 #include "flip_protocol.h" | 8 #include "flip_protocol.h" |
| 9 | 9 |
| 10 namespace flip { | 10 namespace flip { |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 delete[] buffer_; | 175 delete[] buffer_; |
| 176 } | 176 } |
| 177 if (!p && new_capacity > 0) | 177 if (!p && new_capacity > 0) |
| 178 return false; | 178 return false; |
| 179 buffer_ = p; | 179 buffer_ = p; |
| 180 capacity_ = new_capacity; | 180 capacity_ = new_capacity; |
| 181 return true; | 181 return true; |
| 182 } | 182 } |
| 183 | 183 |
| 184 } // namespace flip | 184 } // namespace flip |
| OLD | NEW |