| 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 15 matching lines...) Expand all Loading... |
| 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 */ | 29 */ |
| 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 "sky/engine/platform/PlatformExport.h" |
| 37 #include "SkPaint.h" | 37 #include "sky/engine/platform/geometry/FloatRect.h" |
| 38 #include "SkPath.h" | 38 #include "sky/engine/platform/graphics/Color.h" |
| 39 #include "SkXfermode.h" | 39 #include "sky/engine/platform/graphics/GraphicsTypes.h" |
| 40 #include "platform/PlatformExport.h" | 40 #include "sky/engine/platform/transforms/AffineTransform.h" |
| 41 #include "platform/geometry/FloatRect.h" | 41 #include "sky/engine/wtf/MathExtras.h" |
| 42 #include "platform/graphics/Color.h" | 42 #include "third_party/skia/include/core/SkMatrix.h" |
| 43 #include "platform/graphics/GraphicsTypes.h" | 43 #include "third_party/skia/include/core/SkPaint.h" |
| 44 #include "platform/transforms/AffineTransform.h" | 44 #include "third_party/skia/include/core/SkPath.h" |
| 45 #include "wtf/MathExtras.h" | 45 #include "third_party/skia/include/core/SkXfermode.h" |
| 46 | 46 |
| 47 namespace blink { | 47 namespace blink { |
| 48 | 48 |
| 49 class GraphicsContext; | 49 class GraphicsContext; |
| 50 | 50 |
| 51 SkXfermode::Mode PLATFORM_EXPORT WebCoreCompositeToSkiaComposite(CompositeOperat
or, WebBlendMode = WebBlendModeNormal); | 51 SkXfermode::Mode PLATFORM_EXPORT WebCoreCompositeToSkiaComposite(CompositeOperat
or, WebBlendMode = WebBlendModeNormal); |
| 52 | 52 |
| 53 // move this guy into SkColor.h | 53 // move this guy into SkColor.h |
| 54 SkColor SkPMColorToColor(SkPMColor); | 54 SkColor SkPMColorToColor(SkPMColor); |
| 55 | 55 |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 float srcHeight, | 102 float srcHeight, |
| 103 float destWidth, | 103 float destWidth, |
| 104 float destHeight, | 104 float destHeight, |
| 105 bool isDataComplete = true); | 105 bool isDataComplete = true); |
| 106 | 106 |
| 107 bool shouldDrawAntiAliased(const GraphicsContext*, const SkRect& destRect); | 107 bool shouldDrawAntiAliased(const GraphicsContext*, const SkRect& destRect); |
| 108 | 108 |
| 109 } // namespace blink | 109 } // namespace blink |
| 110 | 110 |
| 111 #endif // SkiaUtils_h | 111 #endif // SkiaUtils_h |
| OLD | NEW |