Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Bitmap_width.cpp
Go to the documentation of this file.
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.
4// HASH=d06880c42f8bb3b4c3b67bd988046049
5REG_FIDDLE(Bitmap_width, 256, 256, true, 0) {
6void draw(SkCanvas* canvas) {
9 bitmap.setInfo(info);
10 SkDebugf("bitmap width: %d info width: %d\n", bitmap.width(), info.width());
11}
12} // END FIDDLE
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
Definition DM.cpp:213
void SK_SPI SkDebugf(const char format[],...) SK_PRINTF_LIKE(1
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
Definition aaclip.cpp:27
#define REG_FIDDLE(NAME, W, H, TEXT, I)
Definition examples.h:60
static SkImageInfo MakeA8(int width, int height)