Plumbing to propagate save & restore from SkCanvas down to GrContext & lower
http://codereview.appspot.com/6203067/
git-svn-id: http://skia.googlecode.com/svn/trunk@4034 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/gpu/GrInOrderDrawBuffer.cpp b/src/gpu/GrInOrderDrawBuffer.cpp
index 553bacc..7b3b04f 100644
--- a/src/gpu/GrInOrderDrawBuffer.cpp
+++ b/src/gpu/GrInOrderDrawBuffer.cpp
@@ -223,7 +223,7 @@
bool clipChanged = this->needsNewClip();
bool stateChanged = this->needsNewState();
if (clipChanged) {
- this->pushClip();
+ this->storeClip();
}
if (stateChanged) {
this->pushState();
@@ -342,7 +342,7 @@
draw.fClipChanged = this->needsNewClip();
if (draw.fClipChanged) {
- this->pushClip();
+ this->storeClip();
}
draw.fStateChanged = this->needsNewState();
@@ -409,7 +409,7 @@
draw.fClipChanged = this->needsNewClip();
if (draw.fClipChanged) {
- this->pushClip();
+ this->storeClip();
}
draw.fStateChanged = this->needsNewState();
@@ -801,7 +801,7 @@
return false;
}
-void GrInOrderDrawBuffer::pushClip() {
+void GrInOrderDrawBuffer::storeClip() {
fClips.push_back() = fClip;
fClipSet = false;
}