aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrPrimitiveProcessor.h
diff options
context:
space:
mode:
authorGravatar Brian Salomon <bsalomon@google.com>2017-02-14 10:28:22 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-02-14 16:06:13 +0000
commit9a51498720e234b413e5a3c46d38ab40bda131de (patch)
treed9eab53b0bc23e4d5b3f575552fdac5e83c588e5 /src/gpu/GrPrimitiveProcessor.h
parent8a8937c3d18e42f5d878885b40f3c1f8140627b7 (diff)
Remove component flags from GrXPFactory output analysis.
Change-Id: Ieb8dab564e6e593dca2e092d352756052dadfd90 Reviewed-on: https://skia-review.googlesource.com/8354 Commit-Queue: Brian Salomon <bsalomon@google.com> Reviewed-by: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'src/gpu/GrPrimitiveProcessor.h')
-rw-r--r--src/gpu/GrPrimitiveProcessor.h14
1 files changed, 3 insertions, 11 deletions
diff --git a/src/gpu/GrPrimitiveProcessor.h b/src/gpu/GrPrimitiveProcessor.h
index 9f726d242b..47564d9862 100644
--- a/src/gpu/GrPrimitiveProcessor.h
+++ b/src/gpu/GrPrimitiveProcessor.h
@@ -80,17 +80,9 @@ public:
}
/**
- * Returns true if the pipeline's color output will be affected by the existing render target
- * destination pixel values (meaning we need to be careful with overlapping draws). Note that we
- * can conflate coverage and color, so the destination color may still bleed into pixels that
- * have partial coverage, even if this function returns false.
- *
- * The above comment seems incorrect for the use case. This function is used to turn two
- * overlapping draws into a single draw (really to stencil multiple paths and do a single
- * cover). It seems that what really matters is whether the dst is read for color OR for
- * coverage.
+ * Returns true if the color written to the output pixel depends on the pixels previous value.
*/
- bool willColorBlendWithDst() const { return SkToBool(kWillColorBlendWithDst_Flag & fFlags); }
+ bool xpReadsDst() const { return SkToBool(kXPReadsDst_Flag & fFlags); }
private:
enum {
@@ -105,7 +97,7 @@ private:
// output color. If not set fOverrideColor is to be ignored.
kUseOverrideColor_Flag = 0x4,
- kWillColorBlendWithDst_Flag = 0x8,
+ kXPReadsDst_Flag = 0x8,
};
uint32_t fFlags;