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

Unified Diff: src/codec/SkSwizzler.h

Issue 1616753003: Use fActualProc to choose fFastProc or fSlowProc in SkSwizzler (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Response to comment Created 4 years, 11 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 | « no previous file | src/codec/SkSwizzler.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/codec/SkSwizzler.h
diff --git a/src/codec/SkSwizzler.h b/src/codec/SkSwizzler.h
index edc7dcbe2a9838f0583d87de9efaa052bc82b2b8..eebf886993b1663640577e4f5558826bc8fd48e9 100644
--- a/src/codec/SkSwizzler.h
+++ b/src/codec/SkSwizzler.h
@@ -162,10 +162,14 @@ private:
int dstWidth, int bpp, int deltaSrc, int offset,
const SkPMColor ctable[]);
- // May be NULL. We will not always be able to used an optimized function.
- RowProc fFastProc;
- // Always non-NULL. We use this if fFastProc is NULL.
- const RowProc fProc;
+ // May be NULL. We have not implemented optimized functions for all supported transforms.
+ const RowProc fFastProc;
+ // Always non-NULL. Supports sampling.
+ const RowProc fSlowProc;
+ // The actual RowProc we are using. This depends on if fFastProc is non-NULL and
+ // whether or not we are sampling.
+ RowProc fActualProc;
+
const SkPMColor* fColorTable; // Unowned pointer
// Subset Swizzles
« no previous file with comments | « no previous file | src/codec/SkSwizzler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698