| 
    
      
  | 
  
 Chromium Code Reviews| 
         Created: 
          6 years, 10 months ago by robertphillips Modified: 
          6 years, 10 months ago Reviewers: 
          
          mtklein CC: 
          
          
          skia-review_googlegroups.com Base URL: 
          
          
          
          http://skia.googlecode.com/svn/trunk/ Visibility: 
          
          
          
        Public.  | 
      
        
  DescriptionFix crash in bench when "--mode record" is used
   
  Patch Set 1 #
 Messages
    Total messages: 655 (0 generated)
     
  
  
 
 On 2014/02/04 18:08:15, robertphillips wrote: lgtm 
 The CQ bit was checked by robertphillips@google.com 
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/robertphillips@google.com/150633008/1 
 The CQ bit was unchecked by commit-bot@chromium.org 
 Failed to apply patch for bench/benchmain.cpp:
While running patch -p0 --forward --force --no-backup-if-mismatch;
  patching file bench/benchmain.cpp
  Hunk #1 FAILED at 603.
  1 out of 1 hunk FAILED -- saving rejects to file bench/benchmain.cpp.rej
Patch:       bench/benchmain.cpp
Index: bench/benchmain.cpp
===================================================================
--- bench/benchmain.cpp	(revision 13305)
+++ bench/benchmain.cpp	(working copy)
@@ -603,7 +603,7 @@
 
                 if ((benchMode == kRecord_BenchMode || benchMode ==
kPictureRecord_BenchMode)) {
                     // Clear the recorded commands so that they do not
accumulate.
-                    canvas.reset(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags));
+                    canvas.reset(SkRef(recordTo.beginRecording(dim.fX, dim.fY,
kRecordFlags)));
                 }
 
                 timer.start();
          
 
            
              
                Message was sent while issue was closed.
              
            
             
          
        committed as r13310  | 
    ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
