#include "components/viz/test/fake_output_surface.h"
#include "base/functional/bind.h"
#include "base/task/single_thread_task_runner.h"
#include "build/build_config.h"
#include "build/chromeos_buildflags.h"
#include "components/viz/common/resources/returned_resource.h"
#include "components/viz/service/display/output_surface_client.h"
#include "components/viz/test/begin_frame_args_test.h"
#include "gpu/command_buffer/common/swap_buffers_complete_params.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/gfx/buffer_format_util.h"
#include "ui/gfx/presentation_feedback.h"
#include "ui/gfx/swap_result.h"
namespace viz {
FakeSoftwareOutputSurface::FakeSoftwareOutputSurface(
std::unique_ptr<SoftwareOutputDevice> software_device)
: … { … }
FakeSoftwareOutputSurface::~FakeSoftwareOutputSurface() = default;
void FakeSoftwareOutputSurface::Reshape(const ReshapeParams& params) { … }
void FakeSoftwareOutputSurface::SwapBuffers(OutputSurfaceFrame frame) { … }
void FakeSoftwareOutputSurface::SwapBuffersAck() { … }
void FakeSoftwareOutputSurface::BindToClient(OutputSurfaceClient* client) { … }
void FakeSoftwareOutputSurface::SetUpdateVSyncParametersCallback(
UpdateVSyncParametersCallback callback) { … }
void FakeSoftwareOutputSurface::SetDisplayTransformHint(
gfx::OverlayTransform transform) { … }
gfx::OverlayTransform FakeSoftwareOutputSurface::GetDisplayTransform() { … }
#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)
void FakeSoftwareOutputSurface::SetNeedsSwapSizeNotifications(
bool needs_swap_size_notifications) { … }
#endif
}