#include "components/viz/service/display/software_output_device.h"
#include <utility>
#include "base/check.h"
#include "base/functional/bind.h"
#include "base/task/sequenced_task_runner.h"
#include "skia/ext/legacy_display_globals.h"
#include "third_party/skia/include/core/SkCanvas.h"
#include "ui/gfx/vsync_provider.h"
namespace viz {
SoftwareOutputDevice::SoftwareOutputDevice()
: … { … }
SoftwareOutputDevice::SoftwareOutputDevice(
scoped_refptr<base::SequencedTaskRunner> task_runner)
: … { … }
SoftwareOutputDevice::~SoftwareOutputDevice() = default;
void SoftwareOutputDevice::BindToClient(SoftwareOutputDeviceClient* client) { … }
void SoftwareOutputDevice::Resize(const gfx::Size& viewport_pixel_size,
float scale_factor) { … }
SkCanvas* SoftwareOutputDevice::BeginPaint(const gfx::Rect& damage_rect) { … }
void SoftwareOutputDevice::EndPaint() { … }
gfx::VSyncProvider* SoftwareOutputDevice::GetVSyncProvider() { … }
void SoftwareOutputDevice::OnSwapBuffers(SwapBuffersCallback swap_ack_callback,
gfx::FrameData data) { … }
int SoftwareOutputDevice::MaxFramesPending() const { … }
bool SoftwareOutputDevice::SupportsOverridePlatformSize() const { … }
}