Chromium Code Reviews| Index: Source/platform/graphics/skia/SkiaUtils.h |
| diff --git a/Source/platform/graphics/skia/SkiaUtils.h b/Source/platform/graphics/skia/SkiaUtils.h |
| index f0372ae22414ae02e762cbb7e7d86f351aede557..d4ada98c1513a0b6168333ef14f24f4ca2b94ae3 100644 |
| --- a/Source/platform/graphics/skia/SkiaUtils.h |
| +++ b/Source/platform/graphics/skia/SkiaUtils.h |
| @@ -33,15 +33,13 @@ |
| #ifndef SkiaUtils_h |
| #define SkiaUtils_h |
| -#include "SkMatrix.h" |
| -#include "SkPaint.h" |
| -#include "SkPath.h" |
| -#include "SkXfermode.h" |
| #include "platform/PlatformExport.h" |
| #include "platform/geometry/FloatRect.h" |
| #include "platform/graphics/Color.h" |
| #include "platform/graphics/GraphicsTypes.h" |
| #include "platform/transforms/AffineTransform.h" |
| +#include "third_party/skia/include/core/SkCanvas.h" |
| +#include "third_party/skia/include/effects/SkCornerPathEffect.h" |
| #include "wtf/MathExtras.h" |
| namespace blink { |
| @@ -127,8 +125,6 @@ InterpolationQuality computeInterpolationQuality( |
| float destHeight, |
| bool isDataComplete = true); |
| -bool shouldDrawAntiAliased(const GraphicsContext*, const SkRect& destRect); |
| - |
| // This replicates the old skia behavior when it used to take radius for blur. Now it takes sigma. |
| inline SkScalar skBlurRadiusToSigma(SkScalar radius) |
| { |
| @@ -136,6 +132,9 @@ inline SkScalar skBlurRadiusToSigma(SkScalar radius) |
| return 0.288675f * radius + 0.5f; |
| } |
| +template<typename PrimitiveType> |
|
Stephen White
2015/05/29 21:38:52
Nit: I would prefer to have two non-templated func
|
| +void drawPlatformFocusRing(const PrimitiveType&, SkCanvas*, SkColor, int width); |
| + |
| } // namespace blink |
| #endif // SkiaUtils_h |