diff options
author | 2014-12-04 10:41:40 -0800 | |
---|---|---|
committer | 2014-12-04 10:41:40 -0800 | |
commit | 87f48d997ec29e5eeaa7567355775e93465dd60d (patch) | |
tree | 44c1593b75579329ad38e00cc06049d55c0261db /src/gpu/gl/GrGLProgram.cpp | |
parent | 4b8128ce9a7374d7cef0721e215d0c9e11e9c284 (diff) |
create and thread batch tracker object
I remove the factory on the next CL
BUG=skia:
Committed: https://skia.googlesource.com/skia/+/c3a6eb23483e5d28073b509a5f637f41660de294
Review URL: https://codereview.chromium.org/772513002
Diffstat (limited to 'src/gpu/gl/GrGLProgram.cpp')
-rw-r--r-- | src/gpu/gl/GrGLProgram.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gpu/gl/GrGLProgram.cpp b/src/gpu/gl/GrGLProgram.cpp index 3b04edb8c8..29c44ac56c 100644 --- a/src/gpu/gl/GrGLProgram.cpp +++ b/src/gpu/gl/GrGLProgram.cpp @@ -158,7 +158,8 @@ void GrGLProgram::setData(const GrOptDrawState& optState) { if (fGeometryProcessor.get()) { SkASSERT(optState.hasGeometryProcessor()); const GrGeometryProcessor& gp = *optState.getGeometryProcessor(); - fGeometryProcessor->fGLProc->setData(fProgramDataManager, gp); + const GrBatchTracker& bt = optState.getBatchTracker(); + fGeometryProcessor->fGLProc->setData(fProgramDataManager, gp, bt); this->bindTextures(fGeometryProcessor, gp); } this->setFragmentData(optState); |