Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(104)

Unified Diff: src/core/SkPicturePlayback.cpp

Issue 794263002: Cull pushCull and popCull from Skia. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix debugger Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/core/SkPictureFlat.h ('k') | src/core/SkPictureRecord.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkPicturePlayback.cpp
diff --git a/src/core/SkPicturePlayback.cpp b/src/core/SkPicturePlayback.cpp
index b4cac52dd45c5cff28c5cf56447ecc4c6905401c..1c9b13e4450bf959cc8efd1545b002c693c330f3 100644
--- a/src/core/SkPicturePlayback.cpp
+++ b/src/core/SkPicturePlayback.cpp
@@ -148,18 +148,8 @@ void SkPicturePlayback::handleOp(SkReader32* reader,
reader->setOffset(offsetToRestore);
}
} break;
- case PUSH_CULL: {
- const SkRect& cullRect = reader->skipT<SkRect>();
- size_t offsetToRestore = reader->readInt();
- if (offsetToRestore && canvas->quickReject(cullRect)) {
- reader->setOffset(offsetToRestore);
- } else {
- canvas->pushCull(cullRect);
- }
- } break;
- case POP_CULL:
- canvas->popCull();
- break;
+ case PUSH_CULL: break; // Deprecated, safe to ignore both push and pop.
+ case POP_CULL: break;
case CONCAT: {
SkMatrix matrix;
reader->readMatrix(&matrix);
« no previous file with comments | « src/core/SkPictureFlat.h ('k') | src/core/SkPictureRecord.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698