1 // 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 "tools/fiddle/examples.h" 4 // HASH=d06880c42f8bb3b4c3b67bd988046049 5 REG_FIDDLE(Bitmap_width, 256, 256, true, 0) { draw(SkCanvas * canvas)6void draw(SkCanvas* canvas) { 7 SkImageInfo info = SkImageInfo::MakeA8(16, 32); 8 SkBitmap bitmap; 9 bitmap.setInfo(info); 10 SkDebugf("bitmap width: %d info width: %d\n", bitmap.width(), info.width()); 11 } 12 } // END FIDDLE 13