summaryrefslogtreecommitdiff
path: root/gpu/GrRenderTarget.cpp
diff options
context:
space:
mode:
authorrobertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-09-07 19:44:33 +0000
committerrobertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-09-07 19:44:33 +0000
commit78eddb84d871e855a878775c1dd0aaf0222bf5ee (patch)
treebda9e72ea8aa0dc9e5594bd12a8402fc51e928b6 /gpu/GrRenderTarget.cpp
parent443e8a69c0d13ae70d1168be443b5865008d327c (diff)
downloadsrc-78eddb84d871e855a878775c1dd0aaf0222bf5ee.tar.gz
Added explicit cache clearing
http://codereview.appspot.com/6492094/ git-svn-id: http://skia.googlecode.com/svn/trunk/src@5444 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gpu/GrRenderTarget.cpp')
-rw-r--r--gpu/GrRenderTarget.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/gpu/GrRenderTarget.cpp b/gpu/GrRenderTarget.cpp
index 76196640..f8f9e3c7 100644
--- a/gpu/GrRenderTarget.cpp
+++ b/gpu/GrRenderTarget.cpp
@@ -101,6 +101,10 @@ void GrRenderTarget::setStencilBuffer(GrStencilBuffer* stencilBuffer) {
context->unlockStencilBuffer(fStencilBuffer);
}
fStencilBuffer->unref();
+
+ if (NULL != context) {
+ context->purgeCache();
+ }
}
fStencilBuffer = stencilBuffer;