#include "remoting/test/cyclic_frame_generator.h"
#include <ostream>
#include "base/numerics/safe_conversions.h"
#include "base/time/default_tick_clock.h"
#include "remoting/test/frame_generator_util.h"
#include "third_party/webrtc/modules/desktop_capture/desktop_frame.h"
#include "third_party/webrtc/modules/desktop_capture/desktop_geometry.h"
namespace remoting {
namespace test {
CyclicFrameGenerator::ChangeInfo::ChangeInfo() = default;
CyclicFrameGenerator::ChangeInfo::ChangeInfo(ChangeType type,
base::TimeTicks timestamp)
: … { … }
scoped_refptr<CyclicFrameGenerator> CyclicFrameGenerator::Create() { … }
CyclicFrameGenerator::CyclicFrameGenerator(
std::vector<std::unique_ptr<webrtc::DesktopFrame>> reference_frames)
: … { … }
CyclicFrameGenerator::~CyclicFrameGenerator() = default;
void CyclicFrameGenerator::SetTickClock(const base::TickClock* tick_clock) { … }
std::unique_ptr<webrtc::DesktopFrame> CyclicFrameGenerator::GenerateFrame(
webrtc::SharedMemoryFactory* shared_memory_factory) { … }
CyclicFrameGenerator::ChangeInfoList CyclicFrameGenerator::GetChangeList(
base::TimeTicks timestamp) { … }
protocol::InputEventTimestamps CyclicFrameGenerator::TakeLastEventTimestamps() { … }
}
}