Home
last modified time | relevance | path

Searched refs:gpu (Results 1 – 25 of 104) sorted by relevance

12345

/external/skia/gyp/
Dgpu.gypi5 # Include this gypi to include all 'gpu' files
15 '<(skia_include_path)/gpu/GrClip.h',
16 '<(skia_include_path)/gpu/GrColor.h',
17 '<(skia_include_path)/gpu/GrConfig.h',
18 '<(skia_include_path)/gpu/GrContext.h',
19 '<(skia_include_path)/gpu/GrCoordTransform.h',
20 '<(skia_include_path)/gpu/GrFragmentProcessor.h',
21 '<(skia_include_path)/gpu/GrFragmentStage.h',
22 '<(skia_include_path)/gpu/GrGpuResource.h',
23 '<(skia_include_path)/gpu/GrInvariantOutput.h',
[all …]
Dgpu.gyp5 # GYP for building gpu
76 '../include/gpu',
93 'gpu.gypi',
96 '../include/gpu',
98 '../src/gpu',
108 'gpu.gypi', # Makes the gypi appear in IDEs (but does not modify the build).
148 '../src/gpu/gl/GrGLDefaultInterface_none.cpp',
149 '../src/gpu/gl/GrGLCreateNativeInterface_none.cpp',
193 '../src/gpu/gl/GrGLDefaultInterface_none.cpp',
194 '../src/gpu/gl/GrGLCreateNativeInterface_none.cpp',
[all …]
Dgputest.gyp16 '../include/gpu',
19 '../src/gpu',
23 '../src/gpu',
27 '<(skia_src_path)/gpu/GrContextFactory.cpp',
28 '<(skia_src_path)/gpu/GrContextFactory.h',
29 '<(skia_src_path)/gpu/GrTest.cpp',
30 '<(skia_src_path)/gpu/GrTest.h',
/external/skia/src/gpu/gl/
DGrGLBufferImpl.cpp23 GrGLBufferImpl::GrGLBufferImpl(GrGLGpu* gpu, const Desc& desc, GrGLenum bufferType) in GrGLBufferImpl() argument
38 void GrGLBufferImpl::release(GrGLGpu* gpu) { in release() argument
45 GL_CALL(gpu, DeleteBuffers(1, &fDesc.fID)); in release()
47 gpu->notifyVertexBufferDelete(fDesc.fID); in release()
50 gpu->notifyIndexBufferDelete(fDesc.fID); in release()
68 void GrGLBufferImpl::bind(GrGLGpu* gpu) const { in bind()
71 gpu->bindVertexBuffer(fDesc.fID); in bind()
74 gpu->bindIndexBufferAndDefaultVertexArray(fDesc.fID); in bind()
79 void* GrGLBufferImpl::map(GrGLGpu* gpu) { in map() argument
85 switch (gpu->glCaps().mapBufferType()) { in map()
[all …]
DGrGLPathRange.cpp14 GrGLPathRange::GrGLPathRange(GrGLGpu* gpu, PathGenerator* pathGenerator, const SkStrokeRec& stroke) in GrGLPathRange() argument
15 : INHERITED(gpu, pathGenerator, stroke), in GrGLPathRange()
16 fBasePathID(gpu->glPathRendering()->genPaths(this->getNumPaths())), in GrGLPathRange()
21 GrGLPathRange::GrGLPathRange(GrGLGpu* gpu, in GrGLPathRange() argument
26 : INHERITED(gpu, numPaths, stroke), in GrGLPathRange()
33 GrGLGpu* gpu = static_cast<GrGLGpu*>(this->getGpu()); in onInitPath() local
34 if (NULL == gpu) { in onInitPath()
41 GR_GL_CALL_RET(gpu->glInterface(), isPath, IsPath(fBasePathID + index))); in onInitPath()
44 GrGLPath::InitPathObject(gpu, fBasePathID + index, skPath, this->getStroke()); in onInitPath()
DGrGLVertexArray.cpp12 void GrGLAttribArrayState::set(const GrGLGpu* gpu, in set() argument
23 GR_GL_CALL(gpu->glInterface(), EnableVertexAttribArray(index)); in set()
35 GR_GL_CALL(gpu->glInterface(), VertexAttribPointer(index, in set()
50 void GrGLAttribArrayState::disableUnusedArrays(const GrGLGpu* gpu, uint64_t usedMask) { in disableUnusedArrays() argument
55 GR_GL_CALL(gpu->glInterface(), DisableVertexAttribArray(i)); in disableUnusedArrays()
75 GrGLAttribArrayState* GrGLVertexArray::bind(GrGLGpu* gpu) { in bind() argument
79 gpu->bindVertexArray(fID); in bind()
83 GrGLAttribArrayState* GrGLVertexArray::bindWithIndexBuffer(GrGLGpu* gpu, in bindWithIndexBuffer() argument
85 GrGLAttribArrayState* state = this->bind(gpu); in bindWithIndexBuffer()
89 GR_GL_CALL(gpu->glInterface(), BindBuffer(GR_GL_ELEMENT_ARRAY_BUFFER, bufferID)); in bindWithIndexBuffer()
DGrGLTexture.cpp15 GrGLTexture::GrGLTexture(GrGLGpu* gpu, const GrSurfaceDesc& desc, const IDDesc& idDesc) in GrGLTexture() argument
16 : GrSurface(gpu, idDesc.fLifeCycle, desc) in GrGLTexture()
17 , INHERITED(gpu, idDesc.fLifeCycle, desc) { in GrGLTexture()
22 GrGLTexture::GrGLTexture(GrGLGpu* gpu, const GrSurfaceDesc& desc, const IDDesc& idDesc, Derived) in GrGLTexture() argument
23 : GrSurface(gpu, idDesc.fLifeCycle, desc) in GrGLTexture()
24 , INHERITED(gpu, idDesc.fLifeCycle, desc) { in GrGLTexture()
DGrGLProgramDesc.cpp92 const GrGLGpu* gpu, in Build() argument
108 primProc.getGLProcessorKey(batchTracker, *gpu->glCaps().glslCaps(), &b); in Build()
110 if (!get_meta_key(primProc, gpu->glCaps(), 0, &b)) { in Build()
118 fp.getGLProcessorKey(*gpu->glCaps().glslCaps(), &b); in Build()
120 if (!get_meta_key(fp, gpu->glCaps(), primProc.getTransformKey(fp.coordTransforms()), &b)) { in Build()
127 xp.getGLProcessorKey(*gpu->glCaps().glslCaps(), &b); in Build()
129 if (!get_meta_key(xp, gpu->glCaps(), 0, &b)) { in Build()
145 gpu->glCaps()); in Build()
DGrGLPath.cpp91 void GrGLPath::InitPathObject(GrGLGpu* gpu, in InitPathObject() argument
165 GR_GL_CALL(gpu->glInterface(), PathCommands(pathID, pathCommands.count(), &pathCommands[0], in InitPathObject()
168 GR_GL_CALL(gpu->glInterface(), PathCommands(pathID, 0, NULL, 0, GR_GL_FLOAT, NULL)); in InitPathObject()
173 GR_GL_CALL(gpu->glInterface(), in InitPathObject()
175 GR_GL_CALL(gpu->glInterface(), in InitPathObject()
178 GR_GL_CALL(gpu->glInterface(), PathParameteri(pathID, GR_GL_PATH_JOIN_STYLE, join)); in InitPathObject()
180 GR_GL_CALL(gpu->glInterface(), PathParameteri(pathID, GR_GL_PATH_END_CAPS, cap)); in InitPathObject()
184 GrGLPath::GrGLPath(GrGLGpu* gpu, const SkPath& path, const SkStrokeRec& stroke) in GrGLPath() argument
185 : INHERITED(gpu, path, stroke), in GrGLPath()
186 fPathID(gpu->glPathRendering()->genPaths(1)) { in GrGLPath()
[all …]
DGrGLBufferImpl.h35 void release(GrGLGpu* gpu);
40 void bind(GrGLGpu* gpu) const;
42 void* map(GrGLGpu* gpu);
43 void unmap(GrGLGpu* gpu);
45 bool updateData(GrGLGpu* gpu, const void* src, size_t srcSizeInBytes);
DGrGLRenderTarget.cpp16 GrGLRenderTarget::GrGLRenderTarget(GrGLGpu* gpu, const GrSurfaceDesc& desc, const IDDesc& idDesc) in GrGLRenderTarget() argument
17 : GrSurface(gpu, idDesc.fLifeCycle, desc) in GrGLRenderTarget()
18 , INHERITED(gpu, idDesc.fLifeCycle, desc) { in GrGLRenderTarget()
23 GrGLRenderTarget::GrGLRenderTarget(GrGLGpu* gpu, const GrSurfaceDesc& desc, const IDDesc& idDesc, in GrGLRenderTarget() argument
25 : GrSurface(gpu, idDesc.fLifeCycle, desc) in GrGLRenderTarget()
26 , INHERITED(gpu, idDesc.fLifeCycle, desc) { in GrGLRenderTarget()
DGrGLTextureRenderTarget.h27 GrGLTextureRenderTarget(GrGLGpu* gpu, in GrGLTextureRenderTarget() argument
31 : GrSurface(gpu, texIDDesc.fLifeCycle, desc) in GrGLTextureRenderTarget()
32 , GrGLTexture(gpu, desc, texIDDesc, GrGLTexture::kDerived) in GrGLTextureRenderTarget()
33 , GrGLRenderTarget(gpu, desc, rtIDDesc, GrGLRenderTarget::kDerived) { in GrGLTextureRenderTarget()
DGrGLGpu.h192 ProgramCache(GrGLGpu* gpu);
359 void setVertexArrayID(GrGLGpu* gpu, GrGLuint arrayID) { in setVertexArrayID() argument
360 if (!gpu->glCaps().vertexArrayObjectSupport()) { in setVertexArrayID()
365 GR_GL_CALL(gpu->glInterface(), BindVertexArray(arrayID)); in setVertexArrayID()
391 void setVertexBufferID(GrGLGpu* gpu, GrGLuint id) { in setVertexBufferID() argument
393 GR_GL_CALL(gpu->glInterface(), BindBuffer(GR_GL_ARRAY_BUFFER, id)); in setVertexBufferID()
403 void setIndexBufferIDOnDefaultVertexArray(GrGLGpu* gpu, GrGLuint id) { in setIndexBufferIDOnDefaultVertexArray() argument
404 this->setVertexArrayID(gpu, 0); in setIndexBufferIDOnDefaultVertexArray()
407 GR_GL_CALL(gpu->glInterface(), BindBuffer(GR_GL_ELEMENT_ARRAY_BUFFER, id)); in setIndexBufferIDOnDefaultVertexArray()
419 GrGLAttribArrayState* bindArrayAndBuffersToDraw(GrGLGpu* gpu,
DGrGLVertexBuffer.cpp11 GrGLVertexBuffer::GrGLVertexBuffer(GrGLGpu* gpu, const Desc& desc) in GrGLVertexBuffer() argument
12 : INHERITED(gpu, desc.fSizeInBytes, desc.fDynamic, 0 == desc.fID) in GrGLVertexBuffer()
13 , fImpl(gpu, desc, GR_GL_ARRAY_BUFFER) { in GrGLVertexBuffer()
/external/skia/
DAndroid.mk430 src/gpu/GrAAHairLinePathRenderer.cpp \
431 src/gpu/GrAAConvexPathRenderer.cpp \
432 src/gpu/GrAAConvexTessellator.cpp \
433 src/gpu/GrAADistanceFieldPathRenderer.cpp \
434 src/gpu/GrAARectRenderer.cpp \
435 src/gpu/GrAddPathRenderers_default.cpp \
436 src/gpu/GrAtlas.cpp \
437 src/gpu/GrAtlasTextContext.cpp \
438 src/gpu/GrBatch.cpp \
439 src/gpu/GrBatchAtlas.cpp \
[all …]
/external/skia/src/gpu/
DGrTargetCommands.cpp22 GrGpu* gpu = iodb->getGpu(); in flush() local
45 gpu->addGpuTraceMarker(&newMarker); in flush()
48 iter->execute(gpu); in flush()
50 gpu->removeGpuTraceMarker(&newMarker); in flush()
57 void GrTargetCommands::StencilPath::execute(GrGpu* gpu) { in execute() argument
65 gpu->stencilPath(this->path(), state); in execute()
68 void GrTargetCommands::DrawPath::execute(GrGpu* gpu) { in execute() argument
70 gpu->buildProgramDesc(&fState->fDesc, *fState->fPrimitiveProcessor, *fState->getPipeline(), in execute()
76 gpu->drawPath(args, this->path(), fStencilSettings); in execute()
79 void GrTargetCommands::DrawPaths::execute(GrGpu* gpu) { in execute() argument
[all …]
DGrGpuResource.cpp14 static inline GrResourceCache* get_resource_cache(GrGpu* gpu) { in get_resource_cache() argument
15 SkASSERT(gpu); in get_resource_cache()
16 SkASSERT(gpu->getContext()); in get_resource_cache()
17 SkASSERT(gpu->getContext()->getResourceCache()); in get_resource_cache()
18 return gpu->getContext()->getResourceCache(); in get_resource_cache()
21 GrGpuResource::GrGpuResource(GrGpu* gpu, LifeCycle lifeCycle) in GrGpuResource() argument
22 : fGpu(gpu) in GrGpuResource()
DGrStencilAndCoverPathRenderer.cpp46 GrStencilAndCoverPathRenderer::GrStencilAndCoverPathRenderer(GrGpu* gpu) { in GrStencilAndCoverPathRenderer() argument
47 SkASSERT(gpu->caps()->shaderCaps()->pathRenderingSupport()); in GrStencilAndCoverPathRenderer()
48 fGpu = gpu; in GrStencilAndCoverPathRenderer()
49 gpu->ref(); in GrStencilAndCoverPathRenderer()
76 static GrPath* get_gr_path(GrGpu* gpu, const SkPath& skPath, const SkStrokeRec& stroke) { in get_gr_path() argument
77 GrContext* ctx = gpu->getContext(); in get_gr_path()
83 path.reset(gpu->pathRendering()->createPath(skPath, stroke)); in get_gr_path()
DGrPathRange.cpp15 GrPathRange::GrPathRange(GrGpu* gpu, in GrPathRange() argument
18 : INHERITED(gpu, kCached_LifeCycle), in GrPathRange()
27 GrPathRange::GrPathRange(GrGpu* gpu, in GrPathRange() argument
30 : INHERITED(gpu, kCached_LifeCycle), in GrPathRange()
/external/skia/src/gpu/gl/builders/
DGrGLFragmentShaderBuilder.cpp12 #define GL_CALL(X) GR_GL_CALL(fProgramBuilder->gpu()->glInterface(), X)
13 #define GL_CALL_RET(R, X) GR_GL_CALL_RET(fProgramBuilder->gpu()->glInterface(), R, X)
122 GrGLGpu* gpu = fProgramBuilder->gpu(); in enableFeature() local
123 if (!gpu->glCaps().shaderCaps()->shaderDerivativeSupport()) { in enableFeature()
126 if (kGLES_GrGLStandard == gpu->glStandard() && in enableFeature()
127 k110_GrGLSLGeneration == gpu->glslGeneration()) { in enableFeature()
158 GrGLGpu* gpu = fProgramBuilder->gpu(); in fragmentPosition() local
165 } else if (gpu->glCaps().fragCoordConventionsSupport()) { in fragmentPosition()
167 if (gpu->glslGeneration() < k150_GrGLSLGeneration) { in fragmentPosition()
209 GrGLGpu* gpu = fProgramBuilder->gpu(); in dstColor() local
[all …]
DGrGLShaderBuilder.cpp24 GrGLGpu* gpu, in append_texture_lookup() argument
33 sample_function_name(varyingType, gpu->glslGeneration()), in append_texture_lookup()
41 if (!gpu->glCaps().textureSwizzleSupport() && in append_texture_lookup()
43 char alphaChar = gpu->glCaps().textureRedSupport() ? 'r' : 'a'; in append_texture_lookup()
91 const GrGLContextInfo& ctxInfo = fProgramBuilder->gpu()->ctxInfo(); in emitFunction()
108 fProgramBuilder->gpu(), in appendTextureLookup()
167 fProgramBuilder->gpu(), in appendTextureLookup()
176 SkASSERT(fProgramBuilder->gpu()->glslGeneration() >= k330_GrGLSLGeneration || in addLayoutQualifier()
177 fProgramBuilder->gpu()->glCaps().glslCaps()->mustEnableAdvBlendEqs()); in addLayoutQualifier()
213 GrGLGpu* gpu = fProgramBuilder->gpu(); in finalize() local
[all …]
DGrGLProgramBuilder.cpp24 #define GL_CALL(X) GR_GL_CALL(this->gpu()->glInterface(), X)
25 #define GL_CALL_RET(R, X) GR_GL_CALL_RET(this->gpu()->glInterface(), R, X)
31 GrGLNvprProgramBuilder(GrGLGpu* gpu, const DrawArgs& args) in GrGLNvprProgramBuilder() argument
32 : INHERITED(gpu, args) {} in GrGLNvprProgramBuilder()
56 GrGLProgram* GrGLProgramBuilder::CreateProgram(const DrawArgs& args, GrGLGpu* gpu) { in CreateProgram() argument
61 SkAutoTDelete<GrGLProgramBuilder> builder(CreateProgramBuilder(args, gpu)); in CreateProgram()
78 GrGLGpu* gpu) { in CreateProgramBuilder() argument
80 SkASSERT(gpu->glCaps().shaderCaps()->pathRenderingSupport() && in CreateProgramBuilder()
83 return SkNEW_ARGS(GrGLNvprProgramBuilder, (gpu, args)); in CreateProgramBuilder()
85 return SkNEW_ARGS(GrGLProgramBuilder, (gpu, args)); in CreateProgramBuilder()
[all …]
/external/skia/bench/
DGrResourceCacheBench.cpp27 BenchResource (GrGpu* gpu) in BenchResource() argument
28 : INHERITED(gpu, kCached_LifeCycle) { in BenchResource()
44 static void populate_cache(GrGpu* gpu, int resourceCount) { in populate_cache() argument
48 GrGpuResource* resource = SkNEW_ARGS(BenchResource, (gpu)); in populate_cache()
79 GrGpu* gpu = context->getGpu(); in onDraw() local
82 populate_cache(gpu, CACHE_SIZE_COUNT); in onDraw()
116 GrGpu* gpu = fContext->getGpu(); in onPreDraw() local
118 populate_cache(gpu, CACHE_SIZE_COUNT); in onPreDraw()
/external/skia/tests/
DGLProgramsTest.cpp147 static void set_random_color_coverage_stages(GrGLGpu* gpu, in set_random_color_coverage_stages() argument
158 gpu->getContext(), in set_random_color_coverage_stages()
159 *gpu->caps(), in set_random_color_coverage_stages()
212 GrGLGpu* gpu = static_cast<GrGLGpu*>(fContext->getGpu()); in programUnitTest() local
219 SkAutoTUnref<GrTexture> dummyTexture1(gpu->createTexture(dummyDesc, false, NULL, 0)); in programUnitTest()
224 SkAutoTUnref<GrTexture> dummyTexture2(gpu->createTexture(dummyDesc, false, NULL, 0)); in programUnitTest()
256 set_random_color_coverage_stages(gpu, in programUnitTest()
263 set_random_xpf(fContext, gpu->glCaps(), &pipelineBuilder, &random, dummyTextures); in programUnitTest()
292 GrGLGpu* gpu = static_cast<GrGLGpu*>(context->getGpu()); in DEF_GPUTEST() local
300 if (kGL_GrGLStandard == gpu->glStandard() || in DEF_GPUTEST()
[all …]
/external/skia/include/gpu/
DGrTextureProvider.h128 GrTextureProvider(GrGpu* gpu, GrResourceCache* cache) : fCache(cache), fGpu(gpu) {} in GrTextureProvider() argument
160 GrGpu* gpu() { return fGpu; } in gpu() function
161 const GrGpu* gpu() const { return fGpu; } in gpu() function

12345