skia2/gm/hugepath.cpp
Mike Reed d284949b59 restore intersect methods to use old-style empty-checks on their inputs
Bug introduced when we made isEmpty check for int32_t width/height

Bug:800804
Change-Id: I59799c88fb02f176c1545dd0edae050b510df079
Reviewed-on: https://skia-review.googlesource.com/93302
Reviewed-by: Florin Malita <fmalita@chromium.org>
Commit-Queue: Mike Reed <reed@google.com>
2018-01-10 20:39:33 +00:00

29 lines
647 B
C++

/*
* Copyright 2018 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"
#include "SkCanvas.h"
#include "SkPath.h"
DEF_SIMPLE_GM(path_huge_crbug_800804, canvas, 30, 600) {
SkPaint paint;
paint.setAntiAlias(true);
paint.setStyle(SkPaint::kStroke_Style);
paint.setStrokeWidth(1);
SkPath path;
path.moveTo(-1000,12345678901234567890.f);
path.lineTo(10.5f,200);
canvas->drawPath(path, paint);
path.reset();
path.moveTo(20.5f,400);
path.lineTo(1000,-9.8765432109876543210e+19f);
canvas->drawPath(path, paint);
}