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

Side by Side Diff: webrtc/common_video/video_frame_buffer.cc

Issue 2425683003: Change RefCountedObject to use perfect forwarding. (Closed)
Patch Set: git cl lint + screen_capturer_differ_wrapper.cc Created 4 years, 2 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
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 #include "webrtc/common_video/include/video_frame_buffer.h"
11
12 #include <string.h>
10 13
11 #include <algorithm> 14 #include <algorithm>
12 15
13 #include "webrtc/common_video/include/video_frame_buffer.h"
14
15 #include "webrtc/base/checks.h" 16 #include "webrtc/base/checks.h"
16 #include "webrtc/base/keep_ref_until_done.h" 17 #include "webrtc/base/keep_ref_until_done.h"
17 #include "libyuv/convert.h" 18 #include "libyuv/convert.h"
18 #include "libyuv/planar_functions.h" 19 #include "libyuv/planar_functions.h"
19 #include "libyuv/scale.h" 20 #include "libyuv/scale.h"
20 21
21 // Aligning pointer to 64 bytes for improved performance, e.g. use SIMD. 22 // Aligning pointer to 64 bytes for improved performance, e.g. use SIMD.
22 static const int kBufferAlignment = 64; 23 static const int kBufferAlignment = 64;
23 24
24 namespace webrtc { 25 namespace webrtc {
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 void* WrappedI420Buffer::native_handle() const { 362 void* WrappedI420Buffer::native_handle() const {
362 return nullptr; 363 return nullptr;
363 } 364 }
364 365
365 rtc::scoped_refptr<VideoFrameBuffer> WrappedI420Buffer::NativeToI420Buffer() { 366 rtc::scoped_refptr<VideoFrameBuffer> WrappedI420Buffer::NativeToI420Buffer() {
366 RTC_NOTREACHED(); 367 RTC_NOTREACHED();
367 return nullptr; 368 return nullptr;
368 } 369 }
369 370
370 } // namespace webrtc 371 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/base/refcountedobject_unittest.cc ('k') | webrtc/modules/desktop_capture/screen_capturer_differ_wrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698