DescriptionThis appears to work. In the old approach the deletion of the existing 'fPicture' also freed all the SkPaints (and other objects) that the 'fDebugCanvas' relied on. I believe this was so that the debugger would automatically "switch" to the modified skp. The current approach doesn't do this but it also doesn't crash.
   
  Patch Set 1 #
      Total comments: 2
      
     
  
  
  
  Patch Set 2 : Added comment #
 MessagesTotal messages: 6 
  
       | 
    |||||||||||||||||||||||||||||||||||||