Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(305)

Unified Diff: src/gpu/GrDrawTarget.cpp

Issue 1273803004: Use a factory function to create GrPipeline and remove unused member (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/gpu/GrPipeline.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrDrawTarget.cpp
diff --git a/src/gpu/GrDrawTarget.cpp b/src/gpu/GrDrawTarget.cpp
index ca2d2d90052df21971b0a482d9116c33a107dbc1..21a80deb31bf29d99bb0ef9bdaed3130f2b0ae66 100644
--- a/src/gpu/GrDrawTarget.cpp
+++ b/src/gpu/GrDrawTarget.cpp
@@ -460,13 +460,14 @@ void GrDrawTarget::copySurface(GrSurface* dst,
const GrPipeline* GrDrawTarget::setupPipeline(const PipelineInfo& pipelineInfo,
void* pipelineAddr) {
- return SkNEW_PLACEMENT_ARGS(pipelineAddr, GrPipeline, (*pipelineInfo.fPipelineBuilder,
- pipelineInfo.fColorPOI,
- pipelineInfo.fCoveragePOI,
- *this->caps(),
- *pipelineInfo.fScissor,
- &pipelineInfo.fDstTexture));
+ return GrPipeline::CreateAt(pipelineAddr, *pipelineInfo.fPipelineBuilder,
+ pipelineInfo.fColorPOI,
+ pipelineInfo.fCoveragePOI,
+ *this->caps(),
+ *pipelineInfo.fScissor,
+ &pipelineInfo.fDstTexture);
}
+
///////////////////////////////////////////////////////////////////////////////
GrDrawTarget::PipelineInfo::PipelineInfo(const GrPipelineBuilder& pipelineBuilder,
« no previous file with comments | « no previous file | src/gpu/GrPipeline.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698