Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Functions
crbug_946965.cpp File Reference
#include "gm/gm.h"
#include "include/core/SkCanvas.h"
#include "include/core/SkPaint.h"
#include "include/core/SkRRect.h"
#include "include/core/SkRect.h"

Go to the source code of this file.

Functions

 DEF_SIMPLE_GM (crbug_946965, canvas, 75, 150)
 

Function Documentation

◆ DEF_SIMPLE_GM()

DEF_SIMPLE_GM ( crbug_946965  ,
canvas  ,
75  ,
150   
)

Definition at line 15 of file crbug_946965.cpp.

15 {
17 paint.setAntiAlias(true);
18 canvas->translate(25, 80);
19 canvas->rotate(90.f);
20 canvas->scale(1.5, 1);
21 SkRRect rrect = SkRRect::MakeRectXY(SkRect::MakeLTRB(-20, -5, 20, 5), 10, 10);
22 canvas->drawRRect(rrect, paint);
23 canvas->translate(0, -20);
24 paint.setStrokeWidth(3.f);
26 canvas->drawRRect(rrect, paint);
27}
@ kStroke_Style
set to stroke geometry
Definition SkPaint.h:194
static SkRRect MakeRectXY(const SkRect &rect, SkScalar xRad, SkScalar yRad)
Definition SkRRect.h:180
const Paint & paint
SkRRect rrect
Definition SkRecords.h:232
static constexpr SkRect MakeLTRB(float l, float t, float r, float b)
Definition SkRect.h:646