blob: cc1c2f6516d6be93d291ce9b87e1b58325fc0f6e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#include "SkCanvas.h"
#include "SkData.h"
#include "SkForceLinking.h"
#include "SkGraphics.h"
#include "SkImageEncoder.h"
#include "SkImageInfo.h"
#include "SkStream.h"
#include "SkSurface.h"
SkBitmap source;
void draw(SkCanvas* canvas) {
#line 1
SkPaint p;
#line 2
p.setColor(SK_ColorRED);
#line 3
p.setAntiAlias(true);
#line 4
p.setStyle(SkPaint::kStroke_Style);
#line 5
p.setStrokeWidth(10);
#line 6
#line 7
canvas->drawLine(20, 20, 100, 100, p);
#line 8
}
|