зеркало из https://github.com/mozilla/moz-skia.git
Sanitizing source files in Housekeeper-Nightly
git-svn-id: http://skia.googlecode.com/svn/trunk@10764 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
Родитель
1e973d725c
Коммит
c9917c0545
|
@ -14,7 +14,7 @@
|
|||
class WritePixelsBench : public SkBenchmark {
|
||||
public:
|
||||
WritePixelsBench(void* param, SkCanvas::Config8888 config)
|
||||
: INHERITED(param)
|
||||
: INHERITED(param)
|
||||
, fConfig(config)
|
||||
, fName("writepix") {
|
||||
switch (config) {
|
||||
|
@ -36,7 +36,7 @@ public:
|
|||
case SkCanvas::kRGBA_Unpremul_Config8888:
|
||||
fName.append("_rgba_UPM");
|
||||
break;
|
||||
default:
|
||||
default:
|
||||
SK_CRASH();
|
||||
break;
|
||||
}
|
||||
|
@ -74,4 +74,3 @@ private:
|
|||
|
||||
DEF_BENCH( return SkNEW_ARGS(WritePixelsBench, (p, SkCanvas::kRGBA_Premul_Config8888)); )
|
||||
DEF_BENCH( return SkNEW_ARGS(WritePixelsBench, (p, SkCanvas::kRGBA_Unpremul_Config8888)); )
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ static void test_quadstroke(SkCanvas* canvas) {
|
|||
path.quadTo(150, 150, 0, 6);
|
||||
|
||||
SkPaint paint;
|
||||
|
||||
|
||||
paint.setAntiAlias(true);
|
||||
paint.setStyle(SkPaint::kStroke_Style);
|
||||
canvas->translate(20, 20);
|
||||
|
@ -24,7 +24,7 @@ static void test_quadstroke(SkCanvas* canvas) {
|
|||
canvas->drawPath(path, paint);
|
||||
canvas->translate(100, 0);
|
||||
#endif
|
||||
|
||||
|
||||
paint.setStrokeWidth(1.01f);
|
||||
canvas->drawPath(path, paint);
|
||||
}
|
||||
|
|
|
@ -35,7 +35,7 @@ static inline bool normals_too_pinchy(const SkVector& norm0, SkVector& norm1) {
|
|||
static const int kMinSigBitsForDot = 8;
|
||||
static const SkScalar kDotEpsilon = FLT_EPSILON * (1 << kMinSigBitsForDot);
|
||||
static const SkScalar kTooPinchyNormalDotProd = kDotEpsilon - 1;
|
||||
|
||||
|
||||
// just some sanity asserts to help document the expected range
|
||||
SkASSERT(kTooPinchyNormalDotProd >= -1);
|
||||
SkASSERT(kTooPinchyNormalDotProd < SkDoubleToScalar(-0.999));
|
||||
|
|
Загрузка…
Ссылка в новой задаче