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