#include "src/gpu/ganesh/GrRecordingContextPriv.h"
#include "include/core/SkAlphaType.h"
#include "include/core/SkColorSpace.h"
#include "include/core/SkSize.h"
#include "include/core/SkSurfaceProps.h"
#include "include/gpu/ganesh/GrBackendSurface.h"
#include "include/gpu/ganesh/GrContextOptions.h"
#include "include/private/gpu/ganesh/GrContext_Base.h"
#include "include/private/gpu/ganesh/GrTypesPriv.h"
#include "src/gpu/RefCntedCallback.h"
#include "src/gpu/Swizzle.h"
#include "src/gpu/ganesh/Device.h"
#include "src/gpu/ganesh/GrCaps.h"
#include "src/gpu/ganesh/GrDrawingManager.h"
#include "src/gpu/ganesh/GrImageInfo.h"
#include "src/gpu/ganesh/GrProxyProvider.h"
#include "src/gpu/ganesh/GrShaderCaps.h"
#include "src/gpu/ganesh/GrSurfaceProxy.h"
#include "src/gpu/ganesh/GrSurfaceProxyView.h"
#include "src/gpu/ganesh/GrTextureProxy.h"
#include "src/gpu/ganesh/SurfaceContext.h"
#include "src/gpu/ganesh/SurfaceDrawContext.h"
#include "src/gpu/ganesh/SurfaceFillContext.h"
#include <utility>
void GrRecordingContextPriv::addOnFlushCallbackObject(GrOnFlushCallbackObject* onFlushCBObject) { … }
sk_sp<skgpu::ganesh::Device> GrRecordingContextPriv::createDevice(
GrColorType colorType,
sk_sp<GrSurfaceProxy> proxy,
sk_sp<SkColorSpace> colorSpace,
GrSurfaceOrigin origin,
const SkSurfaceProps& props,
skgpu::ganesh::Device::InitContents init) { … }
sk_sp<skgpu::ganesh::Device> GrRecordingContextPriv::createDevice(
skgpu::Budgeted budgeted,
const SkImageInfo& ii,
SkBackingFit fit,
int sampleCount,
skgpu::Mipmapped mipmapped,
GrProtected isProtected,
GrSurfaceOrigin origin,
const SkSurfaceProps& props,
skgpu::ganesh::Device::InitContents init) { … }
void GrRecordingContextPriv::moveRenderTasksToDDL(GrDeferredDisplayList* ddl) { … }
sktext::gpu::SubRunControl GrRecordingContextPriv::getSubRunControl(
bool useSDFTForSmallText) const { … }
std::unique_ptr<skgpu::ganesh::SurfaceContext> GrRecordingContextPriv::makeSC(
GrSurfaceProxyView readView, const GrColorInfo& info) { … }
std::unique_ptr<skgpu::ganesh::SurfaceContext> GrRecordingContextPriv::makeSC(
const GrImageInfo& info,
const GrBackendFormat& format,
std::string_view label,
SkBackingFit fit,
GrSurfaceOrigin origin,
GrRenderable renderable,
int sampleCount,
skgpu::Mipmapped mipmapped,
GrProtected isProtected,
skgpu::Budgeted budgeted) { … }
std::unique_ptr<skgpu::ganesh::SurfaceFillContext> GrRecordingContextPriv::makeSFC(
GrImageInfo info,
std::string_view label,
SkBackingFit fit,
int sampleCount,
skgpu::Mipmapped mipmapped,
GrProtected isProtected,
GrSurfaceOrigin origin,
skgpu::Budgeted budgeted) { … }
std::unique_ptr<skgpu::ganesh::SurfaceFillContext> GrRecordingContextPriv::makeSFC(
SkAlphaType alphaType,
sk_sp<SkColorSpace> colorSpace,
SkISize dimensions,
SkBackingFit fit,
const GrBackendFormat& format,
int sampleCount,
skgpu::Mipmapped mipmapped,
GrProtected isProtected,
skgpu::Swizzle readSwizzle,
skgpu::Swizzle writeSwizzle,
GrSurfaceOrigin origin,
skgpu::Budgeted budgeted,
std::string_view label) { … }
std::unique_ptr<skgpu::ganesh::SurfaceFillContext> GrRecordingContextPriv::makeSFCWithFallback(
GrImageInfo info,
SkBackingFit fit,
int sampleCount,
skgpu::Mipmapped mipmapped,
GrProtected isProtected,
GrSurfaceOrigin origin,
skgpu::Budgeted budgeted) { … }
std::unique_ptr<skgpu::ganesh::SurfaceFillContext>
GrRecordingContextPriv::makeSFCFromBackendTexture(GrColorInfo info,
const GrBackendTexture& tex,
int sampleCount,
GrSurfaceOrigin origin,
sk_sp<skgpu::RefCntedCallback> releaseHelper) { … }