#include "components/viz/common/frame_sinks/copy_output_request.h"
#include <utility>
#include "base/check_op.h"
#include "base/functional/bind.h"
#include "base/ranges/algorithm.h"
#include "base/strings/stringprintf.h"
#include "base/task/task_traits.h"
#include "base/task/thread_pool.h"
#include "base/trace_event/trace_event.h"
#include "components/viz/common/frame_sinks/copy_output_result.h"
#include "third_party/skia/include/core/SkBitmap.h"
namespace {
const char* ResultFormatToShortString(
viz::CopyOutputRequest::ResultFormat result_format) { … }
const char* ResultDestinationToShortString(
viz::CopyOutputRequest::ResultDestination result_destination) { … }
}
namespace viz {
CopyOutputRequest::CopyOutputRequest(ResultFormat result_format,
ResultDestination result_destination,
CopyOutputRequestCallback result_callback)
: … { … }
CopyOutputRequest::~CopyOutputRequest() { … }
std::string CopyOutputRequest::ToString() const { … }
void CopyOutputRequest::SetScaleRatio(const gfx::Vector2d& scale_from,
const gfx::Vector2d& scale_to) { … }
void CopyOutputRequest::SetUniformScaleRatio(int scale_from, int scale_to) { … }
void CopyOutputRequest::set_blit_request(BlitRequest blit_request) { … }
void CopyOutputRequest::SendResult(std::unique_ptr<CopyOutputResult> result) { … }
bool CopyOutputRequest::SendsResultsInCurrentSequence() const { … }
std::unique_ptr<CopyOutputRequest> CopyOutputRequest::CreateStubForTesting() { … }
}