1cb93a386Sopenharmony_ci// Copyright 2019 Google LLC.
2cb93a386Sopenharmony_ci// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
3cb93a386Sopenharmony_ci#include "tools/fiddle/examples.h"
4cb93a386Sopenharmony_ci// HASH=53c212c4f2449df0b0eedbc6227b6ab7
5cb93a386Sopenharmony_ciREG_FIDDLE(ImageInfo_equal1_operator, 256, 256, true, 0) {
6cb93a386Sopenharmony_civoid draw(SkCanvas* canvas) {
7cb93a386Sopenharmony_ci    SkImageInfo info1 = SkImageInfo::Make(10, 20, kGray_8_SkColorType, kPremul_SkAlphaType);
8cb93a386Sopenharmony_ci    SkImageInfo info2 = SkImageInfo::Make(20, 10, kAlpha_8_SkColorType, kUnpremul_SkAlphaType);
9cb93a386Sopenharmony_ci    SkDebugf("info1 %c= info2\n", info1 == info2 ? '=' : '!');
10cb93a386Sopenharmony_ci    info2 = info2.makeWH(10, 20);
11cb93a386Sopenharmony_ci    SkDebugf("info1 %c= info2\n", info1 == info2 ? '=' : '!');
12cb93a386Sopenharmony_ci    info2 = info2.makeColorType(kGray_8_SkColorType);
13cb93a386Sopenharmony_ci    SkDebugf("info1 %c= info2\n", info1 == info2 ? '=' : '!');
14cb93a386Sopenharmony_ci    info2 = info2.makeAlphaType(kPremul_SkAlphaType);
15cb93a386Sopenharmony_ci    SkDebugf("info1 %c= info2\n", info1 == info2 ? '=' : '!');
16cb93a386Sopenharmony_ci}
17cb93a386Sopenharmony_ci}  // END FIDDLE
18