OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2006,2007,2008, Google Inc. All rights reserved. | 2 * Copyright (c) 2006,2007,2008, Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 19 matching lines...) Expand all Loading... |
30 | 30 |
31 // All of the functions in this file should move to new homes and this file shou
ld be deleted. | 31 // All of the functions in this file should move to new homes and this file shou
ld be deleted. |
32 | 32 |
33 #ifndef SkiaUtils_h | 33 #ifndef SkiaUtils_h |
34 #define SkiaUtils_h | 34 #define SkiaUtils_h |
35 | 35 |
36 #include "SkMatrix.h" | 36 #include "SkMatrix.h" |
37 #include "SkPath.h" | 37 #include "SkPath.h" |
38 #include "SkXfermode.h" | 38 #include "SkXfermode.h" |
39 #include "core/platform/graphics/Color.h" | 39 #include "core/platform/graphics/Color.h" |
40 #include "core/platform/graphics/GraphicsTypes.h" | |
41 #include "platform/geometry/FloatRect.h" | 40 #include "platform/geometry/FloatRect.h" |
| 41 #include "platform/graphics/GraphicsTypes.h" |
42 #include "platform/transforms/AffineTransform.h" | 42 #include "platform/transforms/AffineTransform.h" |
43 #include "wtf/MathExtras.h" | 43 #include "wtf/MathExtras.h" |
44 #include "wtf/PassRefPtr.h" | 44 #include "wtf/PassRefPtr.h" |
45 | 45 |
46 class SkCanvas; | 46 class SkCanvas; |
47 class SkRegion; | 47 class SkRegion; |
48 | 48 |
49 namespace WebCore { | 49 namespace WebCore { |
50 | 50 |
51 class GraphicsContext; | 51 class GraphicsContext; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 void ClipRectToCanvas(const GraphicsContext*, const SkRect& srcRect, SkRect* des
tRect); | 83 void ClipRectToCanvas(const GraphicsContext*, const SkRect& srcRect, SkRect* des
tRect); |
84 | 84 |
85 // Determine if a given WebKit point is contained in a path | 85 // Determine if a given WebKit point is contained in a path |
86 bool SkPathContainsPoint(const SkPath&, const FloatPoint&, SkPath::FillType); | 86 bool SkPathContainsPoint(const SkPath&, const FloatPoint&, SkPath::FillType); |
87 | 87 |
88 SkMatrix affineTransformToSkMatrix(const AffineTransform&); | 88 SkMatrix affineTransformToSkMatrix(const AffineTransform&); |
89 | 89 |
90 } // namespace WebCore | 90 } // namespace WebCore |
91 | 91 |
92 #endif // SkiaUtils_h | 92 #endif // SkiaUtils_h |
OLD | NEW |