aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/bigrect.cpp
diff options
context:
space:
mode:
authorGravatar benjaminwagner <benjaminwagner@google.com>2016-03-07 09:09:19 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-03-07 09:09:19 -0800
commit54887a6a2e12b0f2c93e039b00678732b6518826 (patch)
treefb7e0202a9f17a7177d7ed547b840e07e0fde3b6 /gm/bigrect.cpp
parent095d31c8a0eeb5d491febf064bc3c8a44e22b94f (diff)
Revert of Add BigRectGM. (patchset #2 id:20001 of https://codereview.chromium.org/1758113005/ )
Reason for revert: Causing ASAN failures. (I had expected float-cast ASAN failures, which are disabled right now, but we're also seeing integer overflows.) Original issue's description: > Add BigRectGM. > > BUG=skia:5060 > GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1758113005 > > Committed: https://skia.googlesource.com/skia/+/a9101eef5ffc5f329a5edc75fd67441d868b0e9b TBR=mtklein@google.com # Skipping CQ checks because original CL landed less than 1 days ago. NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=skia:5060 Review URL: https://codereview.chromium.org/1773593005
Diffstat (limited to 'gm/bigrect.cpp')
-rw-r--r--gm/bigrect.cpp85
1 files changed, 0 insertions, 85 deletions
diff --git a/gm/bigrect.cpp b/gm/bigrect.cpp
deleted file mode 100644
index b7ac4c6f5d..0000000000
--- a/gm/bigrect.cpp
+++ /dev/null
@@ -1,85 +0,0 @@
-/*
- * Copyright 2016 Google Inc.
- *
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-
-#include "gm.h"
-
-DEF_SIMPLE_GM(bigrect, canvas, 35, 35) {
- static const SkScalar kBig = SkFloatToScalar(5e10f);
-
- SkPaint outlinePaint;
- outlinePaint.setColor(SK_ColorBLUE);
- outlinePaint.setStyle(SkPaint::kStroke_Style);
- outlinePaint.setStrokeWidth(0);
-
- SkPaint outOfBoundsPaint;
- outOfBoundsPaint.setColor(SK_ColorRED);
- outOfBoundsPaint.setStyle(SkPaint::kStroke_Style);
- outOfBoundsPaint.setStrokeWidth(0);
-
- // Looks like this:
- // +-+-+--+-+------+
- // | | | | | +---+
- // | +-+ | | +---+
- // | | | |
- // +------+-+------+
- // +------+-+------+
- // | | | |
- // +---+ | | +-+ |
- // +---+ | | | | |
- // +------+-+--+-+-+
-
- SkRect tl = SkRect::MakeLTRB(SkIntToScalar(5),
- -kBig,
- SkIntToScalar(10),
- SkIntToScalar(10));
- canvas->drawRect(tl, outlinePaint);
-
- SkRect tr = SkRect::MakeLTRB(SkIntToScalar(25),
- SkIntToScalar(5),
- kBig,
- SkIntToScalar(10));
- canvas->drawRect(tr, outlinePaint);
-
- SkRect br = SkRect::MakeLTRB(SkIntToScalar(25),
- SkIntToScalar(25),
- SkIntToScalar(30),
- kBig);
- canvas->drawRect(br, outlinePaint);
-
- SkRect bl = SkRect::MakeLTRB(-kBig,
- SkIntToScalar(25),
- SkIntToScalar(10),
- SkIntToScalar(30));
- canvas->drawRect(bl, outlinePaint);
-
- SkRect horiz = SkRect::MakeLTRB(-kBig,
- SkIntToScalar(15),
- kBig,
- SkIntToScalar(20));
- canvas->drawRect(horiz, outlinePaint);
-
- SkRect vert = SkRect::MakeLTRB(SkIntToScalar(15),
- -kBig,
- SkIntToScalar(20),
- kBig);
- canvas->drawRect(vert, outlinePaint);
-
- SkRect leftBorder = SkRect::MakeLTRB(-2, -1, 0, 35);
- canvas->drawRect(leftBorder, outlinePaint);
-
- SkRect topBorder = SkRect::MakeLTRB(-1, -2, 35, 0);
- canvas->drawRect(topBorder, outlinePaint);
-
- SkRect rightBorder = SkRect::MakeLTRB(34, -1, 36, 35);
- canvas->drawRect(rightBorder, outlinePaint);
-
- SkRect bottomBorder = SkRect::MakeLTRB(-1, 34, 35, 36);
- canvas->drawRect(bottomBorder, outlinePaint);
-
- SkRect outOfBounds = SkRect::MakeLTRB(-1, -1, 35, 35);
- canvas->drawRect(outOfBounds, outOfBoundsPaint);
-}