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

Unified Diff: include/core/SkDrawPictureCallback.h

Issue 1151633003: Remove SkDrawPictureCallback (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: Created 5 years, 7 months 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkDrawPictureCallback.h
diff --git a/include/core/SkDrawPictureCallback.h b/include/core/SkDrawPictureCallback.h
deleted file mode 100644
index ab6ca0aa7ab9e7e48fbb87299a5894a0d281dcb9..0000000000000000000000000000000000000000
--- a/include/core/SkDrawPictureCallback.h
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
- * Copyright 2014 Google Inc.
- *
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-
-#ifndef SkDrawPictureCallback_DEFINED
-#define SkDrawPictureCallback_DEFINED
-
-#include "SkTypes.h"
-
-#ifdef SK_LEGACY_DRAWPICTURECALLBACK
-#include "SkPicture.h"
-
-/**
- * Subclasses of this can be passed to canvas.drawPicture(). During the drawing
- * of the picture, this callback will periodically be invoked. If its
- * abortDrawing() returns true, then picture playback will be interrupted.
- *
- * The resulting drawing is undefined, as there is no guarantee how often the
- * callback will be invoked. If the abort happens inside some level of nested
- * calls to save(), restore will automatically be called to return the state
- * to the same level it was before the drawPicture call was made.
- */
-class SK_API SkDrawPictureCallback : public SkPicture::AbortCallback {
-public:
- virtual bool abortDrawing() = 0;
-
- bool abort() override { return this->abortDrawing(); }
-};
-#endif
-
-#endif // SkDrawPictureCallback_DEFINED
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698