diff options
author | joshualitt <joshualitt@google.com> | 2014-12-04 06:00:41 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-12-04 06:00:41 -0800 |
commit | 841a6b54c11137e210aa81e8b56e1763c3571cb8 (patch) | |
tree | fac39d5628255390df36a6fc7def7b4d13d8f30d /src/gpu/gl/GrGLProgramDesc.cpp | |
parent | b8eb85cd2fae475f17b713b6739ede545a78f647 (diff) |
Revert of create and thread batch tracker object (patchset #9 id:160001 of https://codereview.chromium.org/772513002/)
Reason for revert:
Breaking linux layout test
Original issue's description:
> create and thread batch tracker object
>
> I remove the factory on the next CL
>
> BUG=skia:
>
> Committed: https://skia.googlesource.com/skia/+/c3a6eb23483e5d28073b509a5f637f41660de294
TBR=bsalomon@google.com,joshualitt@chromium.org
NOTREECHECKS=true
NOTRY=true
BUG=skia:
Review URL: https://codereview.chromium.org/774133003
Diffstat (limited to 'src/gpu/gl/GrGLProgramDesc.cpp')
-rw-r--r-- | src/gpu/gl/GrGLProgramDesc.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/gpu/gl/GrGLProgramDesc.cpp b/src/gpu/gl/GrGLProgramDesc.cpp index 474f7026e4..f8dbbc26f9 100644 --- a/src/gpu/gl/GrGLProgramDesc.cpp +++ b/src/gpu/gl/GrGLProgramDesc.cpp @@ -123,6 +123,9 @@ static bool get_meta_key(const GrProcessor& proc, uint32_t transformKey, uint32_t attribKey, GrProcessorKeyBuilder* b) { + const GrBackendProcessorFactory& factory = proc.getFactory(); + factory.getGLProcessorKey(proc, caps, b); + size_t processorKeySize = b->size(); uint32_t textureKey = gen_texture_key(proc, caps); uint32_t classID = proc.getFactory().classID(); @@ -167,8 +170,6 @@ bool GrGLProgramDescBuilder::Build(const GrOptDrawState& optState, if (optState.hasGeometryProcessor()) { const GrGeometryProcessor& gp = *optState.getGeometryProcessor(); GrProcessorKeyBuilder b(&desc->fKey); - const GrBackendGeometryProcessorFactory& factory = gp.getFactory(); - factory.getGLProcessorKey(gp, optState.getBatchTracker(), gpu->glCaps(), &b); if (!get_meta_key(gp, gpu->glCaps(), 0, gen_attrib_key(gp), &b)) { desc->fKey.reset(); return false; @@ -177,10 +178,7 @@ bool GrGLProgramDescBuilder::Build(const GrOptDrawState& optState, for (int s = 0; s < optState.numFragmentStages(); ++s) { const GrPendingFragmentStage& fps = optState.getFragmentStage(s); - const GrFragmentProcessor& fp = *fps.getProcessor(); GrProcessorKeyBuilder b(&desc->fKey); - const GrBackendFragmentProcessorFactory& factory = fp.getFactory(); - factory.getGLProcessorKey(fp, gpu->glCaps(), &b); if (!get_meta_key(*fps.getProcessor(), gpu->glCaps(), gen_transform_key(fps, requiresLocalCoordAttrib), 0, &b)) { desc->fKey.reset(); |