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

Unified Diff: src/codec/SkPngCodec.h

Issue 2267343004: GN: more optional components: jpeg, pdf, png, xml (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Do not include png.h from SkPngCodec.h Created 4 years, 4 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 | « BUILD.gn ('k') | src/codec/SkPngCodec.cpp » ('j') | no next file with comments »
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 aace7b1c4cedabaf0548ce90e2b48648ce1e0139..7bb833d10d836fc45f7663b1c1af92063306f2e8 100644
--- a/src/codec/SkPngCodec.h
+++ b/src/codec/SkPngCodec.h
@@ -14,7 +14,11 @@
#include "SkRefCnt.h"
#include "SkSwizzler.h"
-#include "png.h"
+// Instead of including png.h here, forward declare the few types we refer to.
msarett 2016/08/24 16:41:51 This should work. I believe we've had issues in t
+struct png_struct_def;
+struct png_info_def;
+typedef png_struct_def png_struct;
+typedef png_info_def png_info;
class SkStream;
@@ -47,11 +51,11 @@ protected:
int startRow) = 0;
SkPngCodec(const SkEncodedInfo&, const SkImageInfo&, SkStream*, SkPngChunkReader*,
- png_structp, png_infop, int, int);
+ png_struct*, png_info*, int, int);
SkAutoTUnref<SkPngChunkReader> fPngChunkReader;
- png_structp fPng_ptr;
- png_infop fInfo_ptr;
+ png_struct* fPng_ptr;
+ png_info* fInfo_ptr;
// These are stored here so they can be used both by normal decoding and scanline decoding.
SkAutoTUnref<SkColorTable> fColorTable; // May be unpremul.
« no previous file with comments | « BUILD.gn ('k') | src/codec/SkPngCodec.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698