/external/skia/src/gpu/gl/debug/ |
D | GrTextureUnitObj.cpp | 14 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 …]
|
D | GrTextureUnitObj.h | 25 , fTexture(nullptr) { in GrTextureUnitObj() 34 GrTextureObj *getTexture() { return fTexture; } in getTexture() 39 GrTextureObj *fTexture; variable
|
D | GrDebugGL.cpp | 42 , fTexture(nullptr) in GrDebugGL() 75 fTexture = nullptr; in ~GrDebugGL()
|
/external/skia/src/gpu/ |
D | GrTexturePriv.h | 21 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
|
D | GrLayerAtlas.cpp | 54 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()
|
D | GrBatchAtlas.cpp | 123 , 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 …]
|
D | GrLayerAtlas.h | 111 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
|
D | GrLayerCache.h | 167 , 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
|
D | GrTextureAccess.cpp | 28 fTexture.set(SkRef(texture), kRead_GrIOType); in reset() 36 fTexture.set(SkRef(texture), kRead_GrIOType); in reset()
|
D | GrLayerCache.cpp | 19 if (fTexture) { in validate() 37 SkASSERT(fTexture && backingTexture == fTexture); in validate() 44 SkASSERT(fTexture); in validate()
|
/external/skia/src/gpu/effects/ |
D | GrTextureStripAtlas.cpp | 76 , 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 …]
|
D | GrTextureStripAtlas.h | 74 GrTexture* getTexture() const { return fTexture; } in getTexture() 171 GrTexture* fTexture; variable
|
/external/skia/src/core/ |
D | SkSpecialImage.cpp | 248 , 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
|
D | SkSpecialSurface.cpp | 125 , 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/ |
D | SkImageGeneratorUtils.cpp | 55 : 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/ |
D | GrXferProcessor.h | 68 : 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;
|
D | GrTextureAccess.h | 45 GrTexture* getTexture() const { return fTexture.get(); } in getTexture() 50 const GrGpuResourceRef* getProgramTexture() const { return &fTexture; } in getProgramTexture() 58 ProgramTexture fTexture; variable
|
/external/skia/gm/ |
D | samplerstress.cpp | 52 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
|
D | tilemodes.cpp | 53 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()
|
D | tilemodes_scaled.cpp | 53 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()
|
D | image_pict.cpp | 220 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/ |
D | SkImage_Gpu.h | 42 GrTexture* peekTexture() const override { return fTexture; } in peekTexture() 48 return SkSurface::NewRenderTarget(fTexture->getContext(), SkBudgeted::kNo, info); in onNewSurface() 54 SkAutoTUnref<GrTexture> fTexture;
|
D | SkImage_Gpu.cpp | 25 , 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/ |
D | SampleTiling.cpp | 66 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/ |
D | GLVertexAttributesBench.cpp | 28 : 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()
|