/third_party/skia/src/gpu/ |
H A D | GrTexture.cpp | 17 #include "src/gpu/GrTexture.h" 24 void GrTexture::markMipmapsDirty() { in markMipmapsDirty() 30 void GrTexture::markMipmapsClean() { in markMipmapsClean() 35 size_t GrTexture::onGpuMemorySize() const { in onGpuMemorySize() 41 GrTexture::GrTexture(GrGpu* gpu, in GrTexture() function in GrTexture 59 bool GrTexture::StealBackendTexture(sk_sp<GrTexture> texture, in StealBackendTexture() 89 void GrTexture::computeScratchKey(GrScratchKey* key) const { 103 void GrTexture [all...] |
H A D | GrGpu.h | 43 class GrTexture; 114 * be used as a render target by calling GrTexture::asRenderTarget(). Not all 146 sk_sp<GrTexture> createTexture(SkISize dimensions, 161 sk_sp<GrTexture> createTexture(SkISize dimensions, 170 sk_sp<GrTexture> createCompressedTexture(SkISize dimensions, 177 sk_sp<GrTexture> createCompressedTexture(SkISize dimensions, 188 sk_sp<GrTexture> wrapBackendTexture(const GrBackendTexture&, 193 sk_sp<GrTexture> wrapCompressedBackendTexture(const GrBackendTexture&, 200 sk_sp<GrTexture> wrapRenderableBackendTexture(const GrBackendTexture&, 237 bool regenerateMipMapLevels(GrTexture*); [all...] |
H A D | GrResourceProvider.h | 27 class GrTexture; 60 * and height as desc specifies. If renderable is kYes then the GrTexture will also be a 64 sk_sp<GrTexture> createApproxTexture(SkISize dimensions, 72 sk_sp<GrTexture> createTexture(SkISize dimensions, 86 sk_sp<GrTexture> createTexture(SkISize dimensions, 102 sk_sp<GrTexture> createTexture(SkISize dimensions, 117 sk_sp<GrTexture> findAndRefScratchTexture(const GrScratchKey&); 118 sk_sp<GrTexture> findAndRefScratchTexture(SkISize dimensions, 130 sk_sp<GrTexture> createCompressedTexture(SkISize dimensions, 141 * Wraps an existing texture with a GrTexture objec [all...] |
H A D | GrTexture.h | 19 class GrTexture : virtual public GrSurface { class 21 GrTexture* asTexture() override { return this; } 22 const GrTexture* asTexture() const override { return this; } 33 * This function steals the backend texture from a uniquely owned GrTexture with no pending 34 * IO, passing it out to the caller. The GrTexture is deleted in the process. 36 * Note that if the GrTexture is not uniquely owned (no other refs), or has pending IO, this 39 static bool StealBackendTexture(sk_sp<GrTexture>, 67 GrTexture(GrGpu*, const SkISize&, GrProtected, GrTextureType, GrMipmapStatus);
|
H A D | GrBackendTextureImageGenerator.h | 15 #include "src/gpu/GrTexture.h" 33 static std::unique_ptr<SkImageGenerator> Make(sk_sp<GrTexture>, GrSurfaceOrigin, 52 GrTexture*, 62 RefHelper(GrTexture*, 68 GrTexture* fOriginalTexture; 71 // We use this key so that we don't rewrap the GrBackendTexture in a GrTexture for each
|
H A D | GrResourceProvider.cpp | 27 #include "src/gpu/GrTexture.h" 44 sk_sp<GrTexture> GrResourceProvider::createTexture(SkISize dimensions, in createTexture() 112 sk_sp<GrTexture> GrResourceProvider::getExactScratch(SkISize dimensions, in getExactScratch() 120 sk_sp<GrTexture> tex(this->findAndRefScratchTexture(dimensions, in getExactScratch() 134 sk_sp<GrTexture> GrResourceProvider::createTexture(SkISize dimensions, in createTexture() 179 sk_sp<GrTexture> GrResourceProvider::createCompressedTexture(SkISize dimensions, in createCompressedTexture() 199 sk_sp<GrTexture> GrResourceProvider::createTexture(SkISize dimensions, in createTexture() 222 sk_sp<GrTexture> tex = in createTexture() 274 sk_sp<GrTexture> GrResourceProvider::createApproxTexture(SkISize dimensions, in createApproxTexture() 313 sk_sp<GrTexture> GrResourceProvide [all...] |
H A D | GrGpu.cpp | 98 sk_sp<GrTexture> GrGpu::createTextureCommon(SkISize dimensions, in createTextureCommon() 152 sk_sp<GrTexture> GrGpu::createTexture(SkISize dimensions, in createTexture() 182 sk_sp<GrTexture> GrGpu::createTexture(SkISize dimensions, in createTexture() 251 sk_sp<GrTexture> GrGpu::createCompressedTexture(SkISize dimensions, in createCompressedTexture() 287 sk_sp<GrTexture> GrGpu::createCompressedTexture(SkISize dimensions, in createCompressedTexture() 320 sk_sp<GrTexture> GrGpu::wrapBackendTexture(const GrBackendTexture& backendTex, in wrapBackendTexture() 341 sk_sp<GrTexture> GrGpu::wrapCompressedBackendTexture(const GrBackendTexture& backendTex, in wrapCompressedBackendTexture() 360 sk_sp<GrTexture> GrGpu::wrapRenderableBackendTexture(const GrBackendTexture& backendTex, in wrapRenderableBackendTexture() 380 sk_sp<GrTexture> tex = in wrapRenderableBackendTexture() 547 bool GrGpu::transferPixelsTo(GrTexture* textur [all...] |
H A D | GrSurface.h | 18 class GrTexture; 50 // TODO: Remove Chrome's need to call this on a GrTexture 60 virtual GrTexture* asTexture() { return nullptr; } in asTexture() 61 virtual const GrTexture* asTexture() const { return nullptr; } in asTexture()
|
H A D | GrBackendTextureImageGenerator.cpp | 20 #include "src/gpu/GrTexture.h" 26 GrTexture* texture, in RefHelper() 44 GrBackendTextureImageGenerator::Make(sk_sp<GrTexture> texture, GrSurfaceOrigin origin, in Make() 70 GrTexture* texture, in GrBackendTextureImageGenerator() 182 sk_sp<GrTexture> tex; in onGenerateTexture() 207 // We use keys to avoid re-wrapping the GrBackendTexture in a GrTexture. in onGenerateTexture()
|
H A D | GrDynamicAtlas.h | 75 void instantiate(GrOnFlushResourceProvider*, sk_sp<GrTexture> backingTexture = nullptr); 95 sk_sp<GrTexture> fBackingTexture;
|
H A D | GrResourceCache.h | 35 class GrTexture; 39 GrTexture* fTexture; 247 void insertDelayedTextureUnref(GrTexture*); 472 TextureAwaitingUnref(GrTexture* texture); 483 GrTexture* fTexture = nullptr;
|
/third_party/skia/src/gpu/mock/ |
H A D | GrMockGpu.h | 15 #include "src/gpu/GrTexture.h" 44 std::unique_ptr<GrSemaphore> prepareTextureForCrossContextUsage(GrTexture*) override { 58 sk_sp<GrTexture> onCreateTexture(SkISize, 67 sk_sp<GrTexture> onCreateCompressedTexture(SkISize dimensions, 74 sk_sp<GrTexture> onCreateCompressedTexture(SkISize dimensions, 82 sk_sp<GrTexture> onWrapBackendTexture(const GrBackendTexture&, 86 sk_sp<GrTexture> onWrapCompressedBackendTexture(const GrBackendTexture&, 90 sk_sp<GrTexture> onWrapRenderableBackendTexture(const GrBackendTexture&, 119 bool onTransferPixelsTo(GrTexture*, 143 bool onRegenerateMipMapLevels(GrTexture*) overrid [all...] |
H A D | GrMockGpu.cpp | 94 sk_sp<GrTexture> GrMockGpu::onCreateTexture(SkISize dimensions, in onCreateTexture() 117 return sk_sp<GrTexture>(new GrMockTextureRenderTarget(this, budgeted, dimensions, in onCreateTexture() 121 return sk_sp<GrTexture>( in onCreateTexture() 126 sk_sp<GrTexture> GrMockGpu::onCreateCompressedTexture(SkISize dimensions, in onCreateCompressedTexture() 149 return sk_sp<GrTexture>( in onCreateCompressedTexture() 153 sk_sp<GrTexture> GrMockGpu::onCreateCompressedTexture(SkISize dimensions, in onCreateCompressedTexture() 164 sk_sp<GrTexture> GrMockGpu::onWrapBackendTexture(const GrBackendTexture& tex, in onWrapBackendTexture() 179 return sk_sp<GrTexture>(new GrMockTexture(this, tex.dimensions(), isProtected, mipmapStatus, in onWrapBackendTexture() 183 sk_sp<GrTexture> GrMockGpu::onWrapCompressedBackendTexture(const GrBackendTexture& tex, in onWrapCompressedBackendTexture() 189 sk_sp<GrTexture> GrMockGp [all...] |
H A D | GrMockTexture.h | 13 #include "src/gpu/GrTexture.h" 16 class GrMockTexture : public GrTexture { 77 using INHERITED = GrTexture; 184 GrTexture* asTexture() override { return this; } 186 const GrTexture* asTexture() const override { return this; } 215 void computeScratchKey(GrScratchKey* key) const override { GrTexture::computeScratchKey(key); }
|
/third_party/skia/src/gpu/d3d/ |
H A D | GrD3DGpu.h | 112 std::unique_ptr<GrSemaphore> prepareTextureForCrossContextUsage(GrTexture*) override { 134 sk_sp<GrTexture> onCreateTexture(SkISize, 143 sk_sp<GrTexture> onCreateCompressedTexture(SkISize dimensions, 150 sk_sp<GrTexture> onCreateCompressedTexture(SkISize dimensions, 158 sk_sp<GrTexture> onWrapBackendTexture(const GrBackendTexture&, 162 sk_sp<GrTexture> onWrapCompressedBackendTexture(const GrBackendTexture&, 166 sk_sp<GrTexture> onWrapRenderableBackendTexture(const GrBackendTexture&, 191 bool onTransferPixelsTo(GrTexture*, 209 bool onRegenerateMipMapLevels(GrTexture*) override;
|
H A D | GrD3DTexture.h | 13 #include "src/gpu/GrTexture.h" 17 class GrD3DTexture : public GrTexture, public virtual GrD3DTextureResource { 87 using INHERITED = GrTexture;
|
/third_party/skia/src/gpu/dawn/ |
H A D | GrDawnGpu.h | 92 std::unique_ptr<GrSemaphore> prepareTextureForCrossContextUsage(GrTexture*) override; 113 sk_sp<GrTexture> onCreateTexture(SkISize, 122 sk_sp<GrTexture> onCreateCompressedTexture(SkISize dimensions, 129 sk_sp<GrTexture> onCreateCompressedTexture(SkISize dimensions, 137 sk_sp<GrTexture> onWrapBackendTexture(const GrBackendTexture&, 141 sk_sp<GrTexture> onWrapCompressedBackendTexture(const GrBackendTexture&, 144 sk_sp<GrTexture> onWrapRenderableBackendTexture(const GrBackendTexture&, 188 bool onTransferPixelsTo(GrTexture*, 205 bool onRegenerateMipMapLevels(GrTexture*) override;
|
H A D | GrDawnTexture.h | 11 #include "src/gpu/GrTexture.h" 16 class GrDawnTexture : public GrTexture { 50 using INHERITED = GrTexture;
|
/third_party/skia/src/gpu/mtl/ |
H A D | GrMtlGpu.h | 21 #include "src/gpu/GrTexture.h" 110 std::unique_ptr<GrSemaphore> prepareTextureForCrossContextUsage(GrTexture*) override; 158 sk_sp<GrTexture> onCreateTexture(SkISize, 166 sk_sp<GrTexture> onCreateCompressedTexture(SkISize dimensions, 173 sk_sp<GrTexture> onWrapBackendTexture(const GrBackendTexture&, 178 sk_sp<GrTexture> onWrapCompressedBackendTexture(const GrBackendTexture&, 182 sk_sp<GrTexture> onWrapRenderableBackendTexture(const GrBackendTexture&, 207 bool onTransferPixelsTo(GrTexture*, 222 bool onRegenerateMipMapLevels(GrTexture*) override;
|
H A D | GrMtlTexture.h | 11 #include "src/gpu/GrTexture.h" 17 class GrMtlTexture : public GrTexture { 78 using INHERITED = GrTexture;
|
/third_party/skia/src/gpu/vk/ |
H A D | GrVkGpu.h | 149 bool onRegenerateMipMapLevels(GrTexture* tex) override; 179 std::unique_ptr<GrSemaphore> prepareTextureForCrossContextUsage(GrTexture*) override; 261 sk_sp<GrTexture> onCreateTexture(SkISize, 269 sk_sp<GrTexture> onCreateCompressedTexture(SkISize dimensions, 275 sk_sp<GrTexture> onCreateCompressedTexture(SkISize dimensions, 283 sk_sp<GrTexture> onWrapBackendTexture(const GrBackendTexture&, 287 sk_sp<GrTexture> onWrapCompressedBackendTexture(const GrBackendTexture&, 290 sk_sp<GrTexture> onWrapRenderableBackendTexture(const GrBackendTexture&, 317 bool onTransferPixelsTo(GrTexture*,
|
H A D | GrVkTexture.cpp | 11 #include "src/gpu/GrTexture.h" 30 , GrTexture(gpu, dimensions, in GrVkTexture() 58 , GrTexture(gpu, dimensions, texture->isProtected() ? GrProtected::kYes : GrProtected::kNo, in GrVkTexture() 76 , GrTexture(gpu, dimensions, texture->isProtected() ? GrProtected::kYes : GrProtected::kNo, in GrVkTexture() 142 GrTexture::onRelease(); in onRelease() 163 GrTexture::onAbandon(); in onAbandon()
|
/third_party/skia/src/gpu/gl/ |
H A D | GrGLGpu.h | 201 std::unique_ptr<GrSemaphore> prepareTextureForCrossContextUsage(GrTexture*) override; 245 sk_sp<GrTexture> onCreateTexture(SkISize dimensions, 253 sk_sp<GrTexture> onCreateCompressedTexture(SkISize dimensions, 259 sk_sp<GrTexture> onCreateCompressedTexture(SkISize dimensions, 270 sk_sp<GrTexture> onWrapBackendTexture(const GrBackendTexture&, 274 sk_sp<GrTexture> onWrapCompressedBackendTexture(const GrBackendTexture&, 277 sk_sp<GrTexture> onWrapRenderableBackendTexture(const GrBackendTexture&, 330 bool onTransferPixelsTo(GrTexture*, 361 bool onRegenerateMipMapLevels(GrTexture*) override; 540 bool createCopyProgram(GrTexture* srcTextur [all...] |
H A D | GrGLTexture.h | 14 #include "src/gpu/GrTexture.h" 19 class GrGLTexture : public GrTexture { 87 using INHERITED = GrTexture;
|
/third_party/skia/tests/ |
H A D | VkWrapTests.cpp | 20 #include "src/gpu/GrTexture.h" 50 sk_sp<GrTexture> tex = gpu->wrapBackendTexture(origBackendTex, kBorrow_GrWrapOwnership, in wrap_tex_test() 60 sk_sp<GrTexture> tex = gpu->wrapBackendTexture( in wrap_tex_test() 73 sk_sp<GrTexture> tex = gpu->wrapBackendTexture( in wrap_tex_test() 85 sk_sp<GrTexture> tex = gpu->wrapBackendTexture( in wrap_tex_test() 154 sk_sp<GrTexture> tex = gpu->wrapRenderableBackendTexture( in wrap_trt_test()
|