Mike Klein | 98e38e2 | 2018-01-12 15:59:53 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2018 Google Inc. |
| 3 | * |
| 4 | * Use of this source code is governed by a BSD-style license that can be |
| 5 | * found in the LICENSE file. |
| 6 | */ |
| 7 | |
| 8 | #include "Resources.h" |
| 9 | #include "SkSurface.h" |
| 10 | #include "gm.h" |
| 11 | |
| 12 | DEF_SIMPLE_GM(makeRasterImage, canvas, 128,128) { |
Hal Canary | baa2a28 | 2018-11-26 15:34:12 -0500 | [diff] [blame] | 13 | if (auto img = GetResourceAsImage("images/color_wheel.png")) { |
| 14 | canvas->drawImage(img->makeRasterImage(), 0,0); |
| 15 | } |
Mike Klein | 98e38e2 | 2018-01-12 15:59:53 +0000 | [diff] [blame] | 16 | } |