aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/drawatlas.cpp
diff options
context:
space:
mode:
authorGravatar halcanary <halcanary@google.com>2016-03-29 09:03:52 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-03-29 09:03:53 -0700
commit9d524f22bfde5dc3dc8f48e1be39bdebd3bb0304 (patch)
treefc75ea6f8bc83b552d9ac9c9b4ac0d5a967ee5ac /gm/drawatlas.cpp
parente577693b3be06d90c824538e7eac0b25b0e02a99 (diff)
Style bikeshed - remove extraneous whitespace
Diffstat (limited to 'gm/drawatlas.cpp')
-rw-r--r--gm/drawatlas.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/gm/drawatlas.cpp b/gm/drawatlas.cpp
index 334aba7af1..a906cbedeb 100644
--- a/gm/drawatlas.cpp
+++ b/gm/drawatlas.cpp
@@ -39,17 +39,17 @@ class DrawAtlasGM : public skiagm::GM {
public:
DrawAtlasGM() {}
-
+
protected:
-
+
SkString onShortName() override {
return SkString("draw-atlas");
}
-
+
SkISize onISize() override {
return SkISize::Make(640, 480);
}
-
+
void onDraw(SkCanvas* canvas) override {
const SkRect target = { 50, 50, 80, 90 };
if (nullptr == fAtlas) {
@@ -61,7 +61,7 @@ protected:
SkScalar fDegrees;
SkScalar fTx;
SkScalar fTy;
-
+
void apply(SkRSXform* xform) const {
const SkScalar rad = SkDegreesToRadians(fDegrees);
xform->fSCos = fScale * SkScalarCos(rad);
@@ -95,9 +95,8 @@ protected:
canvas->translate(0, 100);
canvas->drawAtlas(fAtlas.get(), xform, tex, colors, N, SkXfermode::kSrcIn_Mode, nullptr, &paint);
}
-
+
private:
typedef GM INHERITED;
};
DEF_GM( return new DrawAtlasGM; )
-