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 * | 6 * |
7 * Redistribution and use in source and binary forms, with or without | 7 * Redistribution and use in source and binary forms, with or without |
8 * modification, are permitted provided that the following conditions | 8 * modification, are permitted provided that the following conditions |
9 * are met: | 9 * are met: |
10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
(...skipping 20 matching lines...) Expand all Loading... |
31 | 31 |
32 #include <math.h> | 32 #include <math.h> |
33 #include "core/platform/graphics/FloatPoint.h" | 33 #include "core/platform/graphics/FloatPoint.h" |
34 #include "core/platform/graphics/FloatRect.h" | 34 #include "core/platform/graphics/FloatRect.h" |
35 #include "core/platform/graphics/GraphicsContext.h" | 35 #include "core/platform/graphics/GraphicsContext.h" |
36 #include "core/platform/graphics/skia/SkiaUtils.h" | 36 #include "core/platform/graphics/skia/SkiaUtils.h" |
37 #include "core/platform/graphics/transforms/AffineTransform.h" | 37 #include "core/platform/graphics/transforms/AffineTransform.h" |
38 #include "third_party/skia/include/core/SkPath.h" | 38 #include "third_party/skia/include/core/SkPath.h" |
39 #include "third_party/skia/include/core/SkPathMeasure.h" | 39 #include "third_party/skia/include/core/SkPathMeasure.h" |
40 #include "third_party/skia/include/pathops/SkPathOps.h" | 40 #include "third_party/skia/include/pathops/SkPathOps.h" |
41 #include <wtf/MathExtras.h> | 41 #include "wtf/MathExtras.h" |
42 | 42 |
43 namespace WebCore { | 43 namespace WebCore { |
44 | 44 |
45 Path::Path() | 45 Path::Path() |
46 : m_path() | 46 : m_path() |
47 { | 47 { |
48 } | 48 } |
49 | 49 |
50 Path::Path(const Path& other) | 50 Path::Path(const Path& other) |
51 { | 51 { |
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
416 { | 416 { |
417 m_path.offset(WebCoreFloatToSkScalar(size.width()), WebCoreFloatToSkScalar(s
ize.height())); | 417 m_path.offset(WebCoreFloatToSkScalar(size.width()), WebCoreFloatToSkScalar(s
ize.height())); |
418 } | 418 } |
419 | 419 |
420 bool Path::unionPath(const Path& other) | 420 bool Path::unionPath(const Path& other) |
421 { | 421 { |
422 return Op(m_path, other.m_path, kUnion_PathOp, &m_path); | 422 return Op(m_path, other.m_path, kUnion_PathOp, &m_path); |
423 } | 423 } |
424 | 424 |
425 } | 425 } |
OLD | NEW |