Index: webrtc/test/fake_texture_frame.h |
diff --git a/webrtc/test/fake_texture_frame.h b/webrtc/test/fake_texture_frame.h |
index bc911ccba436efc9f531cdff46ed13c51e0ae073..9575fae469d6f8029824fbda768957bce661bd50 100644 |
--- a/webrtc/test/fake_texture_frame.h |
+++ b/webrtc/test/fake_texture_frame.h |
@@ -17,7 +17,15 @@ |
namespace webrtc { |
namespace test { |
-class FakeNativeHandle {}; |
+class FakeNativeHandle { |
+ public: |
+ static VideoFrame CreateFrame(FakeNativeHandle* native_handle, |
+ int width, |
+ int height, |
+ uint32_t timestamp, |
+ int64_t render_time_ms, |
+ VideoRotation rotation); |
+}; |
class FakeNativeHandleBuffer : public NativeHandleBuffer { |
public: |
@@ -41,16 +49,6 @@ class FakeNativeHandleBuffer : public NativeHandleBuffer { |
} |
}; |
-static VideoFrame CreateFakeNativeHandleFrame(FakeNativeHandle* native_handle, |
- int width, |
- int height, |
- uint32_t timestamp, |
- int64_t render_time_ms, |
- VideoRotation rotation) { |
- return VideoFrame(new rtc::RefCountedObject<FakeNativeHandleBuffer>( |
- native_handle, width, height), |
- timestamp, render_time_ms, rotation); |
-} |
} // namespace test |
} // namespace webrtc |
#endif // WEBRTC_TEST_FAKE_TEXTURE_FRAME_H_ |