Altered GrDrawState to always ref texture and render target

http://codereview.appspot.com/6251049/



git-svn-id: http://skia.googlecode.com/svn/trunk@4298 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp
index 3ce70d1..46b06d8 100644
--- a/src/gpu/SkGpuDevice.cpp
+++ b/src/gpu/SkGpuDevice.cpp
@@ -257,6 +257,10 @@
         delete fDrawProcs;
     }
 
+    // The SkGpuDevice gives the context the render target (e.g., in gainFocus)
+    // This call gives the context a chance to relinquish it 
+    fContext->setRenderTarget(NULL);
+
     SkSafeUnref(fTexture);
     SkSafeUnref(fRenderTarget);
     if (fCache.texture()) {