Hal Canary | 8751512 | 2019-03-15 14:22:51 -0400 | [diff] [blame^] | 1 | // Copyright 2019 Google LLC. |
| 2 | // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. |
| 3 | #include "fiddle/examples.h" |
| 4 | // HASH=d06880c42f8bb3b4c3b67bd988046049 |
| 5 | REG_FIDDLE(Bitmap_009, 256, 256, true, 0) { |
| 6 | void draw(SkCanvas* canvas) { |
| 7 | SkImageInfo info = SkImageInfo::MakeA8(16, 32); |
| 8 | SkBitmap bitmap; |
| 9 | bitmap.setInfo(info); |
| 10 | SkDebugf("bitmap width: %d info width: %d\n", bitmap.width(), info.width()); |
| 11 | } |
| 12 | } // END FIDDLE |