OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |