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/gpu/include/GrContext.h b/gpu/include/GrContext.h
index 5dfe2c9..8d482e9 100644
--- a/gpu/include/GrContext.h
+++ b/gpu/include/GrContext.h
@@ -116,6 +116,16 @@
     GrTextureEntry* lockKeylessTexture(const GrTextureDesc& desc);
 
     /**
+     * Finds a texture that approximately matches the descriptor. Will be
+     * at least as large in width and height as desc specifies. If desc
+     * specifies that texture is a render target then result will be a
+     * render target. If desc specifies a render target and doesn't set the
+     * no stencil flag then result will have a stencil. Format and aa level
+     * will always match.
+     */
+    GrTextureEntry* findApproximateKeylessTexture(const GrTextureDesc& desc);
+
+    /**
      *  When done with an entry, call unlockTexture(entry) on it, which returns
      *  it to the cache, where it may be purged.
      */