blob: 704e0499e7e56ecb3afeb3f182eb41de4c6b04d5 [file] [log] [blame]
Mike Klein98e38e22018-01-12 15:59:53 +00001/*
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
Mike Kleinc0bd9f92019-04-23 12:05:21 -05008#include "gm/gm.h"
Ben Wagner7fde8e12019-05-01 17:28:53 -04009#include "include/core/SkCanvas.h"
10#include "include/core/SkImage.h"
11#include "include/core/SkRefCnt.h"
Mike Kleinc0bd9f92019-04-23 12:05:21 -050012#include "tools/Resources.h"
Mike Klein98e38e22018-01-12 15:59:53 +000013
14DEF_SIMPLE_GM(makeRasterImage, canvas, 128,128) {
Hal Canarybaa2a282018-11-26 15:34:12 -050015 if (auto img = GetResourceAsImage("images/color_wheel.png")) {
16 canvas->drawImage(img->makeRasterImage(), 0,0);
17 }
Mike Klein98e38e22018-01-12 15:59:53 +000018}