aboutsummaryrefslogtreecommitdiff
path: root/tests/GLProgramsTest.cpp
diff options
context:
space:
mode:
authorjoshualitt <joshualitt@chromium.org>2014-12-03 13:57:36 -0800
committerCommit bot <commit-bot@chromium.org>2014-12-03 13:57:37 -0800
commit829e1b80b1020b17f2078020c990e079b70c077c (patch)
tree92dbe51acc4dcf5e7ebceea1edd0880cfd06fe1f /tests/GLProgramsTest.cpp
parente5750729e4b5e9434d8449e4b63dd7110248e694 (diff)
move program descriptor generation to flush
BUG=skia: Review URL: https://codereview.chromium.org/777673003
Diffstat (limited to 'tests/GLProgramsTest.cpp')
-rw-r--r--tests/GLProgramsTest.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/GLProgramsTest.cpp b/tests/GLProgramsTest.cpp
index aa8359d5e5..7b73fdc510 100644
--- a/tests/GLProgramsTest.cpp
+++ b/tests/GLProgramsTest.cpp
@@ -384,11 +384,12 @@ bool GrDrawTarget::programUnitTest(int maxStages) {
// create optimized draw state, setup readDst texture if required, and build a descriptor
// and program. ODS creation can fail, so we have to check
- GrOptDrawState ods(ds, gpu, scissor, &dstCopy, drawType);
+ GrOptDrawState ods(ds, *gpu->caps(), scissor, &dstCopy, drawType);
if (ods.mustSkip()) {
continue;
}
- SkAutoTUnref<GrGLProgram> program(GrGLProgramBuilder::CreateProgram(ods, drawType, gpu));
+ ods.finalize(gpu);
+ SkAutoTUnref<GrGLProgram> program(GrGLProgramBuilder::CreateProgram(ods, gpu));
if (NULL == program.get()) {
SkDebugf("Failed to create program!");
return false;