Searched refs:fGpu (Results 1 - 25 of 30) sorted by relevance

12

/external/skia/src/gpu/
H A DGrGpuResource.cpp22 : fGpu(gpu)
30 get_resource_cache(fGpu)->resourceAccess().insertResource(this);
39 SkASSERT(fGpu);
41 get_resource_cache(fGpu)->resourceAccess().removeResource(this);
42 fGpu = NULL;
47 SkASSERT(fGpu);
49 get_resource_cache(fGpu)->resourceAccess().removeResource(this);
50 fGpu = NULL;
61 if (fGpu) {
62 return fGpu
[all...]
H A DGrBatchTarget.cpp20 : fGpu(gpu)
28 fVertexPool.reset(SkNEW_ARGS(GrVertexBufferAllocPool, (fGpu,
31 fIndexPool.reset(SkNEW_ARGS(GrIndexBufferAllocPool, (fGpu,
48 fInlineUploads[fInlineUpdatesIndex++]->upload(TextureUploader(fGpu));
54 fGpu->buildProgramDesc(&desc, *primProc, *pipeline, bf->fBatchTracker);
61 fGpu->draw(args, vertexDraws[i]);
H A DGrBatchTarget.h35 TextureUploader(GrGpu* gpu) : fGpu(gpu) { SkASSERT(gpu); }
53 return fGpu->writeTexturePixels(texture, left, top, width, height, config, buffer,
58 GrGpu* fGpu; member in class:GrBatchTarget::TextureUploader
94 fAsapUploads[i]->upload(TextureUploader(fGpu));
113 const GrDrawTargetCaps& caps() const { return *fGpu->caps(); }
115 GrResourceProvider* resourceProvider() const { return fGpu->getContext()->resourceProvider(); }
140 GrGpu* fGpu; member in class:GrBatchTarget
H A DGrTextureProvider.cpp26 !fGpu->caps()->isConfigRenderable(desc.fConfig, desc.fSampleCnt > 0)) {
43 return fGpu->createTexture(desc, budgeted, srcData, rowBytes);
73 if (fGpu->caps()->reuseScratchTextures() || (desc->fFlags & kRenderTarget_GrSurfaceFlag)) {
96 if (rt && fGpu->caps()->discardRenderTargetSupport()) {
104 return fGpu->createTexture(*desc, true, NULL, 0);
114 return fGpu->wrapBackendTexture(desc);
118 return this->isAbandoned() ? NULL : fGpu->wrapBackendRenderTarget(desc);
H A DGrDashLinePathRenderer.h41 SkAutoTUnref<GrGpu> fGpu; member in class:GrDashLinePathRenderer
H A DGrDashLinePathRenderer.cpp14 : fGpu(SkRef(context->getGpu())) {
H A DGrStencilAndCoverPathRenderer.cpp48 fGpu = gpu;
53 fGpu->unref();
96 SkAutoTUnref<GrPath> p(get_gr_path(fGpu, path, stroke.getStrokeRec()));
112 SkAutoTUnref<GrPath> p(get_gr_path(fGpu, path, stroke.getStrokeRec()));
H A DGrStencilAndCoverPathRenderer.h58 GrGpu* fGpu; member in class:GrStencilAndCoverPathRenderer
H A DGrBufferAllocPool.cpp44 fGpu = SkRef(gpu);
74 fGpu->unref();
290 if (!attemptMap && GrDrawTargetCaps::kNone_MapFlags != fGpu->caps()->mapBufferFlags()) {
334 if (GrDrawTargetCaps::kNone_MapFlags != fGpu->caps()->mapBufferFlags() &&
349 return fGpu->createIndexBuffer(size, true);
352 return fGpu->createVertexBuffer(size, true);
H A DGrContext.cpp99 fGpu = NULL;
113 SkASSERT(NULL == fGpu);
115 fGpu = GrGpu::Create(backend, backendContext, this);
116 if (NULL == fGpu) {
126 fResourceProvider = SkNEW_ARGS(GrResourceProvider, (fGpu, fResourceCache));
144 if (NULL == fGpu) {
162 fGpu->unref();
173 fGpu->contextAbandoned();
189 fGpu->markContextDirty(state);
222 if (fGpu
[all...]
H A DGrBufferAllocPool.h119 GrGpu* fGpu; member in class:GrBufferAllocPool
H A DGrTest.cpp25 // We could create a proxy GrDrawTarget that passes through to fGpu until ~GrTextTarget() and
56 return fGpu->stats()->dump(out);
259 SkASSERT(NULL == fGpu);
260 fGpu = SkNEW_ARGS(MockGpu, (this));
261 SkASSERT(fGpu);
H A DGrAtlas.cpp149 fGpu = SkRef(gpu);
190 fGpu->unref();
228 fTexture = fGpu->createTexture(desc, true, NULL, 0);
H A DGrAtlas.h136 GrGpu* fGpu; member in class:GrAtlas
/external/skia/include/gpu/
H A DGrTextureProvider.h128 GrTextureProvider(GrGpu* gpu, GrResourceCache* cache) : fCache(cache), fGpu(gpu) {}
154 fGpu = NULL;
160 GrGpu* gpu() { return fGpu; }
161 const GrGpu* gpu() const { return fGpu; }
165 SkASSERT(SkToBool(fGpu) == SkToBool(fCache));
170 GrGpu* fGpu; member in class:GrTextureProvider
H A DGrGpuResource.h176 bool wasDestroyed() const { return NULL == fGpu; }
259 GrGpu* getGpu() const { return fGpu; }
318 GrGpu* fGpu; member in class:GrGpuResource
H A DGrContext.h523 GrGpu* getGpu() { return fGpu; }
524 const GrGpu* getGpu() const { return fGpu; }
566 GrGpu* fGpu; member in class:GrContext
/external/skia/src/gpu/gl/
H A DGrGLProgramDataManager.cpp18 : fGpu(gpu) {
54 GR_GL_CALL(fGpu->glInterface(), Uniform1i(uni.fFSLocation, texUnit));
57 GR_GL_CALL(fGpu->glInterface(), Uniform1i(uni.fVSLocation, texUnit));
67 GR_GL_CALL(fGpu->glInterface(), Uniform1f(uni.fFSLocation, v0));
70 GR_GL_CALL(fGpu->glInterface(), Uniform1f(uni.fVSLocation, v0));
86 GR_GL_CALL(fGpu->glInterface(), Uniform1fv(uni.fFSLocation, arrayCount, v));
89 GR_GL_CALL(fGpu->glInterface(), Uniform1fv(uni.fVSLocation, arrayCount, v));
99 GR_GL_CALL(fGpu->glInterface(), Uniform2f(uni.fFSLocation, v0, v1));
102 GR_GL_CALL(fGpu->glInterface(), Uniform2f(uni.fVSLocation, v0, v1));
115 GR_GL_CALL(fGpu
[all...]
H A DGrGLProgram.cpp24 #define GL_CALL(X) GR_GL_CALL(fGpu->glInterface(), X)
25 #define GL_CALL_RET(R, X) GR_GL_CALL_RET(fGpu->glInterface(), R, X)
46 , fGpu(gpu)
93 fGpu->bindTexture(samplers[s].fTextureUnit,
190 pathProc->didSetData(fGpu->glPathRendering());
200 fGpu->glPathRendering(), fProgramID);
210 fGpu->glPathRendering()->setProjectionMatrix(pathProc.viewMatrix(),
H A DGrGLPathRendering.cpp20 #define GL_CALL(X) GR_GL_CALL(fGpu->glInterface(), X)
21 #define GL_CALL_RET(RET, X) GR_GL_CALL_RET(fGpu->glInterface(), RET, X)
63 : fGpu(gpu) {
95 return SkNEW_ARGS(GrGLPath, (fGpu, inPath, stroke));
100 return SkNEW_ARGS(GrGLPathRange, (fGpu, pathGenerator, stroke));
134 SkAutoTUnref<GrGLPath> templatePath(SkNEW_ARGS(GrGLPath, (fGpu, SkPath(), stroke)));
151 return SkNEW_ARGS(GrGLPathRange, (fGpu, basePathID, numPaths, gpuMemorySize, stroke));
200 SkASSERT(fGpu->caps()->shaderCaps()->pathRenderingSupport());
263 SkASSERT(fGpu->glCaps().shaderCaps()->pathRenderingSupport());
H A DGrGLProgramDataManager.h112 GrGLGpu* fGpu; member in class:GrGLProgramDataManager
H A DGrGLPathRendering.h133 GrGLGpu* fGpu; member in class:GrGLPathRendering
/external/skia/tools/timer/
H A DTimer.h49 double fGpu; member in class:Timer
H A DTimer.cpp14 , fGpu(-1.0)
35 fGpu = fGpuTimer.end();
/external/skia/src/gpu/gl/builders/
H A DGrGLProgramBuilder.cpp39 pathProc->resolveSeparableVaryings(fGpu, programID);
40 return SkNEW_ARGS(GrGLNvprProgram, (fGpu, this->desc(), fUniformHandles, programID,
100 , fGpu(gpu)
191 return fGpu->ctxInfo();
199 const int maxTextureUnits = fGpu->glCaps().maxFragmentTextureUnits();
210 GrContextDebugf(fGpu->getContext(), "Program would use too many texture units\n");
316 fGeometryProcessor->fGLProc.reset(gp.createGLInstance(bt, *fGpu->glCaps().glslCaps()));
425 bool usingBindUniform = fGpu->glInterface()->fFunctions.fBindUniformLocation != NULL;
433 bool checkLinked = !fGpu->ctxInfo().isChromium();
501 return SkNEW_ARGS(GrGLProgram, (fGpu, thi
[all...]

Completed in 720 milliseconds

12