Flutter Engine
The Flutter Engine
makeRasterImage_fail.cpp
Go to the documentation of this file.
1// Copyright 2020 Google LLC.
2// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
4REG_FIDDLE(makeRasterImage_fail, 256, 256, false, 5) {
5void draw(SkCanvas* canvas) { canvas->drawImage(image->makeRasterImage(), 0, 0); }
6} // END FIDDLE
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
Definition: aaclip.cpp:27
void drawImage(const SkImage *image, SkScalar left, SkScalar top)
Definition: SkCanvas.h:1528
sk_sp< SkImage > makeRasterImage(GrDirectContext *, CachingHint cachingHint=kDisallow_CachingHint) const
Definition: SkImage.cpp:267
REG_FIDDLE(makeRasterImage_fail, 256, 256, false, 5)
sk_sp< const SkImage > image
Definition: SkRecords.h:269