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

Unified Diff: src/effects/gradients/Sk4fLinearGradient.h

Issue 1810383004: allow more options for shader blitprocs (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: gcc hates my curlies Created 4 years, 9 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/SkShader.cpp ('k') | src/effects/gradients/Sk4fLinearGradient.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/effects/gradients/Sk4fLinearGradient.h
diff --git a/src/effects/gradients/Sk4fLinearGradient.h b/src/effects/gradients/Sk4fLinearGradient.h
index 9bce47c33dbe2b3d35ecde7d9d2f12261100b007..30292c361f0c24cc31e0aacae5170daf5de0481b 100644
--- a/src/effects/gradients/Sk4fLinearGradient.h
+++ b/src/effects/gradients/Sk4fLinearGradient.h
@@ -22,7 +22,7 @@ public:
protected:
void mapTs(int x, int y, SkScalar ts[], int count) const override;
- BlitProc onChooseBlitProc(const SkImageInfo&, BlitState*) override;
+ bool onChooseBlitProcs(const SkImageInfo&, BlitState*) override;
private:
using INHERITED = GradientShaderBase4fContext;
@@ -40,10 +40,8 @@ private:
bool isFast() const { return fDstToPosClass == kLinear_MatrixClass; }
- static void D32_BlitProc(BlitState* state, int x, int y, const SkPixmap& dst,
- int count, const SkAlpha aa[]);
- static void D64_BlitProc(BlitState*, int x, int y, const SkPixmap& dst,
- int count, const SkAlpha aa[]);
+ static void D32_BlitBW(BlitState*, int x, int y, const SkPixmap& dst, int count);
+ static void D64_BlitBW(BlitState*, int x, int y, const SkPixmap& dst, int count);
mutable const Interval* fCachedInterval;
};
« no previous file with comments | « src/core/SkShader.cpp ('k') | src/effects/gradients/Sk4fLinearGradient.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698