| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 #include "platform/transforms/AffineTransform.h" | 44 #include "platform/transforms/AffineTransform.h" |
| 45 #include "wtf/MathExtras.h" | 45 #include "wtf/MathExtras.h" |
| 46 | 46 |
| 47 class SkCanvas; | 47 class SkCanvas; |
| 48 class SkRegion; | 48 class SkRegion; |
| 49 | 49 |
| 50 namespace blink { | 50 namespace blink { |
| 51 | 51 |
| 52 class GraphicsContext; | 52 class GraphicsContext; |
| 53 | 53 |
| 54 SkXfermode::Mode WebCoreCompositeToSkiaComposite(CompositeOperator, WebBlendMode
= WebBlendModeNormal); | 54 SkXfermode::Mode PLATFORM_EXPORT WebCoreCompositeToSkiaComposite(CompositeOperat
or, WebBlendMode = WebBlendModeNormal); |
| 55 | 55 |
| 56 // move this guy into SkColor.h | 56 // move this guy into SkColor.h |
| 57 SkColor SkPMColorToColor(SkPMColor); | 57 SkColor SkPMColorToColor(SkPMColor); |
| 58 | 58 |
| 59 inline SkPaint::FilterLevel WebCoreInterpolationQualityToSkFilterLevel(Interpola
tionQuality quality) | 59 inline SkPaint::FilterLevel WebCoreInterpolationQualityToSkFilterLevel(Interpola
tionQuality quality) |
| 60 { | 60 { |
| 61 // FIXME: this reflects existing client mappings, but should probably | 61 // FIXME: this reflects existing client mappings, but should probably |
| 62 // be expanded to map higher level interpolations more accurately. | 62 // be expanded to map higher level interpolations more accurately. |
| 63 return quality != InterpolationNone ? SkPaint::kLow_FilterLevel : SkPaint::k
None_FilterLevel; | 63 return quality != InterpolationNone ? SkPaint::kLow_FilterLevel : SkPaint::k
None_FilterLevel; |
| 64 } | 64 } |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 float srcHeight, | 105 float srcHeight, |
| 106 float destWidth, | 106 float destWidth, |
| 107 float destHeight, | 107 float destHeight, |
| 108 bool isDataComplete = true); | 108 bool isDataComplete = true); |
| 109 | 109 |
| 110 bool shouldDrawAntiAliased(const GraphicsContext*, const SkRect& destRect); | 110 bool shouldDrawAntiAliased(const GraphicsContext*, const SkRect& destRect); |
| 111 | 111 |
| 112 } // namespace blink | 112 } // namespace blink |
| 113 | 113 |
| 114 #endif // SkiaUtils_h | 114 #endif // SkiaUtils_h |
| OLD | NEW |