blob: 78b14c513d471433b12e0bd9cb90198ab1c4db57 [file] [log] [blame]
// Copyright 2019 Google LLC.
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
#include "tools/fiddle/examples.h"
// HASH=96b4bc43b3667df9ba9e2dafb770d33c
REG_FIDDLE(Image_dimensions, 256, 256, true, 4) {
void draw(SkCanvas* canvas) {
SkISize dimensions = image->dimensions();
SkIRect bounds = image->bounds();
SkIRect dimensionsAsBounds = SkIRect::MakeSize(dimensions);
SkDebugf("dimensionsAsBounds %c= bounds\n", dimensionsAsBounds == bounds ? '=' : '!');
}
} // END FIDDLE