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 463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
474 m_path.addPath(src.skPath(), affineTransformToSkMatrix(transform)); | 474 m_path.addPath(src.skPath(), affineTransformToSkMatrix(transform)); |
475 } | 475 } |
476 | 476 |
477 void Path::translate(const FloatSize& size) | 477 void Path::translate(const FloatSize& size) |
478 { | 478 { |
479 m_path.offset(WebCoreFloatToSkScalar(size.width()), WebCoreFloatToSkScalar(s
ize.height())); | 479 m_path.offset(WebCoreFloatToSkScalar(size.width()), WebCoreFloatToSkScalar(s
ize.height())); |
480 } | 480 } |
481 | 481 |
482 bool Path::subtractPath(const Path& other) | 482 bool Path::subtractPath(const Path& other) |
483 { | 483 { |
484 return Op(m_path, other.m_path, kDifference_PathOp, &m_path); | 484 return Op(m_path, other.m_path, kDifference_SkPathOp, &m_path); |
485 } | 485 } |
486 | 486 |
487 bool Path::intersectPath(const Path& other) | 487 bool Path::intersectPath(const Path& other) |
488 { | 488 { |
489 return Op(m_path, other.m_path, kIntersect_PathOp, &m_path); | 489 return Op(m_path, other.m_path, kIntersect_SkPathOp, &m_path); |
490 } | 490 } |
491 | 491 |
492 bool Path::unionPath(const Path& other) | 492 bool Path::unionPath(const Path& other) |
493 { | 493 { |
494 return Op(m_path, other.m_path, kUnion_PathOp, &m_path); | 494 return Op(m_path, other.m_path, kUnion_SkPathOp, &m_path); |
495 } | 495 } |
496 | 496 |
497 #if ENABLE(ASSERT) | 497 #if ENABLE(ASSERT) |
498 bool ellipseIsRenderable(float startAngle, float endAngle) | 498 bool ellipseIsRenderable(float startAngle, float endAngle) |
499 { | 499 { |
500 return (std::abs(endAngle - startAngle) < twoPiFloat) | 500 return (std::abs(endAngle - startAngle) < twoPiFloat) |
501 || WebCoreFloatNearlyEqual(std::abs(endAngle - startAngle), twoPiFloat); | 501 || WebCoreFloatNearlyEqual(std::abs(endAngle - startAngle), twoPiFloat); |
502 } | 502 } |
503 #endif | 503 #endif |
504 | 504 |
505 } // namespace blink | 505 } // namespace blink |
OLD | NEW |