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

Side by Side Diff: gm/cmykjpeg.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 | « debugger/SkDebugger.cpp ('k') | gyp/images.gyp » ('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 * Copyright 2012 Google Inc. 2 * Copyright 2012 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #include "gm.h" 8 #include "gm.h"
9 #include "SkCanvas.h" 9 #include "SkCanvas.h"
10 #include "SkImageDecoder.h" 10 #include "SkImageDecoder.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 canvas->translate(20*SK_Scalar1, 20*SK_Scalar1); 57 canvas->translate(20*SK_Scalar1, 20*SK_Scalar1);
58 canvas->drawBitmap(fBitmap, 0, 0); 58 canvas->drawBitmap(fBitmap, 0, 0);
59 } 59 }
60 60
61 private: 61 private:
62 SkBitmap fBitmap; 62 SkBitmap fBitmap;
63 63
64 typedef GM INHERITED; 64 typedef GM INHERITED;
65 }; 65 };
66 66
67 void forceLinking();
68
69 void forceLinking() {
70 SkDEBUGCODE(SkImageDecoder *creator = ) CreateJPEGImageDecoder();
71 SkASSERT(creator);
72 }
73
74 ////////////////////////////////////////////////////////////////////////////// 67 //////////////////////////////////////////////////////////////////////////////
75 68
76 static GM* MyFactory(void*) { return new CMYKJpegGM; } 69 static GM* MyFactory(void*) { return new CMYKJpegGM; }
77 static GMRegistry reg(MyFactory); 70 static GMRegistry reg(MyFactory);
78 71
79 } 72 }
OLDNEW
« no previous file with comments | « debugger/SkDebugger.cpp ('k') | gyp/images.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698