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

Side by Side Diff: src/core/SkPicturePlayback.h

Issue 824013004: Revert of Rename SkDrawPictureCallback to SkPicture::AbortCallback (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 11 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 | « src/core/SkPictureData.cpp ('k') | src/core/SkPicturePlayback.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 * Copyright 2014 Google Inc. 2 * Copyright 2014 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef SkPicturePlayback_DEFINED 8 #ifndef SkPicturePlayback_DEFINED
9 #define SkPicturePlayback_DEFINED 9 #define SkPicturePlayback_DEFINED
10 10
11 #include "SkPictureFlat.h" // for DrawType 11 #include "SkPictureFlat.h" // for DrawType
12 12
13 class SkBitmap; 13 class SkBitmap;
14 class SkCanvas; 14 class SkCanvas;
15 class SkDrawPictureCallback;
15 class SkPaint; 16 class SkPaint;
16 class SkPictureData; 17 class SkPictureData;
17 18
18 // The basic picture playback class replays the provided picture into a canvas. 19 // The basic picture playback class replays the provided picture into a canvas.
19 class SkPicturePlayback : SkNoncopyable { 20 class SkPicturePlayback : SkNoncopyable {
20 public: 21 public:
21 SkPicturePlayback(const SkPictureData* data) 22 SkPicturePlayback(const SkPictureData* data)
22 : fPictureData(data) 23 : fPictureData(data)
23 , fCurOffset(0) { 24 , fCurOffset(0) {
24 } 25 }
25 virtual ~SkPicturePlayback() { } 26 virtual ~SkPicturePlayback() { }
26 27
27 virtual void draw(SkCanvas* canvas, SkPicture::AbortCallback*); 28 virtual void draw(SkCanvas* canvas, SkDrawPictureCallback*);
28 29
29 // TODO: remove the curOp calls after cleaning up GrGatherDevice 30 // TODO: remove the curOp calls after cleaning up GrGatherDevice
30 // Return the ID of the operation currently being executed when playing 31 // Return the ID of the operation currently being executed when playing
31 // back. 0 indicates no call is active. 32 // back. 0 indicates no call is active.
32 size_t curOpID() const { return fCurOffset; } 33 size_t curOpID() const { return fCurOffset; }
33 void resetOpID() { fCurOffset = 0; } 34 void resetOpID() { fCurOffset = 0; }
34 35
35 protected: 36 protected:
36 const SkPictureData* fPictureData; 37 const SkPictureData* fPictureData;
37 38
(...skipping 19 matching lines...) Expand all
57 58
58 private: 59 private:
59 SkPicturePlayback* fPlayback; 60 SkPicturePlayback* fPlayback;
60 }; 61 };
61 62
62 private: 63 private:
63 typedef SkNoncopyable INHERITED; 64 typedef SkNoncopyable INHERITED;
64 }; 65 };
65 66
66 #endif 67 #endif
OLDNEW
« no previous file with comments | « src/core/SkPictureData.cpp ('k') | src/core/SkPicturePlayback.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698