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

Unified Diff: src/codec/SkPngCodec.h

Issue 1671003004: Skip memcpy() swizzles in SkPngCodec (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: First Approach 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 | « no previous file | src/codec/SkPngCodec.cpp » ('j') | src/codec/SkPngCodec.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/codec/SkPngCodec.h
diff --git a/src/codec/SkPngCodec.h b/src/codec/SkPngCodec.h
index 95fd61316342f5f46dd875f724e3df755b34b6ca..0989754789b7a7316e194f29fe87a233afc8b700 100644
--- a/src/codec/SkPngCodec.h
+++ b/src/codec/SkPngCodec.h
@@ -38,6 +38,7 @@ protected:
SkPMColor*, int* ctableCount);
SkSampler* getSampler(bool createIfNecessary) override {
SkASSERT(fSwizzler);
+ fInPlaceSwizzle = false;
msarett 2016/02/05 20:48:18 Problem: Here we assume that the client is callin
return fSwizzler;
}
@@ -47,6 +48,7 @@ protected:
SkSwizzler* swizzler() { return fSwizzler; }
SkSwizzler::SrcConfig srcConfig() const { return fSrcConfig; }
int numberPasses() const { return fNumberPasses; }
+ bool inPlaceSwizzle() { return fInPlaceSwizzle; }
private:
SkAutoTUnref<SkPngChunkReader> fPngChunkReader;
@@ -60,6 +62,7 @@ private:
SkSwizzler::SrcConfig fSrcConfig;
const int fNumberPasses;
int fBitDepth;
+ bool fInPlaceSwizzle;
bool decodePalette(bool premultiply, int* ctableCount);
void destroyReadStruct();
« no previous file with comments | « no previous file | src/codec/SkPngCodec.cpp » ('j') | src/codec/SkPngCodec.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698