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