Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2341)

Unified Diff: Source/platform/graphics/skia/SkiaUtils.h

Issue 1093673002: Removing the dependency on GraphicsContext for drawing images in 2D canvas (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>
+void drawPlatformFocusRing(const PrimitiveType&, SkCanvas*, SkColor, int width);
+
} // namespace blink
#endif // SkiaUtils_h

Powered by Google App Engine
This is Rietveld 408576698