aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/gpu/GrTexture.h
diff options
context:
space:
mode:
authorGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-03-30 17:24:17 +0000
committerGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-03-30 17:24:17 +0000
commitb4725b4ee617a6a2524765f79310714a5dad4b6a (patch)
tree4f53c76d902fa69d19473e911d54dece1994da9b /include/gpu/GrTexture.h
parent8a812c252d9206f0d2b1bb691d6b1d45c70e2e8b (diff)
Add assert to catch circular drawing higher up the call stack.
git-svn-id: http://skia.googlecode.com/svn/trunk@3559 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/gpu/GrTexture.h')
-rw-r--r--include/gpu/GrTexture.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/gpu/GrTexture.h b/include/gpu/GrTexture.h
index 8274140adc..8e39fb55b5 100644
--- a/include/gpu/GrTexture.h
+++ b/include/gpu/GrTexture.h
@@ -94,6 +94,7 @@ public:
* render target
*/
GrRenderTarget* asRenderTarget() { return fRenderTarget; }
+ const GrRenderTarget* asRenderTarget() const { return fRenderTarget; }
/**
* Removes the reference on the associated GrRenderTarget held by this