Flutter Engine
The Flutter Engine
Functions
crbug_691386.cpp File Reference
#include "gm/gm.h"
#include "include/core/SkCanvas.h"
#include "include/core/SkPaint.h"
#include "include/core/SkPath.h"
#include "include/core/SkString.h"
#include "include/utils/SkParsePath.h"

Go to the source code of this file.

Functions

 DEF_SIMPLE_GM_CAN_FAIL (crbug_691386, canvas, errorMsg, 256, 256)
 

Function Documentation

◆ DEF_SIMPLE_GM_CAN_FAIL()

DEF_SIMPLE_GM_CAN_FAIL ( crbug_691386  ,
canvas  ,
errorMsg  ,
256  ,
256   
)

Definition at line 15 of file crbug_691386.cpp.

15 {
17 if (!SkParsePath::FromSVGString("M -1 0 A 1 1 0 0 0 1 0 Z", &path)) {
18 *errorMsg = "Failed to parse path.";
20 }
21 SkPaint p;
22 p.setStyle(SkPaint::kStroke_Style);
23 p.setStrokeWidth(0.025f);
24 canvas->scale(96.0f, 96.0f);
25 canvas->translate(1.25f, 1.25f);
26 canvas->drawPath(path, p);
28}
@ kStroke_Style
set to stroke geometry
Definition: SkPaint.h:194
static bool FromSVGString(const char str[], SkPath *)
Definition: SkPath.h:59
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir path
Definition: switches.h:57