First pass at improving temporary tex/rt reuse
Review URL: http://codereview.appspot.com/4625043/




git-svn-id: http://skia.googlecode.com/svn/trunk@1616 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/include/gpu/SkGpuDevice.h b/include/gpu/SkGpuDevice.h
index 601da09..96afa08 100644
--- a/include/gpu/SkGpuDevice.h
+++ b/include/gpu/SkGpuDevice.h
@@ -35,11 +35,13 @@
     /**
      * The SkGpuDevice will render to the GrRenderTarget, or if the paremeter is
      * null it will create its own render target and manage that target's
-     * lifetime.
+     * lifetime. Setting isSaveLayer to true is for internal use and may cause 
+     * problems when using the device's bitmap as a src if used externally.
      */
     SkGpuDevice(GrContext*,
                 const SkBitmap& bitmap,
-                GrRenderTarget* renderTargetOrNull);
+                GrRenderTarget* renderTargetOrNull,
+                bool isSaveLayer = false);
 
     /**
      * Magic value that can be passed to constructor. Causes
@@ -128,7 +130,8 @@
     TexCache* lockCachedTexture(const SkBitmap& bitmap,
                                 const GrSamplerState& sampler,
                                 GrTexture** texture,
-                                bool forDeviceRenderTarget = false);
+                                bool forDeviceRenderTarget = false,
+                                bool isSaveLayer = false);
     void unlockCachedTexture(TexCache*);
 
     class SkAutoCachedTexture {