| 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 20 matching lines...) Expand all Loading... |
| 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 "platform/PlatformExport.h" | 36 #include "platform/PlatformExport.h" |
| 37 #include "platform/graphics/GraphicsTypes.h" | 37 #include "platform/graphics/GraphicsTypes.h" |
| 38 #include "platform/graphics/Image.h" | 38 #include "platform/graphics/Image.h" |
| 39 #include "platform/transforms/AffineTransform.h" | 39 #include "platform/transforms/AffineTransform.h" |
| 40 #include "third_party/skia/include/core/SkCanvas.h" | 40 #include "third_party/skia/include/core/SkCanvas.h" |
| 41 #include "third_party/skia/include/core/SkColor.h" |
| 41 #include "third_party/skia/include/core/SkRefCnt.h" | 42 #include "third_party/skia/include/core/SkRefCnt.h" |
| 43 #include "third_party/skia/include/core/SkScalar.h" |
| 44 #include "third_party/skia/include/core/SkXfermode.h" |
| 42 #include "wtf/MathExtras.h" | 45 #include "wtf/MathExtras.h" |
| 43 | 46 |
| 44 namespace blink { | 47 namespace blink { |
| 45 | 48 |
| 46 class GraphicsContext; | 49 class GraphicsContext; |
| 47 | 50 |
| 48 SkXfermode::Mode PLATFORM_EXPORT WebCoreCompositeToSkiaComposite(CompositeOperat
or, WebBlendMode = WebBlendModeNormal); | 51 SkXfermode::Mode PLATFORM_EXPORT WebCoreCompositeToSkiaComposite(CompositeOperat
or, WebBlendMode = WebBlendModeNormal); |
| 49 CompositeOperator PLATFORM_EXPORT compositeOperatorFromSkia(SkXfermode::Mode); | 52 CompositeOperator PLATFORM_EXPORT compositeOperatorFromSkia(SkXfermode::Mode); |
| 50 WebBlendMode PLATFORM_EXPORT blendModeFromSkia(SkXfermode::Mode); | 53 WebBlendMode PLATFORM_EXPORT blendModeFromSkia(SkXfermode::Mode); |
| 51 | 54 |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 } | 203 } |
| 201 | 204 |
| 202 template <typename T> sk_sp<T> toSkSp(const RefPtr<T>& ref) | 205 template <typename T> sk_sp<T> toSkSp(const RefPtr<T>& ref) |
| 203 { | 206 { |
| 204 return toSkSp(PassRefPtr<T>(ref)); | 207 return toSkSp(PassRefPtr<T>(ref)); |
| 205 } | 208 } |
| 206 | 209 |
| 207 } // namespace blink | 210 } // namespace blink |
| 208 | 211 |
| 209 #endif // SkiaUtils_h | 212 #endif // SkiaUtils_h |
| OLD | NEW |