[PDF] Change SkPDFFormXObject to not hold a reference to device.
authorvandebo@chromium.org <vandebo@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Tue, 8 Feb 2011 19:22:40 +0000 (19:22 +0000)
committervandebo@chromium.org <vandebo@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Tue, 8 Feb 2011 19:22:40 +0000 (19:22 +0000)
commit79ac4fd6eb52512094ab762d2ec785390000cdd2
treefbc478ec16803c9802c9fe5fedc3c4a72629930b
parent3dd42b3c87299ad17b4df93fe251f6f9362495dc
[PDF] Change SkPDFFormXObject to not hold a reference to device.

This prevents two copies of the content stream from sticking around.  It also fixes an invalid memory reference because SkCanvas::internalRestore deletes the device (maybe it should just unref) after drawing it onto the main device.

Review URL: http://codereview.appspot.com/4080056

git-svn-id: http://skia.googlecode.com/svn/trunk@773 2bbb7eff-a529-9590-31e7-b0007b416f81
include/pdf/SkPDFFormXObject.h
src/pdf/SkPDFFormXObject.cpp