remove experimental code that accidentally got delivered
https://codereview.appspot.com/7340044/
git-svn-id: http://skia.googlecode.com/svn/trunk@7767 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/core/SkPictureRecord.cpp b/src/core/SkPictureRecord.cpp
index c851833..ef5199f 100644
--- a/src/core/SkPictureRecord.cpp
+++ b/src/core/SkPictureRecord.cpp
@@ -190,39 +190,6 @@
return true;
}
-// This function is just a toy example and will not be delivered with this
-// CL
-static bool noClips(SkWriter32* writer, int32_t offset) {
-
- int32_t restoreOffset = (int32_t)writer->size();
-
- // back up to the save block
- while (offset > 0) {
- offset = *writer->peek32(offset);
- }
-
- // now offset points to a save
- offset = -offset;
- uint32_t opSize;
- DrawType op = peek_op_and_size(writer, offset, &opSize);
- SkASSERT(SAVE == op || SAVE_LAYER == op);
-
- // Walk forward until until we hit our restore, nuking all clips
- // along the way
- offset += opSize;
- while (offset < restoreOffset) {
- op = peek_op_and_size(writer, offset, &opSize);
-
- if (CLIP_RECT == op || CLIP_RRECT == op) {
- uint32_t* ptr = writer->peek32(offset);
- *ptr = (*ptr & MASK_24) | (NOOP << 24);
- }
- offset += opSize;
- }
-
- return true;
-}
-
void SkPictureRecord::restore() {
// FIXME: SkDeferredCanvas needs to be refactored to respect
// save/restore balancing so that the following test can be
@@ -240,9 +207,6 @@
fFirstSavedLayerIndex = kNoSavedLayerIndex;
}
- // This call will not be delivered either
- noClips(&fWriter, fRestoreOffsetStack.top());
-
uint32_t initialOffset, size;
if (!collapseSaveClipRestore(&fWriter, fRestoreOffsetStack.top())) {
fillRestoreOffsetPlaceholdersForCurrentStackLevel((uint32_t)fWriter.size());