Home
last modified time | relevance | path

Searched refs:fTexture (Results 1 – 25 of 30) sorted by relevance

12

/external/skia/src/gpu/gl/debug/
DGrTextureUnitObj.cpp14 if (fTexture) { in setTexture()
15 GrAlwaysAssert(fTexture->getBound(this)); in setTexture()
16 fTexture->resetBound(this); in setTexture()
18 GrAlwaysAssert(!fTexture->getDeleted()); in setTexture()
19 fTexture->unref(); in setTexture()
22 fTexture = texture; in setTexture()
24 if (fTexture) { in setTexture()
25 GrAlwaysAssert(!fTexture->getDeleted()); in setTexture()
26 fTexture->ref(); in setTexture()
28 GrAlwaysAssert(!fTexture->getBound(this)); in setTexture()
[all …]
DGrTextureUnitObj.h25 , fTexture(nullptr) { in GrTextureUnitObj()
34 GrTextureObj *getTexture() { return fTexture; } in getTexture()
39 GrTextureObj *fTexture; variable
DGrDebugGL.cpp42 , fTexture(nullptr) in GrDebugGL()
75 fTexture = nullptr; in ~GrDebugGL()
/external/skia/src/gpu/
DGrTexturePriv.h21 fTexture->fDesc.fFlags = fTexture->fDesc.fFlags | flags; in setFlag()
25 fTexture->fDesc.fFlags = fTexture->fDesc.fFlags & ~flags; in resetFlag()
29 return 0 != (fTexture->fDesc.fFlags & flags); in isSetFlag()
32 void dirtyMipMaps(bool mipMapsDirty) { fTexture->dirtyMipMaps(mipMapsDirty); } in dirtyMipMaps()
35 return GrTexture::kValid_MipMapsStatus != fTexture->fMipMapsStatus; in mipMapsAreDirty()
39 return GrTexture::kNotAllocated_MipMapsStatus != fTexture->fMipMapsStatus; in hasMipMaps()
45 GrTexturePriv(GrTexture* texture) : fTexture(texture) { } in GrTexturePriv()
46 GrTexturePriv(const GrTexturePriv& that) : fTexture(that.fTexture) { } in GrTexturePriv()
53 GrTexture* fTexture; variable
DGrLayerAtlas.cpp54 SkASSERT(!fTexture); in reattachBackingTexture()
56 fTexture.reset(fTexProvider->findAndRefTextureByUniqueKey(get_layer_atlas_key())); in reattachBackingTexture()
57 return SkToBool(fTexture); in reattachBackingTexture()
61 SkASSERT(!fTexture); in createBackingTexture()
69 fTexture.reset(fTexProvider->createTexture(desc, SkBudgeted::kYes, nullptr, 0)); in createBackingTexture()
71 fTexture->resourcePriv().setUniqueKey(get_layer_atlas_key()); in createBackingTexture()
145 if (nullptr == fTexture) { in addToAtlas()
147 if (nullptr == fTexture) { in addToAtlas()
DGrBatchAtlas.cpp123 , fTexture(texture) { in GrPlotUploader()
128 fPlot->uploadToTexture(uploader, fTexture); in upload()
133 GrTexture* fTexture; member in GrPlotUploader
141 : fTexture(texture) in GrBatchAtlas()
173 SkSafeUnref(fTexture); in ~GrBatchAtlas()
191 SkAutoTUnref<GrPlotUploader> uploader(new GrPlotUploader(plot, fTexture)); in updatePlot()
200 SkASSERT(fTexture); in addToAtlas()
207 SkASSERT(GrBytesPerPixel(fTexture->desc().fConfig) == plot->bpp()); in addToAtlas()
222 SkASSERT(GrBytesPerPixel(fTexture->desc().fConfig) == plot->bpp()); in addToAtlas()
251 SkASSERT(GrBytesPerPixel(fTexture->desc().fConfig) == newPlot->bpp()); in addToAtlas()
[all …]
DGrLayerAtlas.h111 return fTexture; in getTextureOrNull()
115 SkASSERT(fTexture); in getTexture()
116 return fTexture; in getTexture()
122 fTexture.reset(nullptr); in detachBackingTexture()
148 SkAutoTUnref<GrTexture> fTexture; variable
DGrLayerCache.h167 , fTexture(nullptr) in GrCachedLayer()
185 SkSafeUnref(fTexture); in ~GrCachedLayer()
205 if (fTexture && !fAtlased) { in setTexture()
206 fTexture->unref(); // non-atlased textures carry a ref in setTexture()
208 fTexture = texture; in setTexture()
211 if (!fTexture) { in setTexture()
215 GrTexture* texture() { return fTexture; } in texture()
263 GrTexture* fTexture; member
DGrTextureAccess.cpp28 fTexture.set(SkRef(texture), kRead_GrIOType); in reset()
36 fTexture.set(SkRef(texture), kRead_GrIOType); in reset()
DGrLayerCache.cpp19 if (fTexture) { in validate()
37 SkASSERT(fTexture && backingTexture == fTexture); in validate()
44 SkASSERT(fTexture); in validate()
/external/skia/src/gpu/effects/
DGrTextureStripAtlas.cpp76 , fTexture(nullptr) in GrTextureStripAtlas()
92 if (!fTexture) { in lockRow()
159 fTexture->writePixels(0, rowNumber * fDesc.fRowHeight, in lockRow()
204 fTexture = fDesc.fContext->textureProvider()->findAndRefTextureByUniqueKey(key); in lockTexture()
205 if (nullptr == fTexture) { in lockTexture()
206 fTexture = fDesc.fContext->textureProvider()->createTexture(texDesc, SkBudgeted::kYes, in lockTexture()
208 if (!fTexture) { in lockTexture()
211 fDesc.fContext->textureProvider()->assignUniqueKeyToTexture(key, fTexture); in lockTexture()
216 SkASSERT(fTexture); in lockTexture()
220 SkASSERT(fTexture && 0 == fLockedRows); in unlockTexture()
[all …]
DGrTextureStripAtlas.h74 GrTexture* getTexture() const { return fTexture; } in getTexture()
171 GrTexture* fTexture; variable
/external/skia/src/core/
DSkSpecialImage.cpp248 , fTexture(SkRef(tex)) in SkSpecialImage_Gpu()
255 return GrPixelConfigIsOpaque(fTexture->config()) || fAlphaType == kOpaque_SkAlphaType; in isOpaque()
258 size_t getSize() const override { return fTexture->gpuMemorySize(); } in getSize()
266 GrWrapTextureInBitmap(fTexture, in onDraw()
267 fTexture->width(), fTexture->height(), this->isOpaque(), &bm); in onDraw()
273 GrTexture* onPeekTexture() const override { return fTexture; } in onPeekTexture()
276 const SkImageInfo info = GrMakeInfoFromTexture(fTexture, in getBitmap()
283 result->setPixelRef(new SkGrPixelRef(info, fTexture))->unref(); in getBitmap()
291 return SkSpecialSurface::NewRenderTarget(this->proxy(), fTexture->getContext(), desc); in onNewSurface()
295 SkAutoTUnref<GrTexture> fTexture; member in SkSpecialImage_Gpu
DSkSpecialSurface.cpp125 , fTexture(SkRef(texture)) { in SkSpecialSurface_Gpu()
127 SkASSERT(fTexture->asRenderTarget()); in SkSpecialSurface_Gpu()
129 SkAutoTUnref<SkGpuDevice> device(SkGpuDevice::Create(fTexture->asRenderTarget(), props, in SkSpecialSurface_Gpu()
142 kNeedNewImageUniqueID_SpecialImage, fTexture); in onNewImageSnapshot()
146 SkAutoTUnref<GrTexture> fTexture; member in SkSpecialSurface_Gpu
/external/skia/src/utils/
DSkImageGeneratorUtils.cpp55 : SkImageGenerator(info), fCtx(ctx), fTexture(tex) in GeneratorFromTexture()
65 return SkRef(fTexture.get()); in onGenerateTexture()
68 GrSurfaceDesc desc = fTexture->desc(); in onGenerateTexture()
73 fCtx->copySurface(dst, fTexture, *subset, SkIPoint::Make(0, 0)); in onGenerateTexture()
78 SkAutoTUnref<GrTexture> fTexture; member in GeneratorFromTexture
/external/skia/include/gpu/
DGrXferProcessor.h68 : fTexture(SkSafeRef(texture)) in DstTexture()
73 fTexture.reset(SkSafeRef(other.fTexture.get()));
83 GrTexture* texture() const { return fTexture.get(); } in texture()
86 fTexture.reset(SkSafeRef(texture)); in setTexture()
91 SkAutoTUnref<GrTexture> fTexture;
DGrTextureAccess.h45 GrTexture* getTexture() const { return fTexture.get(); } in getTexture()
50 const GrGpuResourceRef* getProgramTexture() const { return &fTexture; } in getProgramTexture()
58 ProgramTexture fTexture; variable
/external/skia/gm/
Dsamplerstress.cpp52 fTexture.allocN32Pixels(xSize, ySize); in createTexture()
53 SkPMColor* addr = fTexture.getAddr32(0, 0); in createTexture()
78 fShader.reset(SkShader::CreateBitmapShader(fTexture, in createShader()
143 SkBitmap fTexture; member in skiagm::SamplerStressGM
Dtilemodes.cpp53 SkBitmap fTexture[SK_ARRAY_COUNT(gColorTypes)]; member in TilingGM
75 makebm(&fTexture[i], gColorTypes[i], size, size); in onOnceBeforeDraw()
123 makebm(&fTexture[i], gColorTypes[i], size, size); in onDraw()
126 setup(&paint, fTexture[i], gFilters[j], gModes[kx], gModes[ky]); in onDraw()
Dtilemodes_scaled.cpp53 SkBitmap fTexture[SK_ARRAY_COUNT(gColorTypes)]; member in ScaledTilingGM
74 makebm(&fTexture[i], gColorTypes[i], size, size); in onOnceBeforeDraw()
126 makebm(&fTexture[i], gColorTypes[i], size, size); in onDraw()
129 setup(&paint, fTexture[i], gFilterQualitys[j], gModes[kx], gModes[ky]); in onDraw()
Dimage_pict.cpp220 fTexture.reset(SkRef(image->getTexture())); in TextureGenerator()
229 return SkRef(fTexture.get()); in onGenerateTexture()
232 GrSurfaceDesc desc = fTexture->desc(); in onGenerateTexture()
237 fCtx->copySurface(dst, fTexture, *subset, SkIPoint::Make(0, 0)); in onGenerateTexture()
242 SkAutoTUnref<GrTexture> fTexture; member in TextureGenerator
/external/skia/src/image/
DSkImage_Gpu.h42 GrTexture* peekTexture() const override { return fTexture; } in peekTexture()
48 return SkSurface::NewRenderTarget(fTexture->getContext(), SkBudgeted::kNo, info); in onNewSurface()
54 SkAutoTUnref<GrTexture> fTexture;
DSkImage_Gpu.cpp25 , fTexture(SkRef(tex)) in SkImage_Gpu()
61 if (!fTexture->readPixels(0, 0, dst->width(), dst->height(), kSkia8888_GrPixelConfig, in getROPixels()
76 bitmap->setPixelRef(new SkGrPixelRef(bitmap->info(), fTexture))->unref(); in asBitmapForImageFilters()
86 return GrPixelConfigIsOpaque(fTexture->config()) || fAlphaType == kOpaque_SkAlphaType; in isOpaque()
119 if (!fTexture->readPixels(srcX, srcY, info.width(), info.height(), config, in onReadPixels()
138 GrContext* ctx = fTexture->getContext(); in onNewSubset()
139 GrSurfaceDesc desc = fTexture->desc(); in onNewSubset()
147 ctx->copySurface(subTx, fTexture, subset, SkIPoint::Make(0, 0)); in onNewSubset()
/external/skia/samplecode/
DSampleTiling.cpp66 makebm(&fTexture[i], gColorTypes[i], gWidth, gHeight); in TilingView()
73 SkBitmap fTexture[SK_ARRAY_COUNT(gColorTypes)]; member in TilingView
131 setup(&paint, fTexture[i], gFilters[j], gModes[kx], gModes[ky]); in onDrawContent()
/external/skia/bench/
DGLVertexAttributesBench.cpp28 : fTexture(0) in GLVertexAttributesBench()
53 GrGLuint fTexture; member in GLVertexAttributesBench
159 fTexture = SetupFramebuffer(gl, kScreenWidth, kScreenHeight); in setup()
254 GR_GL_CALL(gl, DeleteTextures(1, &fTexture)); in teardown()

12