SourceImpl: Add no-copy PutFrame.

This commit is contained in:
Peter Johnson
2016-12-02 19:14:59 -08:00
parent ef39713219
commit 9a8f66e3e5
2 changed files with 5 additions and 0 deletions

View File

@@ -122,6 +122,7 @@ class SourceImpl {
protected:
void PutFrame(VideoMode::PixelFormat pixelFormat, int width, int height,
llvm::StringRef data, Frame::Time time);
void PutFrame(std::unique_ptr<Frame::Data> frameData);
void PutError(llvm::StringRef msg, Frame::Time time) {
PutFrame(VideoMode::kUnknown, 0, 0, msg, time);
}