#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "remoting/test/frame_generator_util.h"
#include "base/base_paths.h"
#include "base/files/file_util.h"
#include "base/logging.h"
#include "base/path_service.h"
#include "third_party/skia/include/core/SkBitmap.h"
#include "third_party/webrtc/modules/desktop_capture/desktop_frame.h"
#include "third_party/webrtc/modules/desktop_capture/desktop_geometry.h"
#include "ui/gfx/codec/png_codec.h"
namespace {
void CopyPixelsToBuffer(const SkBitmap& src,
uint8_t* dst_pixels,
int dst_stride) { … }
}
namespace remoting {
namespace test {
std::unique_ptr<webrtc::DesktopFrame> LoadDesktopFrameFromPng(
const char* name) { … }
void DrawRect(webrtc::DesktopFrame* frame,
webrtc::DesktopRect rect,
uint32_t color) { … }
}
}