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

Unified Diff: src/core/SkLinearBitmapPipeline.cpp

Issue 1752433002: Simplify the poly union. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: work around clang compiler. Created 4 years, 10 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 | « src/core/SkLinearBitmapPipeline.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkLinearBitmapPipeline.cpp
diff --git a/src/core/SkLinearBitmapPipeline.cpp b/src/core/SkLinearBitmapPipeline.cpp
index 2090a1e436764f2c581b40d6b6f1444ec5d75fd7..6fd4e5fa80a6ad33ce0ff60e04ae44489d053b30 100644
--- a/src/core/SkLinearBitmapPipeline.cpp
+++ b/src/core/SkLinearBitmapPipeline.cpp
@@ -273,21 +273,6 @@ private:
Strategy fStrategy;
};
-class SkippedStage final : public SkLinearBitmapPipeline::BilerpProcessorInterface {
- void VECTORCALL pointListFew(int n, Sk4s xs, Sk4s ys) override {
- SkFAIL("Skipped stage.");
- }
- void VECTORCALL pointList4(Sk4s xs, Sk4s ys) override {
- SkFAIL("Skipped stage.");
- }
- void VECTORCALL bilerpList(Sk4s xs, Sk4s ys) override {
- SkFAIL("Skipped stage.");
- }
- void pointSpan(Span span) override {
- SkFAIL("Skipped stage.");
- }
-};
-
class TranslateMatrixStrategy {
public:
TranslateMatrixStrategy(SkVector offset)
@@ -390,7 +375,6 @@ static SkLinearBitmapPipeline::PointProcessorInterface* choose_matrix(
next,
SkVector{inverse.getTranslateX(), inverse.getTranslateY()});
} else {
- matrixProc->Initialize<SkippedStage>();
return next;
}
return matrixProc->get();
@@ -435,7 +419,6 @@ static SkLinearBitmapPipeline::PointProcessorInterface* choose_filter(
SkFilterQuality filterQuailty,
SkLinearBitmapPipeline::FilterStage* filterProc) {
if (SkFilterQuality::kNone_SkFilterQuality == filterQuailty) {
- filterProc->Initialize<SkippedStage>();
return next;
} else {
filterProc->Initialize<ExpandBilerp<>>(next);
@@ -677,7 +660,6 @@ static SkLinearBitmapPipeline::BilerpProcessorInterface* choose_tiler(
SkFAIL("Not implemented.");
break;
}
- tileProcY->Initialize<SkippedStage>();
} else {
switch (yMode) {
case SkShader::kClamp_TileMode:
« no previous file with comments | « src/core/SkLinearBitmapPipeline.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698