| Index: tests/GLProgramsTest.cpp
|
| diff --git a/tests/GLProgramsTest.cpp b/tests/GLProgramsTest.cpp
|
| index c72c31529b3a3426f9ce82aaed8ffd9cb7dde0aa..27de77e3ba9b23a4bba2b2444b7ece8f7a780050 100644
|
| --- a/tests/GLProgramsTest.cpp
|
| +++ b/tests/GLProgramsTest.cpp
|
| @@ -15,6 +15,7 @@
|
| #include "GrAutoLocaleSetter.h"
|
| #include "GrBatchTest.h"
|
| #include "GrContextFactory.h"
|
| +#include "GrDrawContext.h"
|
| #include "GrDrawingManager.h"
|
| #include "GrInvariantOutput.h"
|
| #include "GrPipeline.h"
|
| @@ -356,10 +357,9 @@ bool GrDrawingManager::ProgramUnitTest(GrContext* context, int maxStages) {
|
| set_random_state(&pipelineBuilder, &random);
|
| set_random_stencil(&pipelineBuilder, &random);
|
|
|
| - GrTestTarget tt;
|
| - context->getTestTarget(&tt, rt);
|
| + GrDrawContext* drawContext = context->drawContext(rt);
|
|
|
| - tt.target()->drawBatch(pipelineBuilder, batch);
|
| + drawContext->internal_drawBatch(&pipelineBuilder, batch);
|
| }
|
| // Flush everything, test passes if flush is successful(ie, no asserts are hit, no crashes)
|
| drawingManager->flush();
|
| @@ -390,10 +390,8 @@ bool GrDrawingManager::ProgramUnitTest(GrContext* context, int maxStages) {
|
| BlockInputFragmentProcessor::Create(fp));
|
| builder.addColorFragmentProcessor(blockFP);
|
|
|
| - GrTestTarget tt;
|
| - context->getTestTarget(&tt, rt);
|
| -
|
| - tt.target()->drawBatch(builder, batch);
|
| + GrDrawContext* drawContext = context->drawContext(rt);
|
| + drawContext->internal_drawBatch(&builder, batch);
|
| drawingManager->flush();
|
| }
|
| }
|
|
|