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

Unified Diff: src/codec/SkJpegCodec.h

Issue 2202763002: Fix SkJpegCodec::onSkipScanlines when TURBO_HAS_SKIP is not defined (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Comments Created 4 years, 5 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/SkJpegCodec.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/codec/SkJpegCodec.h
diff --git a/src/codec/SkJpegCodec.h b/src/codec/SkJpegCodec.h
index 7eb5100a8fadcfbd811aad5386c13426b56f20cf..f1785900d79854870e987a559b4784dc1d142aa9 100644
--- a/src/codec/SkJpegCodec.h
+++ b/src/codec/SkJpegCodec.h
@@ -8,6 +8,13 @@
#ifndef SkJpegCodec_DEFINED
#define SkJpegCodec_DEFINED
+// For testing.
+#ifdef SKNX_NO_SIMD
+#undef TURBO_HAS_CROP
+#undef TURBO_HAS_SKIP
+#undef TURBO_HAS_565
+#endif
+
#include "SkCodec.h"
#include "SkColorSpace.h"
#include "SkColorSpaceXform.h"
@@ -141,6 +148,10 @@ private:
sk_sp<SkData> fICCData;
+#if !defined(TURBO_HAS_SKIP)
+ SkAutoTMalloc<uint8_t> fSkipStorage;
+#endif
+
typedef SkCodec INHERITED;
};
« no previous file with comments | « no previous file | src/codec/SkJpegCodec.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698