Home
last modified time | relevance | path

Searched refs:SkBudgeted (Results 1 – 25 of 89) sorted by relevance

1234

/external/skia/include/core/
DSkSurface.h33 static const SkBudgeted kYes_Budgeted = SkBudgeted::kYes;
34 static const SkBudgeted kNo_Budgeted = SkBudgeted::kNo;
35 using Budgeted = SkBudgeted;
130 GrContext*, SkBudgeted, const SkImageInfo&, int sampleCount,
133 static SkSurface* NewRenderTarget(GrContext* gr, SkBudgeted b, const SkImageInfo& info) { in NewRenderTarget()
239 SkImage* newImageSnapshot(SkBudgeted = SkBudgeted::kYes);
251 SkImage* newImageSnapshot(SkBudgeted, ForceUnique);
/external/skia/src/image/
DSkImage_Gpu.h25 SkImage_Gpu(int w, int h, uint32_t uniqueID, SkAlphaType, GrTexture*, SkBudgeted);
31 if (SkBudgeted::kYes == fBudgeted) { in applyBudgetDecision()
48 return SkSurface::NewRenderTarget(fTexture->getContext(), SkBudgeted::kNo, info); in onNewSurface()
56 const SkBudgeted fBudgeted;
DSkImage_Gpu.cpp23 SkBudgeted budgeted) in SkImage_Gpu()
169 const SkBudgeted budgeted = SkBudgeted::kNo; in new_wrapped_texture_common()
195 SkAutoTUnref<GrTexture> dst(GrDeepCopyTexture(src, SkBudgeted::kYes)); in NewFromTextureCopy()
201 SkBudgeted::kYes); in NewFromTextureCopy()
208 const SkBudgeted budgeted = SkBudgeted::kYes; in NewFromYUVTexturesCopy()
259 SkAutoTUnref<GrTexture> dst(ctx->textureProvider()->createTexture(dstDesc, SkBudgeted::kYes)); in NewFromYUVTexturesCopy()
288 SkBudgeted::kNo); in create_image_from_maker()
315 GrTexture* GrDeepCopyTexture(GrTexture* src, SkBudgeted budgeted) { in GrDeepCopyTexture()
DSkSurface_Gpu.cpp75 static const SkBudgeted kBudgeted = SkBudgeted::kNo; in onNewSurface()
80 SkImage* SkSurface_Gpu::onNewImageSnapshot(SkBudgeted budgeted, ForceCopyMode forceCopyMode) { in onNewImageSnapshot()
115 SkAutoTUnref<SkImage> image(this->refCachedImage(SkBudgeted::kNo, kNo_ForceUnique)); in onCopyOnWrite()
144 SkSurface* SkSurface::NewRenderTarget(GrContext* ctx, SkBudgeted budgeted, const SkImageInfo& info, in NewRenderTarget()
DSkSurface_Base.h46 virtual SkImage* onNewImageSnapshot(SkBudgeted, ForceCopyMode) = 0;
84 inline SkImage* refCachedImage(SkBudgeted, ForceUnique);
117 SkImage* SkSurface_Base::refCachedImage(SkBudgeted budgeted, ForceUnique unique) { in refCachedImage()
DSkSurface.cpp82 SkImage* image = this->newImageSnapshot(SkBudgeted::kYes); in onDraw()
166 SkImage* SkSurface::newImageSnapshot(SkBudgeted budgeted) { in newImageSnapshot()
171 SkImage* SkSurface::newImageSnapshot(SkBudgeted budgeted, ForceUnique unique) { in newImageSnapshot()
214 SkSurface* SkSurface::NewRenderTarget(GrContext*, SkBudgeted, const SkImageInfo&, int, in NewRenderTarget() argument
DSkSurface_Raster.cpp27 SkImage* onNewImageSnapshot(SkBudgeted, ForceCopyMode) override;
121 SkImage* SkSurface_Raster::onNewImageSnapshot(SkBudgeted, ForceCopyMode forceCopyMode) { in onNewImageSnapshot() argument
146 SkAutoTUnref<SkImage> cached(this->refCachedImage(SkBudgeted::kNo, kNo_ForceUnique)); in onCopyOnWrite()
DSkImagePriv.h59 GrTexture* GrDeepCopyTexture(GrTexture* src, SkBudgeted);
DSkSurface_Gpu.h26 SkImage* onNewImageSnapshot(SkBudgeted, ForceCopyMode) override;
/external/skia/include/gpu/
DGrTextureProvider.h32 GrTexture* createTexture(const GrSurfaceDesc& desc, SkBudgeted budgeted, const void* srcData,
36 GrTexture* createTexture(const GrSurfaceDesc& desc, SkBudgeted budgeted) { in createTexture()
76 return this->createTexture(desc, SkBudgeted::kYes); in refScratchTexture()
/external/skia/tests/
DImageNewShaderTest.cpp119 SkSurface::NewRenderTarget(context, SkBudgeted::kNo, info)); in gpuToGpu()
121 SkSurface::NewRenderTarget(context, SkBudgeted::kNo, info)); in gpuToGpu()
130 SkBudgeted::kNo, info)); in gpuToRaster()
141 SkBudgeted::kNo, info)); in rasterToGpu()
DGrTextureMipMapInvalidationTest.cpp30 desc, SkBudgeted::kNo, nullptr, 0); in DEF_GPUTEST_FOR_NULL_CONTEXT()
32 desc, SkBudgeted::kNo, nullptr, 0); in DEF_GPUTEST_FOR_NULL_CONTEXT()
DImageIsOpaqueTest.cpp71 SkSurface::NewRenderTarget(context, SkBudgeted::kNo, infoTransparent)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
76 SkSurface::NewRenderTarget(context,SkBudgeted::kNo, infoOpaque)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
DGrSurfaceTest.cpp29 desc, SkBudgeted::kNo, nullptr, 0); in DEF_GPUTEST_FOR_NULL_CONTEXT()
41 GrSurface* tex1 = context->textureProvider()->createTexture(desc, SkBudgeted::kNo, nullptr, 0); in DEF_GPUTEST_FOR_NULL_CONTEXT()
DSurfaceTest.cpp57 return SkSurface::NewRenderTarget(context, SkBudgeted::kNo, info, 0, nullptr); in create_gpu_surface()
66 return SkSurface::NewRenderTarget(context, SkBudgeted::kYes, info, 0, nullptr); in create_gpu_scratch_surface()
80 SkSurface::NewRenderTarget(context, SkBudgeted::kNo, info, 0, nullptr)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
343 static const SkBudgeted kB = SkBudgeted::kNo; in test_unique_image_snap()
702 static SkBudgeted is_budgeted(SkSurface* surf) { in is_budgeted()
706 static SkBudgeted is_budgeted(SkImage* image) { in is_budgeted()
712 for (auto sbudgeted : { SkBudgeted::kNo, SkBudgeted::kYes }) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
713 for (auto ibudgeted : { SkBudgeted::kNo, SkBudgeted::kYes }) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
DGLProgramsTest.cpp173 texture = textureProvider->createTexture(texDesc, SkBudgeted::kYes); in random_render_target()
313 context->textureProvider()->createTexture(dummyDesc, SkBudgeted::kNo, nullptr, 0)); in ProgramUnitTest()
319 context->textureProvider()->createTexture(dummyDesc, SkBudgeted::kNo, nullptr, 0)); in ProgramUnitTest()
376 context->textureProvider()->createTexture(rtDesc, SkBudgeted::kNo)->asRenderTarget()); in ProgramUnitTest()
DTextureStorageAllocator.cpp70 context, SkBudgeted::kNo, SkImageInfo::MakeN32Premul(kWidth, kHeight), 0, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
104 context, SkBudgeted::kNo, SkImageInfo::MakeN32Premul(kWidth, kHeight), 0, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
DCopySurfaceTest.cpp71 context->textureProvider()->createTexture(srcDesc, SkBudgeted::kNo, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
75 context->textureProvider()->createTexture(dstDesc, SkBudgeted::kNo, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
DVkUploadPixelsTests.cpp86 GrTexture* tex0 = gpu->createTexture(surfDesc, SkBudgeted::kNo, srcBuffer, 0); in basic_texture_test()
111 GrTexture* tex1 = gpu->createTexture(surfDesc, SkBudgeted::kNo, srcBuffer, 0); in basic_texture_test()
DResourceCacheTest.cpp41 SkBudgeted::kNo, info)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
94 SkAutoTUnref<GrTexture> smallRT0(cache->createTexture(smallDesc, SkBudgeted::kYes)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
99 SkAutoTUnref<GrTexture> smallRT1(cache->createTexture(smallDesc, SkBudgeted::kYes)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
111 SkAutoTUnref<GrTexture> smallRT2(cache->createTexture(smallDesc, SkBudgeted::kNo)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
128 SkAutoTUnref<GrTexture> bigRT(cache->createTexture(bigDesc, SkBudgeted::kNo)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
142 SkAutoTUnref<GrTexture> smallMSAART0(cache->createTexture(smallMSAADesc, SkBudgeted::kNo)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
158 SkAutoTUnref<GrTexture> smallMSAART1(cache->createTexture(smallMSAADesc, SkBudgeted::kNo)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
174 smallMSAART1.reset(cache->createTexture(smallMSAADesc, SkBudgeted::kNo)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
176 cache->createTexture(smallMSAADesc, SkBudgeted::kNo)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
573 REPORTER_ASSERT(reporter, SkBudgeted::kNo == resource->resourcePriv().isBudgeted()); in test_unbudgeted_to_scratch()
[all …]
/external/skia/src/gpu/
DGrGpuResourcePriv.h47 SkBudgeted isBudgeted() const { in isBudgeted()
50 return SkBudgeted(ret); in isBudgeted()
DGrTextureProvider.cpp32 GrTexture* GrTextureProvider::createTexture(const GrSurfaceDesc& desc, SkBudgeted budgeted, in createTexture()
49 if (SkBudgeted::kNo == budgeted) { in createTexture()
120 return fGpu->createTexture(*desc, SkBudgeted::kYes, nullptr, 0); in refScratchTexture()
DGrResourceCache.cpp139 if (SkBudgeted::kYes == resource->resourcePriv().isBudgeted()) { in insertResource()
170 if (SkBudgeted::kYes == resource->resourcePriv().isBudgeted()) { in removeResource()
378 if (SkBudgeted::kNo == resource->resourcePriv().isBudgeted()) { in notifyCntReachedZero()
417 if (SkBudgeted::kYes == resource->resourcePriv().isBudgeted()) { in didChangeGpuMemorySize()
436 if (SkBudgeted::kYes == resource->resourcePriv().isBudgeted()) { in didChangeBudgetStatus()
667 SkASSERT(SkBudgeted::kNo == resource->resourcePriv().isBudgeted() || in validate()
678 SkASSERT(SkBudgeted::kYes == resource->resourcePriv().isBudgeted()); in validate()
681 if (SkBudgeted::kYes == resource->resourcePriv().isBudgeted()) { in validate()
DGrYUVProvider.cpp101 yuvTextures[i].reset(ctx->textureProvider()->createTexture(yuvDesc, SkBudgeted::kYes)); in refAsTexture()
115 SkAutoTUnref<GrTexture> result(ctx->textureProvider()->createTexture(rtDesc, SkBudgeted::kYes, in refAsTexture()
/external/skia/src/gpu/effects/
DGrConfigConversionEffect.cpp180 desc, SkBudgeted::kYes, nullptr, 0)); in TestForPreservingPMConversions()
185 desc, SkBudgeted::kYes, nullptr, 0)); in TestForPreservingPMConversions()
191 desc, SkBudgeted::kYes, data, 0)); in TestForPreservingPMConversions()

1234