aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core/SkCanvas.cpp16
-rw-r--r--src/gpu/GrClipMaskManager.h11
-rw-r--r--src/gpu/GrContext.cpp8
-rw-r--r--src/gpu/GrDrawTarget.h3
-rw-r--r--src/gpu/GrGpu.h7
5 files changed, 0 insertions, 45 deletions
diff --git a/src/core/SkCanvas.cpp b/src/core/SkCanvas.cpp
index 9ba76215e1..7d1ecbf8e9 100644
--- a/src/core/SkCanvas.cpp
+++ b/src/core/SkCanvas.cpp
@@ -705,14 +705,6 @@ int SkCanvas::internalSave(SaveFlags flags) {
fClipStack.save();
SkASSERT(fClipStack.getSaveCount() == this->getSaveCount() - 1);
- for (DeviceCM* curLayer = fMCRec->fTopLayer;
- curLayer;
- curLayer = curLayer->fNext) {
- if (NULL != curLayer->fDevice) {
- curLayer->fDevice->postSave();
- }
- }
-
return saveCount;
}
@@ -883,14 +875,6 @@ void SkCanvas::restore() {
void SkCanvas::internalRestore() {
SkASSERT(fMCStack.count() != 0);
- for (DeviceCM* curLayer = fMCRec->fTopLayer;
- curLayer;
- curLayer = curLayer->fNext) {
- if (NULL != curLayer->fDevice) {
- curLayer->fDevice->preRestore();
- }
- }
-
fDeviceCMDirty = true;
fLocalBoundsCompareTypeDirty = true;
fLocalBoundsCompareTypeDirtyBW = true;
diff --git a/src/gpu/GrClipMaskManager.h b/src/gpu/GrClipMaskManager.h
index 00ca642262..bb597ba63f 100644
--- a/src/gpu/GrClipMaskManager.h
+++ b/src/gpu/GrClipMaskManager.h
@@ -297,17 +297,6 @@ public:
}
}
- void postClipPush() {
- // TODO: make sure that, if the clip stack is unaltered, the
- // prior clip mask is reused (i.e., a push w/ no change to the
- // clip stack)
- fAACache.push();
- }
-
- void preClipPop() {
- fAACache.pop();
- }
-
void setContext(GrContext* context) {
fAACache.setContext(context);
}
diff --git a/src/gpu/GrContext.cpp b/src/gpu/GrContext.cpp
index 076079928b..6326f4d24e 100644
--- a/src/gpu/GrContext.cpp
+++ b/src/gpu/GrContext.cpp
@@ -1973,12 +1973,4 @@ GrTexture* GrContext::applyMorphology(GrTexture* srcTexture,
return srcTexture;
}
-void GrContext::postClipPush() {
- fGpu->postClipPush();
-}
-
-void GrContext::preClipPop() {
- fGpu->preClipPop();
-};
-
///////////////////////////////////////////////////////////////////////////////
diff --git a/src/gpu/GrDrawTarget.h b/src/gpu/GrDrawTarget.h
index 9b9be64832..66256cf877 100644
--- a/src/gpu/GrDrawTarget.h
+++ b/src/gpu/GrDrawTarget.h
@@ -191,9 +191,6 @@ public:
static bool StageUsesTexCoords(GrVertexLayout layout, int stage);
- virtual void postClipPush() {};
- virtual void preClipPop() {};
-
private:
static const int TEX_COORD_BIT_CNT = GrDrawState::kNumStages *
GrDrawState::kMaxTexCoords;
diff --git a/src/gpu/GrGpu.h b/src/gpu/GrGpu.h
index 5c21b55edf..f502dba23d 100644
--- a/src/gpu/GrGpu.h
+++ b/src/gpu/GrGpu.h
@@ -362,13 +362,6 @@ public:
// clipping.
};
- virtual void postClipPush() SK_OVERRIDE {
- fClipMaskManager.postClipPush();
- }
- virtual void preClipPop() SK_OVERRIDE {
- fClipMaskManager.preClipPop();
- }
-
protected:
enum DrawType {
kDrawPoints_DrawType,