| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2007 The Android Open Source Project | 3 * Copyright 2007 The Android Open Source Project |
| 4 * | 4 * |
| 5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 | 9 |
| 10 #ifndef SkPicture_DEFINED | 10 #ifndef SkPicture_DEFINED |
| (...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 270 /** | 270 /** |
| 271 * Subclasses of this can be passed to canvas.drawPicture. During the drawing | 271 * Subclasses of this can be passed to canvas.drawPicture. During the drawing |
| 272 * of the picture, this callback will periodically be invoked. If its | 272 * of the picture, this callback will periodically be invoked. If its |
| 273 * abortDrawing() returns true, then picture playback will be interrupted. | 273 * abortDrawing() returns true, then picture playback will be interrupted. |
| 274 * | 274 * |
| 275 * The resulting drawing is undefined, as there is no guarantee how often the | 275 * The resulting drawing is undefined, as there is no guarantee how often the |
| 276 * callback will be invoked. If the abort happens inside some level of nested | 276 * callback will be invoked. If the abort happens inside some level of nested |
| 277 * calls to save(), restore will automatically be called to return the state | 277 * calls to save(), restore will automatically be called to return the state |
| 278 * to the same level it was before the drawPicture call was made. | 278 * to the same level it was before the drawPicture call was made. |
| 279 */ | 279 */ |
| 280 class SkDrawPictureCallback { | 280 class SK_API SkDrawPictureCallback { |
| 281 public: | 281 public: |
| 282 SkDrawPictureCallback() {} | 282 SkDrawPictureCallback() {} |
| 283 virtual ~SkDrawPictureCallback() {} | 283 virtual ~SkDrawPictureCallback() {} |
| 284 | 284 |
| 285 virtual bool abortDrawing() = 0; | 285 virtual bool abortDrawing() = 0; |
| 286 }; | 286 }; |
| 287 | 287 |
| 288 #endif | 288 #endif |
| OLD | NEW |