Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(322)

Unified Diff: gm/drawatlas.cpp

Issue 1842753002: Style bikeshed - remove extraneous whitespace (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gm/distantclip.cpp ('k') | gm/drawatlascolor.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/drawatlas.cpp
diff --git a/gm/drawatlas.cpp b/gm/drawatlas.cpp
index 334aba7af18d7549962a04d8c885c85ae1f85d22..a906cbedeba9f2a97f80dbbbeb92321afb7ce91a 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; )
-
« no previous file with comments | « gm/distantclip.cpp ('k') | gm/drawatlascolor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698