Remove SkDrawPictureCallback
No longer used in Chromium. R=reed@google.com [mtklein mischief] No one objects to removing dead API... TBR=reed@google.com Review URL: https://codereview.chromium.org/1151633003
This commit is contained in:
parent
65cdba6ba7
commit
fd674ddbd6
@ -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
|
Loading…
Reference in New Issue
Block a user