#include "src/gpu/ganesh/GrRenderTargetProxy.h"
#include "include/core/SkSize.h"
#include "include/gpu/GpuTypes.h"
#include "include/gpu/ganesh/GrBackendSurface.h"
#include "include/gpu/ganesh/GrTypes.h"
#include "include/private/base/SkTo.h"
#include "src/gpu/SkBackingFit.h"
#include "src/gpu/ganesh/GrCaps.h"
#include "src/gpu/ganesh/GrGpuResourcePriv.h"
#include "src/gpu/ganesh/GrRenderTarget.h"
#include "src/gpu/ganesh/GrSurface.h"
#include "src/gpu/ganesh/GrSurfaceProxyPriv.h"
#include <utility>
#ifdef SK_DEBUG
#include "include/gpu/ganesh/GrDirectContext.h"
#include "src/gpu/ganesh/GrDirectContextPriv.h"
#endif
GrRenderTargetProxy::GrRenderTargetProxy(const GrCaps& caps,
const GrBackendFormat& format,
SkISize dimensions,
int sampleCount,
SkBackingFit fit,
skgpu::Budgeted budgeted,
GrProtected isProtected,
GrInternalSurfaceFlags surfaceFlags,
UseAllocator useAllocator,
std::string_view label)
: … { … }
GrRenderTargetProxy::GrRenderTargetProxy(LazyInstantiateCallback&& callback,
const GrBackendFormat& format,
SkISize dimensions,
int sampleCount,
SkBackingFit fit,
skgpu::Budgeted budgeted,
GrProtected isProtected,
GrInternalSurfaceFlags surfaceFlags,
UseAllocator useAllocator,
WrapsVkSecondaryCB wrapsVkSecondaryCB,
std::string_view label)
: … { … }
GrRenderTargetProxy::GrRenderTargetProxy(sk_sp<GrSurface> surf,
UseAllocator useAllocator,
WrapsVkSecondaryCB wrapsVkSecondaryCB)
: … { … }
int GrRenderTargetProxy::maxWindowRectangles(const GrCaps& caps) const { … }
bool GrRenderTargetProxy::instantiate(GrResourceProvider* resourceProvider) { … }
bool GrRenderTargetProxy::canUseStencil(const GrCaps& caps) const { … }
sk_sp<GrSurface> GrRenderTargetProxy::createSurface(GrResourceProvider* resourceProvider) const { … }
size_t GrRenderTargetProxy::onUninstantiatedGpuMemorySize() const { … }
bool GrRenderTargetProxy::refsWrappedObjects() const { … }
GrSurfaceProxy::LazySurfaceDesc GrRenderTargetProxy::callbackDesc() const { … }
#ifdef SK_DEBUG
void GrRenderTargetProxy::onValidateSurface(const GrSurface* surface) { … }
#endif