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

Side by Side 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, 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | gm/cmykjpeg.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2012 Google Inc. 3 * Copyright 2012 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 #include "SkDebugger.h" 9 #include "SkDebugger.h"
10 #include "SkString.h" 10 #include "SkString.h"
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 122
123 overview->append("<br/>"); 123 overview->append("<br/>");
124 overview->append("SkPicture Width: "); 124 overview->append("SkPicture Width: ");
125 overview->appendS32(pictureWidth()); 125 overview->appendS32(pictureWidth());
126 overview->append("px<br/>"); 126 overview->append("px<br/>");
127 overview->append("SkPicture Height: "); 127 overview->append("SkPicture Height: ");
128 overview->appendS32(pictureHeight()); 128 overview->appendS32(pictureHeight());
129 overview->append("px"); 129 overview->append("px");
130 } 130 }
131 131
132 #include "SkImageDecoder.h"
133
134 void forceLinking();
135 void forceLinking() {
136 // This function leaks, but that is okay because it is not intended
137 // to be called. It is only here so that the linker will include the
138 // decoders.
139 SkDEBUGCODE(SkImageDecoder *creator = ) CreateJPEGImageDecoder();
140 SkASSERT(creator);
141 SkDEBUGCODE(creator = ) CreateWEBPImageDecoder();
142 SkASSERT(creator);
143 #if defined(SK_BUILD_FOR_UNIX) && !defined(SK_BUILD_FOR_NACL)
144 SkDEBUGCODE(creator = ) CreateGIFImageDecoder();
145 SkASSERT(creator);
146 #endif
147 }
OLDNEW
« 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