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

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

Issue 99103006: Moving GraphicsContext and dependencies from core to platform. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Final patch - fixes Android Created 7 years 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
« no previous file with comments | « Source/platform/graphics/skia/SkSizeHash.h ('k') | Source/platform/graphics/skia/SkiaUtils.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/skia/SkiaUtils.h
diff --git a/Source/core/platform/graphics/skia/SkiaUtils.h b/Source/platform/graphics/skia/SkiaUtils.h
similarity index 93%
rename from Source/core/platform/graphics/skia/SkiaUtils.h
rename to Source/platform/graphics/skia/SkiaUtils.h
index 9a03bb6072a7a56eed471c469e699a2a9f5d9f50..37e074c76d73f51b317c5f30521dda7d81d55c17 100644
--- a/Source/core/platform/graphics/skia/SkiaUtils.h
+++ b/Source/platform/graphics/skia/SkiaUtils.h
@@ -36,6 +36,7 @@
#include "SkMatrix.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"
@@ -55,9 +56,6 @@ PassRefPtr<SkXfermode> WebCoreCompositeToSkiaComposite(CompositeOperator, blink:
// move this guy into SkColor.h
SkColor SkPMColorToColor(SkPMColor);
-// This should be an operator on Color
-Color SkPMColorToWebCoreColor(SkPMColor);
-
// Skia has problems when passed infinite, etc floats, filter them to 0.
inline SkScalar WebCoreFloatToSkScalar(float f)
{
@@ -83,9 +81,9 @@ inline SkRect WebCoreFloatRectToSKRect(const FloatRect& rect)
void ClipRectToCanvas(const GraphicsContext*, const SkRect& srcRect, SkRect* destRect);
// Determine if a given WebKit point is contained in a path
-bool SkPathContainsPoint(const SkPath&, const FloatPoint&, SkPath::FillType);
+bool PLATFORM_EXPORT SkPathContainsPoint(const SkPath&, const FloatPoint&, SkPath::FillType);
-SkMatrix affineTransformToSkMatrix(const AffineTransform&);
+SkMatrix PLATFORM_EXPORT affineTransformToSkMatrix(const AffineTransform&);
} // namespace WebCore
« no previous file with comments | « Source/platform/graphics/skia/SkSizeHash.h ('k') | Source/platform/graphics/skia/SkiaUtils.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698