| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2003, 2006 Apple Computer, Inc. All rights reserved. | 2 * Copyright (C) 2003, 2006 Apple Computer, Inc. All rights reserved. |
| 3 * 2006 Rob Buis <buis@kde.org> | 3 * 2006 Rob Buis <buis@kde.org> |
| 4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> | 4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> |
| 5 * Copyright (C) 2013 Google Inc. All rights reserved. | 5 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 6 * Copyright (C) 2013 Intel Corporation. All rights reserved. | 6 * Copyright (C) 2013 Intel Corporation. All rights reserved. |
| 7 * | 7 * |
| 8 * Redistribution and use in source and binary forms, with or without | 8 * Redistribution and use in source and binary forms, with or without |
| 9 * modification, are permitted provided that the following conditions | 9 * modification, are permitted provided that the following conditions |
| 10 * are met: | 10 * are met: |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 */ | 28 */ |
| 29 | 29 |
| 30 #include "platform/graphics/Path.h" | 30 #include "platform/graphics/Path.h" |
| 31 | 31 |
| 32 #include <math.h> | 32 #include <math.h> |
| 33 #include "platform/geometry/FloatPoint.h" | 33 #include "platform/geometry/FloatPoint.h" |
| 34 #include "platform/geometry/FloatRect.h" | 34 #include "platform/geometry/FloatRect.h" |
| 35 #include "platform/graphics/GraphicsContext.h" | 35 #include "platform/graphics/GraphicsContext.h" |
| 36 #include "platform/graphics/skia/SkiaUtils.h" | 36 #include "platform/graphics/skia/SkiaUtils.h" |
| 37 #include "platform/transforms/AffineTransform.h" | 37 #include "platform/transforms/AffineTransform.h" |
| 38 #include "platform/wtf/MathExtras.h" |
| 38 #include "third_party/skia/include/pathops/SkPathOps.h" | 39 #include "third_party/skia/include/pathops/SkPathOps.h" |
| 39 #include "wtf/MathExtras.h" | |
| 40 | 40 |
| 41 namespace blink { | 41 namespace blink { |
| 42 | 42 |
| 43 Path::Path() : m_path() {} | 43 Path::Path() : m_path() {} |
| 44 | 44 |
| 45 Path::Path(const Path& other) { | 45 Path::Path(const Path& other) { |
| 46 m_path = SkPath(other.m_path); | 46 m_path = SkPath(other.m_path); |
| 47 } | 47 } |
| 48 | 48 |
| 49 Path::Path(const SkPath& other) { | 49 Path::Path(const SkPath& other) { |
| (...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 545 } | 545 } |
| 546 | 546 |
| 547 #if DCHECK_IS_ON() | 547 #if DCHECK_IS_ON() |
| 548 bool ellipseIsRenderable(float startAngle, float endAngle) { | 548 bool ellipseIsRenderable(float startAngle, float endAngle) { |
| 549 return (std::abs(endAngle - startAngle) < twoPiFloat) || | 549 return (std::abs(endAngle - startAngle) < twoPiFloat) || |
| 550 WebCoreFloatNearlyEqual(std::abs(endAngle - startAngle), twoPiFloat); | 550 WebCoreFloatNearlyEqual(std::abs(endAngle - startAngle), twoPiFloat); |
| 551 } | 551 } |
| 552 #endif | 552 #endif |
| 553 | 553 |
| 554 } // namespace blink | 554 } // namespace blink |
| OLD | NEW |