#include "components/viz/service/display/null_renderer.h"
#include "base/notreached.h"
#include "components/viz/common/frame_sinks/copy_output_request.h"
#include "components/viz/service/display/output_surface.h"
namespace viz {
NullRenderer::NullRenderer(const RendererSettings* settings,
const DebugRendererSettings* debug_settings,
OutputSurface* output_surface,
DisplayResourceProvider* resource_provider,
OverlayProcessorInterface* overlay_processor)
: … { … }
NullRenderer::~NullRenderer() = default;
void NullRenderer::SwapBuffers(SwapFrameData swap_frame_data) { … }
void NullRenderer::BeginDrawingFrame() { … }
bool NullRenderer::CanPartialSwap() { … }
bool NullRenderer::IsRenderPassResourceAllocated(
const AggregatedRenderPassId& render_pass_id) const { … }
gfx::Size NullRenderer::GetRenderPassBackingPixelSize(
const AggregatedRenderPassId& render_pass_id) { … }
void NullRenderer::CopyDrawnRenderPass(
const copy_output::RenderPassGeometry& geometry,
std::unique_ptr<CopyOutputRequest> request) { … }
gfx::Rect NullRenderer::GetRenderPassBackingDrawnRect(
const AggregatedRenderPassId& render_pass_id) const { … }
}