Switch framework to new Skia enums
Allow Skia to finish deprecating old path operation enumerations.
Change-Id: I61e4489e639043acb78d47994ab62a31f18bd878
diff --git a/libs/hwui/OpenGLRenderer.cpp b/libs/hwui/OpenGLRenderer.cpp
index 433e178..2c9840b 100644
--- a/libs/hwui/OpenGLRenderer.cpp
+++ b/libs/hwui/OpenGLRenderer.cpp
@@ -1913,7 +1913,7 @@
// Mask the ripple path by the projection mask, now that it's
// in local space. Note that this can create CCW paths.
- Op(path, maskPath, kIntersect_PathOp, &path);
+ Op(path, maskPath, kIntersect_SkPathOp, &path);
}
drawConvexPath(path, p);
}
diff --git a/libs/hwui/RenderNode.cpp b/libs/hwui/RenderNode.cpp
index fc18491..bc03b59 100644
--- a/libs/hwui/RenderNode.cpp
+++ b/libs/hwui/RenderNode.cpp
@@ -692,7 +692,7 @@
if (revealClipPath) {
frameAllocatedPath = handler.allocPathForFrame();
- Op(*outlinePath, *revealClipPath, kIntersect_PathOp, frameAllocatedPath);
+ Op(*outlinePath, *revealClipPath, kIntersect_SkPathOp, frameAllocatedPath);
outlinePath = frameAllocatedPath;
}
@@ -708,7 +708,7 @@
clipBoundsPath.addRect(clipBounds.left, clipBounds.top,
clipBounds.right, clipBounds.bottom);
- Op(*outlinePath, clipBoundsPath, kIntersect_PathOp, frameAllocatedPath);
+ Op(*outlinePath, clipBoundsPath, kIntersect_SkPathOp, frameAllocatedPath);
outlinePath = frameAllocatedPath;
}