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

Unified Diff: debugger/SkDebugger.cpp

Issue 14678003: Force linking with image decoders for images project. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: respond to comment Created 7 years, 8 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 | gm/cmykjpeg.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: debugger/SkDebugger.cpp
diff --git a/debugger/SkDebugger.cpp b/debugger/SkDebugger.cpp
index 3a135798942787979f4e40422550ece7197aca97..1e39b8e351f556c1002df651862cfc2e4559b1dd 100644
--- a/debugger/SkDebugger.cpp
+++ b/debugger/SkDebugger.cpp
@@ -129,19 +129,3 @@ void SkDebugger::getOverviewText(const SkTDArray<double>* typeTimes,
overview->append("px");
}
-#include "SkImageDecoder.h"
-
-void forceLinking();
-void forceLinking() {
- // This function leaks, but that is okay because it is not intended
- // to be called. It is only here so that the linker will include the
- // decoders.
- SkDEBUGCODE(SkImageDecoder *creator = ) CreateJPEGImageDecoder();
- SkASSERT(creator);
- SkDEBUGCODE(creator = ) CreateWEBPImageDecoder();
- SkASSERT(creator);
-#if defined(SK_BUILD_FOR_UNIX) && !defined(SK_BUILD_FOR_NACL)
- SkDEBUGCODE(creator = ) CreateGIFImageDecoder();
- SkASSERT(creator);
-#endif
-}
« no previous file with comments | « no previous file | gm/cmykjpeg.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698