Change some more GMs to clear to opaque black, not transparent black.
N.B.: this will change results on the bots for all the tests modified. BUG=skia:3319 Review URL: https://codereview.chromium.org/1077763002
This commit is contained in:
parent
2df6fd650c
commit
16b254a200
@ -68,7 +68,7 @@ protected:
|
|||||||
make_bitmaps();
|
make_bitmaps();
|
||||||
fInitialized = true;
|
fInitialized = true;
|
||||||
}
|
}
|
||||||
canvas->clear(0x00000000);
|
canvas->clear(SK_ColorBLACK);
|
||||||
SkPaint paint;
|
SkPaint paint;
|
||||||
SkAutoTUnref<SkImageFilter> displ(SkBitmapSource::Create(fCheckerboard));
|
SkAutoTUnref<SkImageFilter> displ(SkBitmapSource::Create(fCheckerboard));
|
||||||
paint.setImageFilter(SkDisplacementMapEffect::Create(
|
paint.setImageFilter(SkDisplacementMapEffect::Create(
|
||||||
|
@ -68,7 +68,7 @@ protected:
|
|||||||
this->make_gradient_circle(64, 64);
|
this->make_gradient_circle(64, 64);
|
||||||
fInitialized = true;
|
fInitialized = true;
|
||||||
}
|
}
|
||||||
canvas->clear(0x00000000);
|
canvas->clear(SK_ColorBLACK);
|
||||||
|
|
||||||
SkAutoTUnref<SkImageFilter> gradient(SkBitmapSource::Create(fGradientCircle));
|
SkAutoTUnref<SkImageFilter> gradient(SkBitmapSource::Create(fGradientCircle));
|
||||||
SkAutoTUnref<SkImageFilter> checkerboard(SkBitmapSource::Create(fCheckerboard));
|
SkAutoTUnref<SkImageFilter> checkerboard(SkBitmapSource::Create(fCheckerboard));
|
||||||
|
@ -68,7 +68,7 @@ protected:
|
|||||||
this->make_gradient_circle(64, 64);
|
this->make_gradient_circle(64, 64);
|
||||||
fInitialized = true;
|
fInitialized = true;
|
||||||
}
|
}
|
||||||
canvas->clear(0x00000000);
|
canvas->clear(SK_ColorBLACK);
|
||||||
|
|
||||||
SkAutoTUnref<SkImageFilter> gradient(SkBitmapSource::Create(fGradientCircle));
|
SkAutoTUnref<SkImageFilter> gradient(SkBitmapSource::Create(fGradientCircle));
|
||||||
SkAutoTUnref<SkImageFilter> checkerboard(SkBitmapSource::Create(fCheckerboard));
|
SkAutoTUnref<SkImageFilter> checkerboard(SkBitmapSource::Create(fCheckerboard));
|
||||||
|
@ -84,7 +84,7 @@ protected:
|
|||||||
make_bitmap();
|
make_bitmap();
|
||||||
fInitialized = true;
|
fInitialized = true;
|
||||||
}
|
}
|
||||||
canvas->clear(0x00000000);
|
canvas->clear(SK_ColorBLACK);
|
||||||
SkIPoint kernelOffset = SkIPoint::Make(1, 0);
|
SkIPoint kernelOffset = SkIPoint::Make(1, 0);
|
||||||
for (int x = 10; x < 310; x += 100) {
|
for (int x = 10; x < 310; x += 100) {
|
||||||
this->draw(canvas, x, 10, kernelOffset, MCIF::kClamp_TileMode, true);
|
this->draw(canvas, x, 10, kernelOffset, MCIF::kClamp_TileMode, true);
|
||||||
|
@ -58,7 +58,7 @@ protected:
|
|||||||
}
|
}
|
||||||
|
|
||||||
virtual void onDraw(SkCanvas* canvas) {
|
virtual void onDraw(SkCanvas* canvas) {
|
||||||
canvas->clear(0x00000000);
|
canvas->clear(SK_ColorBLACK);
|
||||||
SkMatrix matrix;
|
SkMatrix matrix;
|
||||||
SkScalar margin = SkIntToScalar(10);
|
SkScalar margin = SkIntToScalar(10);
|
||||||
matrix.setSkew(SkDoubleToScalar(0.5), SkDoubleToScalar(0.2));
|
matrix.setSkew(SkDoubleToScalar(0.5), SkDoubleToScalar(0.2));
|
||||||
|
@ -77,7 +77,7 @@ protected:
|
|||||||
|
|
||||||
fInitialized = true;
|
fInitialized = true;
|
||||||
}
|
}
|
||||||
canvas->clear(0x00000000);
|
canvas->clear(SK_ColorBLACK);
|
||||||
SkPaint paint;
|
SkPaint paint;
|
||||||
|
|
||||||
for (int i = 0; i < 4; i++) {
|
for (int i = 0; i < 4; i++) {
|
||||||
|
@ -58,7 +58,7 @@ protected:
|
|||||||
}
|
}
|
||||||
|
|
||||||
virtual void onDraw(SkCanvas* canvas) {
|
virtual void onDraw(SkCanvas* canvas) {
|
||||||
canvas->clear(0x00000000);
|
canvas->clear(SK_ColorBLACK);
|
||||||
test(canvas, 0, 0, SkPerlinNoiseShader::kFractalNoise_Type,
|
test(canvas, 0, 0, SkPerlinNoiseShader::kFractalNoise_Type,
|
||||||
0.1f, 0.1f, 0, 0, false);
|
0.1f, 0.1f, 0, 0, false);
|
||||||
test(canvas, 100, 0, SkPerlinNoiseShader::kTurbulence_Type,
|
test(canvas, 100, 0, SkPerlinNoiseShader::kTurbulence_Type,
|
||||||
|
@ -59,7 +59,7 @@ protected:
|
|||||||
}
|
}
|
||||||
|
|
||||||
virtual void onDraw(SkCanvas* canvas) {
|
virtual void onDraw(SkCanvas* canvas) {
|
||||||
canvas->clear(0x00000000);
|
canvas->clear(SK_ColorBLACK);
|
||||||
|
|
||||||
SkRect srcRect = SkRect::MakeWH(96, 96);
|
SkRect srcRect = SkRect::MakeWH(96, 96);
|
||||||
|
|
||||||
|
@ -56,7 +56,7 @@ protected:
|
|||||||
|
|
||||||
fInitialized = true;
|
fInitialized = true;
|
||||||
}
|
}
|
||||||
canvas->clear(0x00000000);
|
canvas->clear(SK_ColorBLACK);
|
||||||
|
|
||||||
int x = 0, y = 0;
|
int x = 0, y = 0;
|
||||||
for (size_t i = 0; i < 4; i++) {
|
for (size_t i = 0; i < 4; i++) {
|
||||||
|
@ -74,7 +74,7 @@ protected:
|
|||||||
}
|
}
|
||||||
|
|
||||||
void onDraw(SkCanvas* canvas) override {
|
void onDraw(SkCanvas* canvas) override {
|
||||||
canvas->clear(0x00000000);
|
canvas->clear(SK_ColorBLACK);
|
||||||
SkPaint paint;
|
SkPaint paint;
|
||||||
|
|
||||||
const struct {
|
const struct {
|
||||||
|
Loading…
Reference in New Issue
Block a user