diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/gpu/GrCaps.h | 10 | ||||
-rw-r--r-- | include/gpu/GrContextOptions.h | 3 |
2 files changed, 5 insertions, 8 deletions
diff --git a/include/gpu/GrCaps.h b/include/gpu/GrCaps.h index de9bc73cf5..2e01cd9fed 100644 --- a/include/gpu/GrCaps.h +++ b/include/gpu/GrCaps.h @@ -20,6 +20,7 @@ class GrBackendRenderTarget; class GrBackendTexture; struct GrContextOptions; class GrRenderTargetProxy; +class GrSurface; class SkJSONWriter; /** @@ -186,12 +187,11 @@ public: } /** - * Some backends have restrictions on what types of render targets for which - * GrGpu::writePixels() will succeed. If this returns false then the caller should implement a - * fallback where a temporary texture is created, pixels are written to it, and then that is - * copied or drawn into the the render target. + * Backends may have restrictions on what types of surfaces support GrGpu::writePixels(). + * If this returns false then the caller should implement a fallback where a temporary texture + * is created, pixels are written to it, and then that is copied or drawn into the the surface. */ - virtual bool renderTargetWritePixelsSupported(bool isAlsoTexture, int sampleCnt) const = 0; + virtual bool surfaceSupportsWritePixels(const GrSurface* surface) const = 0; /** * Given a dst pixel config and a src color type what color type must the caller coax the diff --git a/include/gpu/GrContextOptions.h b/include/gpu/GrContextOptions.h index 84863f50a6..74ec7feb1f 100644 --- a/include/gpu/GrContextOptions.h +++ b/include/gpu/GrContextOptions.h @@ -70,9 +70,6 @@ struct GrContextOptions { */ SkExecutor* fExecutor = nullptr; - /** some gpus have problems with partial writes of the rendertarget */ - bool fUseDrawInsteadOfPartialRenderTargetWrite = false; - /** Construct mipmaps manually, via repeated downsampling draw-calls. This is used when the driver's implementation (glGenerateMipmap) contains bugs. This requires mipmap level and LOD control (ie desktop or ES3). */ |