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

Side by Side Diff: include/core/SkDrawPictureCallback.h

Issue 349973008: Tick off some TODOs: (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: robert Created 6 years, 6 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 unified diff | Download patch
« no previous file with comments | « no previous file | include/core/SkPicture.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /*
2 * Copyright 2014 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8 #ifndef SkDrawPictureCallback_DEFINED
9 #define SkDrawPictureCallback_DEFINED
10
11 /**
12 * Subclasses of this can be passed to canvas.drawPicture(). During the drawing
13 * of the picture, this callback will periodically be invoked. If its
14 * abortDrawing() returns true, then picture playback will be interrupted.
15 *
16 * The resulting drawing is undefined, as there is no guarantee how often the
17 * callback will be invoked. If the abort happens inside some level of nested
18 * calls to save(), restore will automatically be called to return the state
19 * to the same level it was before the drawPicture call was made.
20 */
21 class SK_API SkDrawPictureCallback {
22 public:
23 SkDrawPictureCallback() {}
24 virtual ~SkDrawPictureCallback() {}
25
26 virtual bool abortDrawing() = 0;
27 };
28
29 #endif//SkDrawPictureCallback_DEFINED
OLDNEW
« no previous file with comments | « no previous file | include/core/SkPicture.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698