30#if defined(SK_GRAPHITE)
57 font.setSubpixel(
true);
60 const char*
text =
"Skia";
74 yOffset +=
bounds.height();
81 yOffset +=
bounds.height();
88 yOffset +=
bounds.height();
95 yOffset +=
bounds.height();
106 fUseDFT ?
"_df" :
"");
117#if defined(SK_GRAPHITE)
118 auto recorder = inputCanvas->
recorder();
132#if defined(SK_GRAPHITE)
160 paint.setAntiAlias(
false);
169 for (
int i = 0;
i < 4;
i++) {
186 if ((
bounds.width() + 2 * kPadX) * rowCount > kWidth) {
207 static constexpr int kWidth = 2100;
208 static constexpr int kHeight = 1900;
212 using INHERITED =
GM;
217DEF_GM(
return new TextBlobMixedSizes(
false); )
218DEF_GM(
return new TextBlobMixedSizes(
true); )
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
@ kPremul_SkAlphaType
pixel components are premultiplied by alpha
@ kNormal_SkBlurStyle
fuzzy inside and outside
constexpr SkColor SK_ColorBLACK
constexpr SkColor SK_ColorWHITE
@ kUTF8
uses bytes to represent UTF-8 or ASCII
#define SkScalarFloorToInt(x)
SK_API SkString SkStringPrintf(const char *format,...) SK_PRINTF_LIKE(1
Creates a new string and writes into it using a printf()-style format.
static SkScalar SK_SPI ConvertRadiusToSigma(SkScalar radius)
bool getProps(SkSurfaceProps *props) const
void translate(SkScalar dx, SkScalar dy)
void drawColor(SkColor color, SkBlendMode mode=SkBlendMode::kSrcOver)
virtual GrRecordingContext * recordingContext() const
virtual skgpu::graphite::Recorder * recorder() const
virtual SkISize getBaseLayerSize() const
void rotate(SkScalar degrees)
SkMatrix getTotalMatrix() const
void setMatrix(const SkM44 &matrix)
SkImageInfo imageInfo() const
void drawTextBlob(const SkTextBlob *blob, SkScalar x, SkScalar y, const SkPaint &paint)
void drawImage(const SkImage *image, SkScalar left, SkScalar top)
@ kSubpixelAntiAlias
glyph positioned in pixel using transparency
static sk_sp< SkMaskFilter > MakeBlur(SkBlurStyle style, SkScalar sigma, bool respectCTM=true)
void setColor(SkColor color)
void setMaskFilter(sk_sp< SkMaskFilter > maskFilter)
@ kUseDeviceIndependentFonts_Flag
SkPixelGeometry pixelGeometry() const
const SkRect & bounds() const
GM(SkColor backgroundColor=SK_ColorWHITE)
void onDraw(SkCanvas *inputCanvas) override
TextBlobMixedSizes(bool useDFT)
SkString getName() const override
void onOnceBeforeDraw() override
SkISize getISize() override
Optional< SkRect > bounds
SK_API sk_sp< SkSurface > RenderTarget(GrRecordingContext *context, skgpu::Budgeted budgeted, const SkImageInfo &imageInfo, int sampleCount, GrSurfaceOrigin surfaceOrigin, const SkSurfaceProps *surfaceProps, bool shouldCreateWithMips=false, bool isProtected=false)
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
font
Font Metadata and Metrics.
DEF_GM(return F(C(clipbox), 0.0f, 0.0f, {})) DEF_GM(return F(C(clipbox)
static constexpr SkISize Make(int32_t w, int32_t h)
sk_sp< SkColorSpace > refColorSpace() const
static SkImageInfo MakeN32(int width, int height, SkAlphaType at)