Flutter Engine
The Flutter Engine
Functions
skbug_4868.cpp File Reference
#include "gm/gm.h"
#include "include/core/SkCanvas.h"
#include "include/core/SkPaint.h"
#include "include/core/SkRect.h"

Go to the source code of this file.

Functions

 DEF_SIMPLE_GM (skbug_4868, canvas, 32, 32)
 

Function Documentation

◆ DEF_SIMPLE_GM()

DEF_SIMPLE_GM ( skbug_4868  ,
canvas  ,
32  ,
32   
)

Definition at line 15 of file skbug_4868.cpp.

15 {
16 canvas->translate(-68.0f, -3378.0f);
18 paint.setAntiAlias(true);
20 canvas->scale(0.56692914f, 0.56692914f);
21 SkRect rc = SkRect::MakeLTRB(158.0f, 5994.80273f, 165.0f, 5998.80225f);
22 canvas->clipRect(rc);
23 canvas->clear(0xFFCECFCE);
24 canvas->drawLine(rc.left(), rc.top(), rc.right(), rc.bottom(), paint);
25 canvas->drawLine(rc.right(), rc.top(), rc.left(), rc.bottom(), paint);
26}
@ kStroke_Style
set to stroke geometry
Definition: SkPaint.h:194
const Paint & paint
Definition: color_source.cc:38
static constexpr SkRect MakeLTRB(float l, float t, float r, float b)
Definition: SkRect.h:646