Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
skia
/
c8a66eb6335b4d92e052ebb37442baaa6c1e386e
/
.
/
gm
/
smallimage.cpp
blob: 6eb48d830d230612b6a3e2ccaefd63acdc3866ae [
file
] [
log
] [
blame
]
#include
"Resources.h"
#include
"gm.h"
DEF_SIMPLE_GM
(
small_image
,
canvas
,
8
,
8
)
{
SkBitmap
bitmap
;
if
(
GetResourceAsBitmap
(
"randPixels.png"
,
&
bitmap
))
{
canvas
->
drawBitmap
(
bitmap
,
0.0f
,
0.0f
);
}
else
{
SkDebugf
(
"\nCould not decode resource.\n"
);
}
}