Lines Matching defs:SkImage_Gpu
8 #include "src/image/SkImage_Gpu.h"
48 inline SkImage_Gpu::ProxyChooser::ProxyChooser(sk_sp<GrSurfaceProxy> stableProxy)
53 inline SkImage_Gpu::ProxyChooser::ProxyChooser(sk_sp<GrSurfaceProxy> stableProxy,
66 inline SkImage_Gpu::ProxyChooser::~ProxyChooser() {
74 inline sk_sp<GrSurfaceProxy> SkImage_Gpu::ProxyChooser::chooseProxy(GrRecordingContext* context) {
92 inline sk_sp<GrSurfaceProxy> SkImage_Gpu::ProxyChooser::switchToStableProxy() {
99 inline sk_sp<GrSurfaceProxy> SkImage_Gpu::ProxyChooser::makeVolatileProxyStable() {
109 inline bool SkImage_Gpu::ProxyChooser::surfaceMustCopyOnWrite(GrSurfaceProxy* surfaceProxy) const {
114 inline size_t SkImage_Gpu::ProxyChooser::gpuMemorySize() const {
123 inline GrMipmapped SkImage_Gpu::ProxyChooser::mipmapped() const {
133 inline GrBackendFormat SkImage_Gpu::ProxyChooser::backendFormat() {
144 SkImage_Gpu::SkImage_Gpu(sk_sp<GrImageContext> context,
163 SkImage_Gpu::SkImage_Gpu(sk_sp<GrDirectContext> dContext,
188 sk_sp<SkImage> SkImage_Gpu::MakeWithVolatileSrc(sk_sp<GrRecordingContext> rContext,
211 return sk_sp<SkImage>(new SkImage_Gpu(std::move(direct),
219 return sk_make_sp<SkImage_Gpu>(std::move(rContext),
225 SkImage_Gpu::~SkImage_Gpu() = default;
227 bool SkImage_Gpu::surfaceMustCopyOnWrite(GrSurfaceProxy* surfaceProxy) const {
231 bool SkImage_Gpu::onHasMipmaps() const { return fChooser.mipmapped() == GrMipmapped::kYes; }
233 GrSemaphoresSubmitted SkImage_Gpu::onFlush(GrDirectContext* dContext,
251 GrBackendTexture SkImage_Gpu::onGetBackendTexture(bool flushPendingGrContextIO,
287 size_t SkImage_Gpu::onTextureSize() const { return fChooser.gpuMemorySize(); }
289 sk_sp<SkImage> SkImage_Gpu::onMakeColorTypeAndColorSpace(SkColorType targetCT,
314 return sk_make_sp<SkImage_Gpu>(sk_ref_sp(dContext),
320 sk_sp<SkImage> SkImage_Gpu::onReinterpretColorSpace(sk_sp<SkColorSpace> newCS) const {
324 return sk_make_sp<SkImage_Gpu>(fContext,
330 void SkImage_Gpu::onAsyncRescaleAndReadPixels(const SkImageInfo& info,
351 void SkImage_Gpu::onAsyncRescaleAndReadPixelsYUV420(SkYUVColorSpace yuvColorSpace,
381 void SkImage_Gpu::generatingSurfaceIsDeleted() { fChooser.makeVolatileProxyStable(); }
407 return sk_make_sp<SkImage_Gpu>(sk_ref_sp(rContext),
443 return sk_make_sp<SkImage_Gpu>(sk_ref_sp(rContext),
530 return sk_make_sp<SkImage_Gpu>(sk_ref_sp(direct),
567 return sk_make_sp<SkImage_Gpu>(sk_ref_sp(dContext),
625 return sk_make_sp<SkImage_Gpu>(std::move(ctx),
754 sk_sp<SkImage> image = sk_make_sp<SkImage_Gpu>(sk_ref_sp(dContext),
828 std::tuple<GrSurfaceProxyView, GrColorType> SkImage_Gpu::onAsView(
847 std::unique_ptr<GrFragmentProcessor> SkImage_Gpu::onAsFragmentProcessor(
868 GrSurfaceProxyView SkImage_Gpu::makeView(GrRecordingContext* rContext) const {
872 void SkImage_Gpu::hintCacheGpuResource() {