Home
last modified time | relevance | path

Searched refs:fDesc (Results 1 – 24 of 24) sorted by relevance

/external/skia/src/gpu/gl/
DGrGLBufferImpl.cpp24 : fDesc(desc) in GrGLBufferImpl()
33 fGLSizeInBytes = fDesc.fSizeInBytes; in GrGLBufferImpl()
44 } else if (fDesc.fID) { in release()
45 GL_CALL(gpu, DeleteBuffers(1, &fDesc.fID)); in release()
47 gpu->notifyVertexBufferDelete(fDesc.fID); in release()
50 gpu->notifyIndexBufferDelete(fDesc.fID); in release()
52 fDesc.fID = 0; in release()
60 fDesc.fID = 0; in abandon()
71 gpu->bindVertexBuffer(fDesc.fID); in bind()
74 gpu->bindIndexBufferAndDefaultVertexArray(fDesc.fID); in bind()
[all …]
DGrGLRenderTarget.cpp42 int colorValuesPerPixel = SkTMax(1, fDesc.fSampleCnt); in init()
50 SkASSERT(kUnknown_GrPixelConfig != fDesc.fConfig); in init()
51 SkASSERT(!GrPixelConfigIsCompressed(fDesc.fConfig)); in init()
52 size_t colorBytes = GrBytesPerPixel(fDesc.fConfig); in init()
54 fGpuMemorySize = colorValuesPerPixel * fDesc.fWidth * fDesc.fHeight * colorBytes; in init()
DGrGLBufferImpl.h31 SkASSERT(0 == fDesc.fID); in ~GrGLBufferImpl()
37 GrGLuint bufferID() const { return fDesc.fID; } in bufferID()
50 Desc fDesc; variable
DGrGLGpuProgramCache.cpp100 uint32_t hashIdx = args.fDesc->getChecksum(); in getProgram()
107 if (hashedEntry && hashedEntry->fProgram->getDesc() == *args.fDesc) { in getProgram()
114 entryIdx = this->search(*args.fDesc); in getProgram()
DGrGLProgram.h49 const GrProgramDesc& getDesc() { return fDesc; } in getDesc()
150 GrProgramDesc fDesc; variable
DGrGLProgram.cpp45 , fDesc(desc) in GrGLProgram()
/external/skia/src/gpu/
DGrTexture.cpp36 if (GrPixelConfigIsCompressed(fDesc.fConfig)) { in onGpuMemorySize()
37 textureSize = GrCompressedFormatDataSize(fDesc.fConfig, fDesc.fWidth, fDesc.fHeight); in onGpuMemorySize()
39 textureSize = (size_t) fDesc.fWidth * fDesc.fHeight * GrBytesPerPixel(fDesc.fConfig); in onGpuMemorySize()
53 SkASSERT(0 != (fDesc.fFlags & kRenderTarget_GrSurfaceFlag)); in validateDesc()
54 SkASSERT(fDesc.fSampleCnt == this->asRenderTarget()->numSamples()); in validateDesc()
56 SkASSERT(0 == (fDesc.fFlags & kRenderTarget_GrSurfaceFlag)); in validateDesc()
57 SkASSERT(0 == fDesc.fSampleCnt); in validateDesc()
90 fShiftFixedX = 31 - SkCLZ(fDesc.fWidth); in GrTexture()
91 fShiftFixedY = 31 - SkCLZ(fDesc.fHeight); in GrTexture()
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()
46 SkASSERT(SkIsPow2(fTexture->fDesc.fWidth)); in normalizeFixedX()
51 SkASSERT(SkIsPow2(fTexture->fDesc.fHeight)); in normalizeFixedY()
DGrFontScaler.cpp21 fDesc = GrTCast<SkDescriptor*>(fStorage); in GrFontDescKey()
23 fDesc = SkDescriptor::Alloc(size); in GrFontDescKey()
25 memcpy(fDesc, &desc, size); in GrFontDescKey()
29 if (fDesc != GrTCast<SkDescriptor*>(fStorage)) { in ~GrFontDescKey()
30 SkDescriptor::Free(fDesc); in ~GrFontDescKey()
35 const SkDescriptor* srcDesc = (&rh)->fDesc; in lt()
36 size_t lenLH = fDesc->getLength(); in lt()
38 int cmp = memcmp(fDesc, srcDesc, SkTMin<size_t>(lenLH, lenRH)); in lt()
47 const SkDescriptor* srcDesc = (&rh)->fDesc; in eq()
48 return fDesc->equals(*srcDesc); in eq()
DGrPathRendering.cpp18 : fDesc(desc.copy()), in GlyphGenerator()
19 fScalerContext(typeface.createScalerContext(fDesc)) { in GlyphGenerator()
24 SkDescriptor::Free(fDesc); in ~GlyphGenerator()
41 return fDesc->equals(desc); in isEqualTo()
45 SkDescriptor* const fDesc; member in GlyphGenerator
DGrTargetCommands.cpp70 gpu->buildProgramDesc(&fState->fDesc, *fState->fPrimitiveProcessor, *fState->getPipeline(), in execute()
75 &fState->fDesc, &fState->fBatchTracker); in execute()
81 gpu->buildProgramDesc(&fState->fDesc, *fState->fPrimitiveProcessor, *fState->getPipeline(), in execute()
86 &fState->fDesc, &fState->fBatchTracker); in execute()
DGrFontScaler.h45 SkDescriptor* fDesc; variable
DGrGpu.h289 , fDesc(desc) in DrawArgs()
295 const GrProgramDesc* fDesc; member
DGrPipeline.h142 GrProgramDesc fDesc; variable
DGrTargetCommands.h111 GrProgramDesc fDesc; member
/external/skia/include/gpu/
DGrSurface.h28 int width() const { return fDesc.fWidth; } in width()
33 int height() const { return fDesc.fHeight; } in height()
42 …SkASSERT(kTopLeft_GrSurfaceOrigin == fDesc.fOrigin || kBottomLeft_GrSurfaceOrigin == fDesc.fOrigin… in origin()
43 return fDesc.fOrigin; in origin()
52 GrPixelConfig config() const { return fDesc.fConfig; } in config()
57 const GrSurfaceDesc& desc() const { return fDesc; } in desc()
143 , fDesc(desc) { in GrSurface()
146 GrSurfaceDesc fDesc; variable
DGrRenderTarget.h36 bool isMultisampled() const { return 0 != fDesc.fSampleCnt; } in isMultisampled()
41 int numSamples() const { return fDesc.fSampleCnt; } in numSamples()
/external/skia/src/core/
DSkDescriptor.h137 SkAutoDescriptor() : fDesc(NULL) {} in SkAutoDescriptor()
138 SkAutoDescriptor(size_t size) : fDesc(NULL) { this->reset(size); } in SkAutoDescriptor()
145 fDesc = (SkDescriptor*)(void*)fStorage; in reset()
147 fDesc = SkDescriptor::Alloc(size); in reset()
151 SkDescriptor* getDesc() const { SkASSERT(fDesc); return fDesc; } in getDesc()
154 if (fDesc != (SkDescriptor*)(void*)fStorage) { in free()
155 SkDescriptor::Free(fDesc); in free()
165 SkDescriptor* fDesc; variable
DSkGlyphCache.h97 const SkDescriptor& getDescriptor() const { return *fDesc; } in getDescriptor()
203 SkDescriptor* fDesc; variable
DSkGlyphCache.cpp67 fDesc = desc->copy(); in SkGlyphCache()
122 SkDescriptor::Free(fDesc); in ~SkGlyphCache()
477 if (cache->fDesc->equals(*desc)) { in VisitCache()
/external/skia/src/gpu/effects/
DGrTextureStripAtlas.cpp75 , fDesc(desc) in GrTextureStripAtlas()
81 SkASSERT(fNumRows * fDesc.fRowHeight == fDesc.fHeight); in GrTextureStripAtlas()
83 fNormalizedYHeight = SK_Scalar1 / fDesc.fHeight; in GrTextureStripAtlas()
127 fDesc.fContext->flush(); in lockRow()
162 fTexture->writePixels(0, rowNumber * fDesc.fRowHeight, in lockRow()
163 fDesc.fWidth, fDesc.fRowHeight, in lockRow()
197 texDesc.fWidth = fDesc.fWidth; in lockTexture()
198 texDesc.fHeight = fDesc.fHeight; in lockTexture()
199 texDesc.fConfig = fDesc.fConfig; in lockTexture()
207 fTexture = fDesc.fContext->textureProvider()->findAndRefTextureByUniqueKey(key); in lockTexture()
[all …]
DGrTextureStripAtlas.h70 GrContext* getContext() const { return fDesc.fContext; } in getContext()
167 const Desc fDesc; variable
/external/skia/src/gpu/gl/builders/
DGrGLProgramBuilder.h282 const GrProgramDesc& desc() const { return *fArgs.fDesc; } in desc()
284 const GrProgramDesc::KeyHeader& header() const { return fArgs.fDesc->header(); } in header()
DGrGLProgramBuilder.cpp94 , fFS(this, args.fDesc->header().fFragPosKey) in GrGLProgramBuilder()