OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2014 Google Inc. | 3 * Copyright 2014 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 #include "gm.h" | 8 #include "gm.h" |
9 | 9 |
10 #include "Resources.h" | 10 #include "Resources.h" |
11 #include "SkBitmap.h" | 11 #include "SkBitmap.h" |
12 #include "SkImageDecoder.h" | |
13 #include "SkPaint.h" | 12 #include "SkPaint.h" |
14 #include "SkShader.h" | 13 #include "SkShader.h" |
15 #include "SkStream.h" | 14 #include "SkStream.h" |
16 | 15 |
17 | 16 |
18 /*** | 17 /*** |
19 * | 18 * |
20 * This GM reproduces Skia bug 2904, in which a tiled bitmap shader was failing
to draw correctly | 19 * This GM reproduces Skia bug 2904, in which a tiled bitmap shader was failing
to draw correctly |
21 * when fractional image scaling was ignored by the high quality bitmap scaler. | 20 * when fractional image scaling was ignored by the high quality bitmap scaler. |
22 * | 21 * |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 private: | 73 private: |
75 SkBitmap fBitmap; | 74 SkBitmap fBitmap; |
76 | 75 |
77 typedef GM INHERITED; | 76 typedef GM INHERITED; |
78 }; | 77 }; |
79 | 78 |
80 ////////////////////////////////////////////////////////////////////////////// | 79 ////////////////////////////////////////////////////////////////////////////// |
81 | 80 |
82 DEF_GM(return new TiledScaledBitmapGM;) | 81 DEF_GM(return new TiledScaledBitmapGM;) |
83 } | 82 } |
OLD | NEW |