aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrPipeline.h
diff options
context:
space:
mode:
authorGravatar csmartdalton <csmartdalton@google.com>2017-02-08 14:41:05 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-02-08 21:36:55 +0000
commit119fb2b9505aea87900d2cf5cf3573814bcae08c (patch)
treef4ccb6d9d02185f69e97dd1cdc657d98ff7fc901 /src/gpu/GrPipeline.h
parent3a84615bbd195045e7dbb707fcabf623513771dc (diff)
Add a basic constructor to GrPipeline
Adds a simple constructor for when we just need to set up basic internal rendering. BUG=skia: Change-Id: Ib046c62e9a759aa7d0a3345e16ccf6e6af9342ea Reviewed-on: https://skia-review.googlesource.com/8121 Reviewed-by: Brian Salomon <bsalomon@google.com> Commit-Queue: Chris Dalton <csmartdalton@google.com>
Diffstat (limited to 'src/gpu/GrPipeline.h')
-rw-r--r--src/gpu/GrPipeline.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gpu/GrPipeline.h b/src/gpu/GrPipeline.h
index 3949a75c5c..11de747b04 100644
--- a/src/gpu/GrPipeline.h
+++ b/src/gpu/GrPipeline.h
@@ -100,6 +100,12 @@ public:
/** Creates a pipeline into a pre-allocated buffer */
static GrPipeline* CreateAt(void* memory, const CreateArgs&, GrPipelineOptimizations*);
+ /**
+ * Creates a simple pipeline with default settings and no processors. The provided blend mode
+ * must be "Porter Duff" (<= kLastCoeffMode).
+ **/
+ GrPipeline(GrRenderTarget*, SkBlendMode);
+
/// @}
///////////////////////////////////////////////////////////////////////////