6d036c2e47
Currently running at http://108.170.220.126:8000/ BUG=skia: R=mtklein@google.com Author: jcgregorio@google.com Review URL: https://codereview.chromium.org/228693002 git-svn-id: http://skia.googlecode.com/svn/trunk@14114 2bbb7eff-a529-9590-31e7-b0007b416f81
29 lines
447 B
C++
29 lines
447 B
C++
#include "SkCanvas.h"
|
|
#include "SkData.h"
|
|
#include "SkForceLinking.h"
|
|
#include "SkGraphics.h"
|
|
#include "SkImageEncoder.h"
|
|
#include "SkImageInfo.h"
|
|
#include "SkStream.h"
|
|
#include "SkSurface.h"
|
|
|
|
|
|
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
|
|
|
|
}
|