#ifndef REMOTING_CLIENT_CLI_LOGGING_FRAME_CONSUMER_H_
#define REMOTING_CLIENT_CLI_LOGGING_FRAME_CONSUMER_H_
#include <memory>
#include "base/functional/callback_forward.h"
#include "remoting/protocol/frame_consumer.h"
namespace webrtc {
class DesktopFrame;
class DesktopSize;
}
namespace remoting {
class LoggingFrameConsumer : public protocol::FrameConsumer {
public:
LoggingFrameConsumer();
LoggingFrameConsumer(const LoggingFrameConsumer&) = delete;
LoggingFrameConsumer& operator=(const LoggingFrameConsumer&) = delete;
~LoggingFrameConsumer() override;
std::unique_ptr<webrtc::DesktopFrame> AllocateFrame(
const webrtc::DesktopSize& size) override;
void DrawFrame(std::unique_ptr<webrtc::DesktopFrame> frame,
base::OnceClosure done) override;
PixelFormat GetPixelFormat() override;
};
}
#endif