Rename outputSwizzle->writeSwizzle.
It is also used for writes to surfaces other than fragment shader
output. e.g. clears.
Change-Id: Id1eb79be6d1a8aed936456bffa59dee32661cec8
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/280344
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
diff --git a/src/gpu/GrPipeline.cpp b/src/gpu/GrPipeline.cpp
index 3e18d5b..58c8f0c 100644
--- a/src/gpu/GrPipeline.cpp
+++ b/src/gpu/GrPipeline.cpp
@@ -15,9 +15,10 @@
#include "src/gpu/ops/GrOp.h"
-GrPipeline::GrPipeline(const InitArgs& args, sk_sp<const GrXferProcessor> xferProcessor,
+GrPipeline::GrPipeline(const InitArgs& args,
+ sk_sp<const GrXferProcessor> xferProcessor,
const GrAppliedHardClip& hardClip)
- : fOutputSwizzle(args.fOutputSwizzle) {
+ : fWriteSwizzle(args.fWriteSwizzle) {
fFlags = (Flags)args.fInputFlags;
if (hardClip.hasStencilClip()) {
fFlags |= Flags::kHasStencilClip;
@@ -68,13 +69,15 @@
return this->getXferProcessor().xferBarrierType(caps);
}
-GrPipeline::GrPipeline(GrScissorTest scissorTest, sk_sp<const GrXferProcessor> xp,
- const GrSwizzle& outputSwizzle, InputFlags inputFlags,
+GrPipeline::GrPipeline(GrScissorTest scissorTest,
+ sk_sp<const GrXferProcessor> xp,
+ const GrSwizzle& writeSwizzle,
+ InputFlags inputFlags,
const GrUserStencilSettings* userStencil)
: fWindowRectsState()
, fFlags((Flags)inputFlags)
, fXferProcessor(std::move(xp))
- , fOutputSwizzle(outputSwizzle) {
+ , fWriteSwizzle(writeSwizzle) {
if (GrScissorTest::kEnabled == scissorTest) {
fFlags |= Flags::kScissorTestEnabled;
}