Index: src/gpu/GrPipeline.cpp |
diff --git a/src/gpu/GrPipeline.cpp b/src/gpu/GrPipeline.cpp |
index 875c50e88c0961393ec1b09e688a6c32b09a1d09..cb1f9921c45c971dd2bcc274075d8a9f0b51891e 100644 |
--- a/src/gpu/GrPipeline.cpp |
+++ b/src/gpu/GrPipeline.cpp |
@@ -12,6 +12,7 @@ |
#include "GrGpu.h" |
#include "GrPipelineBuilder.h" |
#include "GrProcOptInfo.h" |
+#include "GrRenderTargetContextPriv.h" |
#include "GrRenderTargetOpList.h" |
#include "GrRenderTargetPriv.h" |
#include "GrXferProcessor.h" |
@@ -22,9 +23,9 @@ GrPipeline* GrPipeline::CreateAt(void* memory, const CreateArgs& args, |
GrXPOverridesForBatch* overrides) { |
const GrPipelineBuilder& builder = *args.fPipelineBuilder; |
const GrUserStencilSettings* userStencil = builder.getUserStencil(); |
- GrRenderTarget* rt = args.fRenderTargetContext->accessRenderTarget(); |
GrPipeline* pipeline = new (memory) GrPipeline; |
+ GrRenderTarget* rt = args.fRenderTargetContext->instantiate(); |
pipeline->fRenderTarget.reset(rt); |
SkASSERT(pipeline->fRenderTarget); |
pipeline->fScissorState = *args.fScissor; |