X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fthird_party%2FWebKit%2FSource%2Fplatform%2Fgraphics%2Fskia%2FSkiaUtils.h;h=0b4082b7953732595e049cc7ae526a0c514685ca;hb=004985e17e624662a4c85c76a7654039dc83f028;hp=db4c47db18709eeb7e229729aae47c4230221ab0;hpb=2f108dbacb161091e42a3479f4e171339b7e7623;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/third_party/WebKit/Source/platform/graphics/skia/SkiaUtils.h b/src/third_party/WebKit/Source/platform/graphics/skia/SkiaUtils.h index db4c47d..0b4082b 100644 --- a/src/third_party/WebKit/Source/platform/graphics/skia/SkiaUtils.h +++ b/src/third_party/WebKit/Source/platform/graphics/skia/SkiaUtils.h @@ -34,6 +34,7 @@ #define SkiaUtils_h #include "SkMatrix.h" +#include "SkPaint.h" #include "SkPath.h" #include "SkXfermode.h" #include "platform/PlatformExport.h" @@ -56,6 +57,13 @@ PassRefPtr WebCoreCompositeToSkiaComposite(CompositeOperator, blink: // move this guy into SkColor.h SkColor SkPMColorToColor(SkPMColor); +inline SkPaint::FilterLevel WebCoreInterpolationQualityToSkFilterLevel(InterpolationQuality quality) +{ + // FIXME: this reflects existing client mappings, but should probably + // be expanded to map higher level interpolations more accurately. + return quality != InterpolationNone ? SkPaint::kLow_FilterLevel : SkPaint::kNone_FilterLevel; +} + // Skia has problems when passed infinite, etc floats, filter them to 0. inline SkScalar WebCoreFloatToSkScalar(float f) {