Flutter Engine
The Flutter Engine
Classes | Namespaces | Functions
bigtileimagefilter.cpp File Reference
#include "gm/gm.h"
#include "include/core/SkCanvas.h"
#include "include/core/SkColor.h"
#include "include/core/SkImage.h"
#include "include/core/SkImageFilter.h"
#include "include/core/SkMatrix.h"
#include "include/core/SkPaint.h"
#include "include/core/SkRect.h"
#include "include/core/SkRefCnt.h"
#include "include/core/SkScalar.h"
#include "include/core/SkSize.h"
#include "include/core/SkString.h"
#include "include/core/SkSurface.h"
#include "include/effects/SkImageFilters.h"
#include <utility>

Go to the source code of this file.

Classes

class  skiagm::BigTileImageFilterGM
 

Namespaces

namespace  skiagm
 

Functions

static sk_sp< SkImagecreate_circle_texture (int size, SkColor color)
 

Function Documentation

◆ create_circle_texture()

static sk_sp< SkImage > create_circle_texture ( int  size,
SkColor  color 
)
static

Definition at line 25 of file bigtileimagefilter.cpp.

25 {
27 SkCanvas* canvas = surface->getCanvas();
28 canvas->clear(0xFF000000);
29
31 paint.setColor(color);
32 paint.setStrokeWidth(3);
34
36
37 return surface->makeImageSnapshot();
38}
#define SkScalarHalf(a)
Definition: SkScalar.h:75
void clear(SkColor color)
Definition: SkCanvas.h:1199
void drawCircle(SkScalar cx, SkScalar cy, SkScalar radius, const SkPaint &paint)
Definition: SkCanvas.cpp:2707
@ kStroke_Style
set to stroke geometry
Definition: SkPaint.h:194
const Paint & paint
Definition: color_source.cc:38
DlColor color
VkSurfaceKHR surface
Definition: main.cc:49
SK_API sk_sp< SkSurface > Raster(const SkImageInfo &imageInfo, size_t rowBytes, const SkSurfaceProps *surfaceProps)
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
Definition: switches.h:259
static SkImageInfo MakeN32Premul(int width, int height)