aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrGpu.h
diff options
context:
space:
mode:
authorGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-06-18 13:44:51 +0000
committerGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-06-18 13:44:51 +0000
commitc8f7f47afaf8f9471e6d111655c5610a8bd210a2 (patch)
treecb9246aa3bc832623891fbcce8ce86d777b1b58a /src/gpu/GrGpu.h
parentb702c0fcc0d5c85cb326b38fd34d535b9352512e (diff)
Store clip mask location in GrClipMaskManager as a enum rather than two bools
Review URL: http://codereview.appspot.com/6306092/ git-svn-id: http://skia.googlecode.com/svn/trunk@4274 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu/GrGpu.h')
-rw-r--r--src/gpu/GrGpu.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gpu/GrGpu.h b/src/gpu/GrGpu.h
index 93023930a9..edbad34134 100644
--- a/src/gpu/GrGpu.h
+++ b/src/gpu/GrGpu.h
@@ -429,7 +429,7 @@ protected:
void finalizeReservedIndices();
// called when the 3D context state is unknown. Subclass should emit any
- // assumed 3D context state and dirty any state cache
+ // assumed 3D context state and dirty any state cache.
virtual void onResetContext() = 0;
@@ -558,6 +558,10 @@ private:
void prepareIndexPool();
void resetContext() {
+ // We call this because the client may have messed with the
+ // stencil buffer. Perhaps we should detect whether it is a
+ // internally created stencil buffer and if so skip the invalidate.
+ fClipMaskManager.invalidateStencilMask();
this->onResetContext();
++fResetTimestamp;
}