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

Side by Side Diff: include/core/SkPicture.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 | « include/core/SkDrawPictureCallback.h ('k') | src/core/SkPicture.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
11 #define SkPicture_DEFINED 11 #define SkPicture_DEFINED
12 12
13 #include "SkBitmap.h" 13 #include "SkBitmap.h"
14 #include "SkDrawPictureCallback.h"
14 #include "SkImageDecoder.h" 15 #include "SkImageDecoder.h"
15 #include "SkRefCnt.h" 16 #include "SkRefCnt.h"
16 17
17 #if SK_SUPPORT_GPU 18 #if SK_SUPPORT_GPU
18 class GrContext; 19 class GrContext;
19 #endif 20 #endif
20 21
21 class SkBBHFactory; 22 class SkBBHFactory;
22 class SkBBoxHierarchy; 23 class SkBBoxHierarchy;
23 class SkCanvas; 24 class SkCanvas;
24 class SkDrawPictureCallback;
25 class SkData; 25 class SkData;
26 class SkPicturePlayback; 26 class SkPicturePlayback;
27 class SkPictureRecord; 27 class SkPictureRecord;
28 class SkStream; 28 class SkStream;
29 class SkWStream; 29 class SkWStream;
30 30
31 struct SkPictInfo; 31 struct SkPictInfo;
32 32
33 class SkRecord; 33 class SkRecord;
34 34
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 friend class GrGatherCanvas; 307 friend class GrGatherCanvas;
308 friend class GrGatherDevice; 308 friend class GrGatherDevice;
309 friend class SkDebugCanvas; 309 friend class SkDebugCanvas;
310 310
311 typedef SkRefCnt INHERITED; 311 typedef SkRefCnt INHERITED;
312 312
313 SkPicture(int width, int height, SkRecord*); // Takes ownership. 313 SkPicture(int width, int height, SkRecord*); // Takes ownership.
314 SkAutoTDelete<SkRecord> fRecord; 314 SkAutoTDelete<SkRecord> fRecord;
315 }; 315 };
316 316
317 /**
318 * Subclasses of this can be passed to canvas.drawPicture. During the drawing
319 * of the picture, this callback will periodically be invoked. If its
320 * abortDrawing() returns true, then picture playback will be interrupted.
321 *
322 * The resulting drawing is undefined, as there is no guarantee how often the
323 * callback will be invoked. If the abort happens inside some level of nested
324 * calls to save(), restore will automatically be called to return the state
325 * to the same level it was before the drawPicture call was made.
326 */
327 class SK_API SkDrawPictureCallback {
328 public:
329 SkDrawPictureCallback() {}
330 virtual ~SkDrawPictureCallback() {}
331
332 virtual bool abortDrawing() = 0;
333 };
334
335 #endif 317 #endif
OLDNEW
« no previous file with comments | « include/core/SkDrawPictureCallback.h ('k') | src/core/SkPicture.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698