Make exoticformats GM a bit easier to triage
This makes it easier to see the red stroke around decompressed images.
Change-Id: I937dca205e0d1966ac0df27f4a8943850ddb54ff
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/268307
Reviewed-by: Greg Daniel <egdaniel@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
diff --git a/gm/exoticformats.cpp b/gm/exoticformats.cpp
index 35a179f..330c743 100644
--- a/gm/exoticformats.cpp
+++ b/gm/exoticformats.cpp
@@ -321,7 +321,7 @@
class ExoticFormatsGM : public GM {
public:
ExoticFormatsGM() {
- this->setBGColor(0xFFCCCCCC);
+ this->setBGColor(SK_ColorBLACK);
}
protected:
@@ -330,7 +330,7 @@
}
SkISize onISize() override {
- return SkISize::Make(2*kImgWidthHeight, kImgWidthHeight);
+ return SkISize::Make(2*kImgWidthHeight + 3 * kPad, kImgWidthHeight + 2 * kPad);
}
void loadImages(GrContext *context) {
@@ -386,6 +386,7 @@
SkPaint paint;
paint.setColor(SK_ColorRED);
paint.setStyle(SkPaint::kStroke_Style);
+ paint.setStrokeWidth(2.0f);
canvas->drawRect(r, paint);
}
}
@@ -395,12 +396,13 @@
this->loadImages(context);
- this->drawImage(context, canvas, fETC1Image.get(), 0, 0);
- this->drawImage(context, canvas, fBC1Image.get(), kImgWidthHeight, 0);
+ this->drawImage(context, canvas, fETC1Image.get(), kPad, kPad);
+ this->drawImage(context, canvas, fBC1Image.get(), kImgWidthHeight + 2 * kPad, kPad);
}
private:
static const int kImgWidthHeight = 128;
+ static const int kPad = 4;
sk_sp<SkImage> fETC1Image;
sk_sp<SkImage> fBC1Image;