| 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 #ifndef REMOTING_BASE_UTIL_H_ | 5 #ifndef REMOTING_BASE_UTIL_H_ |
| 6 #define REMOTING_BASE_UTIL_H_ | 6 #define REMOTING_BASE_UTIL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "media/base/video_frame.h" | 10 #include "media/base/video_frame.h" |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 const SkIRect& rect); | 75 const SkIRect& rect); |
| 76 | 76 |
| 77 void CopyRGB32Rect(const uint8* source_buffer, | 77 void CopyRGB32Rect(const uint8* source_buffer, |
| 78 int source_stride, | 78 int source_stride, |
| 79 const SkIRect& source_buffer_rect, | 79 const SkIRect& source_buffer_rect, |
| 80 uint8* dest_buffer, | 80 uint8* dest_buffer, |
| 81 int dest_stride, | 81 int dest_stride, |
| 82 const SkIRect& dest_buffer_rect, | 82 const SkIRect& dest_buffer_rect, |
| 83 const SkIRect& dest_rect); | 83 const SkIRect& dest_rect); |
| 84 | 84 |
| 85 // Replaces every occurrence of "\n" in a string by "\r\n". |
| 86 std::string ReplaceLfByCrLf(const std::string& in); |
| 87 |
| 88 // Replaces every occurrence of "\r\n" in a string by "\n". |
| 89 std::string ReplaceCrLfByLf(const std::string& in); |
| 90 |
| 85 } // namespace remoting | 91 } // namespace remoting |
| 86 | 92 |
| 87 #endif // REMOTING_BASE_UTIL_H_ | 93 #endif // REMOTING_BASE_UTIL_H_ |
| OLD | NEW |