Home
last modified time | relevance | path

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

/external/skia/src/gpu/gl/
DGrGLBufferImpl.cpp20 : fDesc(desc) in GrGLBufferImpl()
33 fGLSizeInBytes = fDesc.fSizeInBytes; in GrGLBufferImpl()
44 } else if (fDesc.fID) { in release()
45 gpu->releaseBuffer(fDesc.fID, fBufferType); in release()
46 fDesc.fID = 0; in release()
54 fDesc.fID = 0; in abandon()
65 if (0 == fDesc.fID) { in map()
68 fMapPtr = gpu->mapBuffer(fDesc.fID, fBufferType, fDesc.fUsage, fGLSizeInBytes, in map()
69 fDesc.fSizeInBytes); in map()
70 fGLSizeInBytes = fDesc.fSizeInBytes; in map()
[all …]
DGrGLRenderTarget.cpp180 SkASSERT(kUnknown_GrPixelConfig != fDesc.fConfig); in totalBytesPerSample()
181 SkASSERT(!GrPixelConfigIsCompressed(fDesc.fConfig)); in totalBytesPerSample()
182 size_t colorBytes = GrBytesPerPixel(fDesc.fConfig); in totalBytesPerSample()
185 return fDesc.fWidth * fDesc.fHeight * colorBytes; in totalBytesPerSample()
192 return SkTMax(1, fDesc.fSampleCnt); in msaaSamples()
DGrGLBufferImpl.h41 SkASSERT(0 == fDesc.fID); in ~GrGLBufferImpl()
47 GrGLuint bufferID() const { return fDesc.fID; } in bufferID()
59 Desc fDesc; variable
DGrGLProgram.h48 const GrProgramDesc& getDesc() { return fDesc; } in getDesc()
136 GrProgramDesc fDesc; variable
DGrGLGpuProgramCache.cpp118 uint32_t hashIdx = args.fDesc->getChecksum(); in refProgram()
125 if (hashedEntry && hashedEntry->fProgram->getDesc() == *args.fDesc) { in refProgram()
132 entryIdx = this->search(*args.fDesc); in refProgram()
DGrGLProgram.cpp43 , 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()
48 SkASSERT(!SkToBool(fDesc.fFlags & kRenderTarget_GrSurfaceFlag)); in onGpuMemorySize()
49 SkASSERT(textureSize <= WorseCaseSize(fDesc)); in onGpuMemorySize()
57 SkASSERT(0 != (fDesc.fFlags & kRenderTarget_GrSurfaceFlag)); in validateDesc()
58 SkASSERT(fDesc.fSampleCnt == this->asRenderTarget()->numColorSamples()); in validateDesc()
60 SkASSERT(0 == (fDesc.fFlags & kRenderTarget_GrSurfaceFlag)); in validateDesc()
61 SkASSERT(0 == fDesc.fSampleCnt); in validateDesc()
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()
DGrPathRendering.cpp20 , fDesc(desc.copy()) in GlyphGenerator()
26 SkDescriptor::Free(fDesc); in ~GlyphGenerator()
43 return fDesc->equals(desc); in isEqualTo()
49 SkDescriptor* const fDesc; member in GlyphGenerator
DGrGpu.h347 , fDesc(desc) { in DrawArgs()
352 const GrProgramDesc* fDesc; member
/external/skia/include/gpu/
DGrSurface.h26 int width() const { return fDesc.fWidth; } in width()
31 int height() const { return fDesc.fHeight; } in height()
40 …SkASSERT(kTopLeft_GrSurfaceOrigin == fDesc.fOrigin || kBottomLeft_GrSurfaceOrigin == fDesc.fOrigin… in origin()
41 return fDesc.fOrigin; in origin()
50 GrPixelConfig config() const { return fDesc.fConfig; } in config()
55 const GrSurfaceDesc& desc() const { return fDesc; } in desc()
151 , fDesc(desc) in GrSurface()
161 GrSurfaceDesc fDesc; variable
DGrRenderTarget.h55 return 0 != fDesc.fSampleCnt; in isUnifiedMultisampled()
63 return 0 != fDesc.fSampleCnt; in isStencilBufferMultisampled()
72 return fDesc.fSampleCnt; in numColorSamples()
81 return fDesc.fSampleCnt; in numStencilSamples()
/external/skia/src/core/
DSkDescriptor.h137 SkAutoDescriptor() : fDesc(nullptr) {} in SkAutoDescriptor()
138 SkAutoDescriptor(size_t size) : fDesc(nullptr) { this->reset(size); } in SkAutoDescriptor()
139 SkAutoDescriptor(const SkDescriptor& desc) : fDesc(nullptr) { in SkAutoDescriptor()
142 memcpy(fDesc, &desc, size); in SkAutoDescriptor()
150 fDesc = (SkDescriptor*)(void*)fStorage; in reset()
152 fDesc = SkDescriptor::Alloc(size); in reset()
156 SkDescriptor* getDesc() const { SkASSERT(fDesc); return fDesc; } in getDesc()
159 if (fDesc != (SkDescriptor*)(void*)fStorage) { in free()
160 SkDescriptor::Free(fDesc); in free()
170 SkDescriptor* fDesc; variable
DSkGlyphCache.h97 const SkDescriptor& getDescriptor() const { return *fDesc; } in getDescriptor()
258 SkDescriptor* const fDesc; variable
DSkGlyphCache.cpp39 : fDesc(desc->copy()) in SkGlyphCache()
60 SkDescriptor::Free(fDesc); in ~SkGlyphCache()
528 if (cache->fDesc->equals(*desc)) { in VisitCache()
/external/skia/src/gpu/effects/
DGrTextureStripAtlas.cpp44 GetCache()->remove(entry->fDesc); in CleanUp()
61 entry->fDesc = desc; in GetAtlas()
74 , fDesc(desc) in GrTextureStripAtlas()
80 SkASSERT(fNumRows * fDesc.fRowHeight == fDesc.fHeight); in GrTextureStripAtlas()
82 fNormalizedYHeight = SK_Scalar1 / fDesc.fHeight; in GrTextureStripAtlas()
124 fDesc.fContext->flush(); in lockRow()
159 fTexture->writePixels(0, rowNumber * fDesc.fRowHeight, in lockRow()
160 fDesc.fWidth, fDesc.fRowHeight, in lockRow()
194 texDesc.fWidth = fDesc.fWidth; in lockTexture()
195 texDesc.fHeight = fDesc.fHeight; in lockTexture()
[all …]
DGrTextureStripAtlas.h73 GrContext* getContext() const { return fDesc.fContext; } in getContext()
144 static const Desc& GetKey(const AtlasEntry& entry) { return entry.fDesc; } in GetKey()
150 Desc fDesc; variable
169 const Desc fDesc; variable
/external/skia/src/gpu/vk/
DGrVkBuffer.cpp96 fDesc.fSizeInBytes, // size in addMemoryBarrier()
154 if (srcSizeInBytes > fDesc.fSizeInBytes) { in vkUpdateData()
173 SkASSERT(!fResource || kVertex_Type == fDesc.fType || kIndex_Type == fDesc.fType in validate()
174 || kCopyRead_Type == fDesc.fType || kCopyWrite_Type == fDesc.fType in validate()
175 || kUniform_Type == fDesc.fType); in validate()
DGrVkRenderTarget.h111 SkASSERT(kUnknown_GrPixelConfig != fDesc.fConfig); in onGpuMemorySize()
112 SkASSERT(!GrPixelConfigIsCompressed(fDesc.fConfig)); in onGpuMemorySize()
113 size_t colorBytes = GrBytesPerPixel(fDesc.fConfig); in onGpuMemorySize()
115 return fColorValuesPerPixel * fDesc.fWidth * fDesc.fHeight * colorBytes; in onGpuMemorySize()
DGrVkBuffer.h30 size_t size() const { return fDesc.fSizeInBytes; } in size()
71 : fDesc(desc), fResource(resource), fMapPtr(nullptr) { in GrVkBuffer()
85 Desc fDesc; variable
/external/skia/src/gpu/text/
DGrFontScaler.h25 explicit GrFontDescKey(const SkDescriptor& desc) : fDesc(desc), fHash(desc.getChecksum()) {} in GrFontDescKey()
30 return fHash == rh.fHash && fDesc.getDesc()->equals(*rh.fDesc.getDesc());
34 SkAutoDescriptor fDesc;
/external/skia/src/gpu/glsl/
DGrGLSLProgramBuilder.h40 const GrProgramDesc& desc() const { return *fArgs.fDesc; } in desc()
41 const GrProgramDesc::KeyHeader& header() const { return fArgs.fDesc->header(); } in header()
DGrGLSLProgramBuilder.cpp21 , fFS(this, args.fDesc->header().fFragPosKey) in GrGLSLProgramBuilder()