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 25 matching lines...) Expand all Loading... |
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); | 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); |
50 | 50 |
51 // This should be an operator on Color | 51 // This should be an operator on Color |
52 Color SkPMColorToWebCoreColor(SkPMColor); | 52 Color SkPMColorToWebCoreColor(SkPMColor); |
53 | 53 |
54 // Skia has problems when passed infinite, etc floats, filter them to 0. | 54 // Skia has problems when passed infinite, etc floats, filter them to 0. |
55 inline SkScalar WebCoreFloatToSkScalar(float f) | 55 inline SkScalar WebCoreFloatToSkScalar(float f) |
56 { | 56 { |
(...skipping 22 matching lines...) Expand all Loading... |
79 bool SkPathContainsPoint(SkPath*, const FloatPoint&, SkPath::FillType); | 79 bool SkPathContainsPoint(SkPath*, const FloatPoint&, SkPath::FillType); |
80 | 80 |
81 // Returns a statically allocated 1x1 GraphicsContext intended for temporary | 81 // Returns a statically allocated 1x1 GraphicsContext intended for temporary |
82 // operations. Please save() the state and restore() it when you're done with | 82 // operations. Please save() the state and restore() it when you're done with |
83 // the context. | 83 // the context. |
84 GraphicsContext* scratchContext(); | 84 GraphicsContext* scratchContext(); |
85 | 85 |
86 } // namespace WebCore | 86 } // namespace WebCore |
87 | 87 |
88 #endif // SkiaUtils_h | 88 #endif // SkiaUtils_h |
OLD | NEW |