blob: 509e849c6c3ad7ea80c4760652e8a2b19d9015cd [file] [log] [blame]
Hal Canary83c2f702019-03-07 14:53:03 -05001// 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=c093c2b14bd3e6171ede7cd4049d9b57
5REG_FIDDLE(Canvas_125, 256, 256, false, 3) {
6void draw(SkCanvas* canvas) {
7 // sk_sp<SkImage> image = mandrill;
8 SkRSXform xforms[] = { { 1, 0, 0, 0 }, {0, 1, 300, 100 } };
9 SkRect tex[] = { { 0, 0, 200, 200 }, { 200, 0, 400, 200 } };
10 canvas->drawAtlas(image, xforms, tex, 2, nullptr, nullptr);
11}
12} // END FIDDLE