turn off debugging printfs

fix pathops issues 1417, 1418

be more rigorous about pulling intersections of lines to end points
rewrite cubic/line and quad/line intersections to share style

BUG=

Review URL: https://codereview.chromium.org/19543005

git-svn-id: http://skia.googlecode.com/svn/trunk@10270 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/tests/PathOpsSkpClipTest.cpp b/tests/PathOpsSkpClipTest.cpp
index f9d33e1..146c42a 100644
--- a/tests/PathOpsSkpClipTest.cpp
+++ b/tests/PathOpsSkpClipTest.cpp
@@ -58,9 +58,8 @@
     if (!stream.isValid()) {
         return;
     }
-    bool success;
-    SkPicture* pic = SkNEW_ARGS(SkPicture, (&stream, &success, &SkImageDecoder::DecodeMemory));
-    if (!success) {
+    SkPicture* pic = SkPicture::CreateFromStream(&stream, &SkImageDecoder::DecodeMemory);
+    if (!pic) {
         SkDebugf("unable to decode %s\n", filename.c_str());
         return;
     }
@@ -68,7 +67,7 @@
     int height = pic->height();
     SkBitmap bitmap;
     bitmap.setConfig(SkBitmap::kARGB_8888_Config, width, height);
-    success = bitmap.allocPixels();
+    bool success = bitmap.allocPixels();
     if (!success) {
         SkDebugf("unable to allocate bitmap for %s\n", filename.c_str());
         return;