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

Unified Diff: base/gfx/png_encoder.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 | « base/gfx/png_decoder.cc ('k') | third_party/libpng/libpng.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/gfx/png_encoder.cc
diff --git a/base/gfx/png_encoder.cc b/base/gfx/png_encoder.cc
index c34273613d4812d69ce974d5dfff37cb81a81cd3..10a60c64633d4adc5dc884663dfaa9fa10328ab8 100644
--- a/base/gfx/png_encoder.cc
+++ b/base/gfx/png_encoder.cc
@@ -10,7 +10,11 @@
#include "third_party/skia/include/core/SkUnPreMultiply.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 | « base/gfx/png_decoder.cc ('k') | third_party/libpng/libpng.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698