| OLD | NEW | 
|---|
| 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 #ifndef WEBRTC_TEST_FAKE_TEXTURE_FRAME_H_ | 10 #ifndef WEBRTC_TEST_FAKE_TEXTURE_FRAME_H_ | 
| 11 #define WEBRTC_TEST_FAKE_TEXTURE_FRAME_H_ | 11 #define WEBRTC_TEST_FAKE_TEXTURE_FRAME_H_ | 
| 12 | 12 | 
| 13 #include "webrtc/base/checks.h" | 13 #include "webrtc/base/checks.h" | 
| 14 #include "webrtc/common_video/interface/video_frame_buffer.h" | 14 #include "webrtc/common_video/include/video_frame_buffer.h" | 
| 15 #include "webrtc/video_frame.h" | 15 #include "webrtc/video_frame.h" | 
| 16 | 16 | 
| 17 namespace webrtc { | 17 namespace webrtc { | 
| 18 namespace test { | 18 namespace test { | 
| 19 | 19 | 
| 20 class FakeNativeHandle {}; | 20 class FakeNativeHandle {}; | 
| 21 | 21 | 
| 22 class FakeNativeHandleBuffer : public NativeHandleBuffer { | 22 class FakeNativeHandleBuffer : public NativeHandleBuffer { | 
| 23  public: | 23  public: | 
| 24   FakeNativeHandleBuffer(void* native_handle, int width, int height) | 24   FakeNativeHandleBuffer(void* native_handle, int width, int height) | 
| (...skipping 22 matching lines...) Expand all  Loading... | 
| 47                                               uint32_t timestamp, | 47                                               uint32_t timestamp, | 
| 48                                               int64_t render_time_ms, | 48                                               int64_t render_time_ms, | 
| 49                                               VideoRotation rotation) { | 49                                               VideoRotation rotation) { | 
| 50   return VideoFrame(new rtc::RefCountedObject<FakeNativeHandleBuffer>( | 50   return VideoFrame(new rtc::RefCountedObject<FakeNativeHandleBuffer>( | 
| 51                         native_handle, width, height), | 51                         native_handle, width, height), | 
| 52                     timestamp, render_time_ms, rotation); | 52                     timestamp, render_time_ms, rotation); | 
| 53 } | 53 } | 
| 54 }  // namespace test | 54 }  // namespace test | 
| 55 }  // namespace webrtc | 55 }  // namespace webrtc | 
| 56 #endif  //  WEBRTC_TEST_FAKE_TEXTURE_FRAME_H_ | 56 #endif  //  WEBRTC_TEST_FAKE_TEXTURE_FRAME_H_ | 
| OLD | NEW | 
|---|