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

Unified Diff: base/gfx/png_decoder.cc

Issue 159229: Linux: add GYP variable to use the system libpng. (Closed)
Patch Set: updated to (hopefully) final style Created 11 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 | base/gfx/png_encoder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/gfx/png_decoder.cc
diff --git a/base/gfx/png_decoder.cc b/base/gfx/png_decoder.cc
index fe0bf8938460ac87843b57436e50979b45e2e20c..5b27ed80583a7627ba05f91c26c832770860cbdb 100644
--- a/base/gfx/png_decoder.cc
+++ b/base/gfx/png_decoder.cc
@@ -8,7 +8,11 @@
#include "third_party/skia/include/core/SkBitmap.h"
extern "C" {
+#if defined(USE_SYSTEM_LIBPNG)
+#include <png.h>
+#else
#include "third_party/libpng/png.h"
+#endif
}
namespace {
« no previous file with comments | « no previous file | base/gfx/png_encoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698