blob: 6d974cf21f563e41b055c060ba476c7f71cf33d0 [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=c6b0f6a3f493cb08d9abcdefe12de245
5REG_FIDDLE(ImageInfo_050, 256, 256, true, 0) {
6void draw(SkCanvas* canvas) {
7 SkImageInfo info = SkImageInfo::MakeN32Premul(16, 8);
8 for (size_t rowBytes = 60; rowBytes < 72; rowBytes += sizeof(SkPMColor)) {
9 SkDebugf("validRowBytes(%llu): %s\n", rowBytes, info.validRowBytes(rowBytes) ?
10 "true" : "false");
11 }
12}
13} // END FIDDLE