| 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 18 matching lines...) Expand all Loading... |
| 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 "SkPath.h" | 36 #include "SkPath.h" |
| 37 #include "SkXfermode.h" | 37 #include "SkXfermode.h" |
| 38 #include "core/platform/graphics/GraphicsContext.h" | 38 #include "core/platform/graphics/GraphicsContext.h" |
| 39 #include <wtf/MathExtras.h> | 39 #include "wtf/MathExtras.h" |
| 40 | 40 |
| 41 class SkCanvas; | 41 class SkCanvas; |
| 42 class SkRegion; | 42 class SkRegion; |
| 43 | 43 |
| 44 namespace WebCore { | 44 namespace WebCore { |
| 45 | 45 |
| 46 SkXfermode::Mode WebCoreCompositeToSkiaComposite(CompositeOperator, BlendMode =
BlendModeNormal); | 46 SkXfermode::Mode WebCoreCompositeToSkiaComposite(CompositeOperator, BlendMode =
BlendModeNormal); |
| 47 | 47 |
| 48 // move this guy into SkColor.h | 48 // move this guy into SkColor.h |
| 49 SkColor SkPMColorToColor(SkPMColor); | 49 SkColor SkPMColorToColor(SkPMColor); |
| (...skipping 24 matching lines...) Expand all Loading... |
| 74 // | 74 // |
| 75 // srcRect and destRect can be the same. | 75 // srcRect and destRect can be the same. |
| 76 void ClipRectToCanvas(const GraphicsContext*, const SkRect& srcRect, SkRect* des
tRect); | 76 void ClipRectToCanvas(const GraphicsContext*, const SkRect& srcRect, SkRect* des
tRect); |
| 77 | 77 |
| 78 // Determine if a given WebKit point is contained in a path | 78 // Determine if a given WebKit point is contained in a path |
| 79 bool SkPathContainsPoint(SkPath*, const FloatPoint&, SkPath::FillType); | 79 bool SkPathContainsPoint(SkPath*, const FloatPoint&, SkPath::FillType); |
| 80 | 80 |
| 81 } // namespace WebCore | 81 } // namespace WebCore |
| 82 | 82 |
| 83 #endif // SkiaUtils_h | 83 #endif // SkiaUtils_h |
| OLD | NEW |