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

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

Issue 829983003: Rename SkDrawPictureCallback to SkPicture::AbortCallback (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Readd deleted android gypi changes 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/SkPicturePlayback.cpp ('k') | src/core/SkRecordDraw.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 SkRecordDraw_DEFINED 8 #ifndef SkRecordDraw_DEFINED
9 #define SkRecordDraw_DEFINED 9 #define SkRecordDraw_DEFINED
10 10
11 #include "SkBBoxHierarchy.h" 11 #include "SkBBoxHierarchy.h"
12 #include "SkCanvas.h" 12 #include "SkCanvas.h"
13 #include "SkDrawPictureCallback.h"
14 #include "SkMatrix.h" 13 #include "SkMatrix.h"
15 #include "SkRecord.h" 14 #include "SkRecord.h"
16 15
17 class SkCanvasDrawable; 16 class SkCanvasDrawable;
18 class SkLayerInfo; 17 class SkLayerInfo;
19 18
20 // Fill a BBH to be used by SkRecordDraw to accelerate playback. 19 // Fill a BBH to be used by SkRecordDraw to accelerate playback.
21 void SkRecordFillBounds(const SkRect& cullRect, const SkRecord&, SkBBoxHierarchy *); 20 void SkRecordFillBounds(const SkRect& cullRect, const SkRecord&, SkBBoxHierarchy *);
22 21
23 void SkRecordComputeLayers(const SkRect& cullRect, const SkRecord& record, 22 void SkRecordComputeLayers(const SkRect& cullRect, const SkRecord& record,
24 const SkPicture::SnapshotArray*, 23 const SkPicture::SnapshotArray*,
25 SkBBoxHierarchy* bbh, SkLayerInfo* data); 24 SkBBoxHierarchy* bbh, SkLayerInfo* data);
26 25
27 // Draw an SkRecord into an SkCanvas. A convenience wrapper around SkRecords::D raw. 26 // Draw an SkRecord into an SkCanvas. A convenience wrapper around SkRecords::D raw.
28 void SkRecordDraw(const SkRecord&, SkCanvas*, SkPicture const* const drawablePic ts[], 27 void SkRecordDraw(const SkRecord&, SkCanvas*, SkPicture const* const drawablePic ts[],
29 SkCanvasDrawable* const drawables[], int drawableCount, 28 SkCanvasDrawable* const drawables[], int drawableCount,
30 const SkBBoxHierarchy*, SkDrawPictureCallback*); 29 const SkBBoxHierarchy*, SkPicture::AbortCallback*);
31 30
32 // Draw a portion of an SkRecord into an SkCanvas. 31 // Draw a portion of an SkRecord into an SkCanvas.
33 // When drawing a portion of an SkRecord the CTM on the passed in canvas must be 32 // When drawing a portion of an SkRecord the CTM on the passed in canvas must be
34 // the composition of the replay matrix with the record-time CTM (for the portio n 33 // the composition of the replay matrix with the record-time CTM (for the portio n
35 // of the record that is being replayed). For setMatrix calls to behave correctl y 34 // of the record that is being replayed). For setMatrix calls to behave correctl y
36 // the initialCTM parameter must set to just the replay matrix. 35 // the initialCTM parameter must set to just the replay matrix.
37 void SkRecordPartialDraw(const SkRecord&, SkCanvas*, 36 void SkRecordPartialDraw(const SkRecord&, SkCanvas*,
38 SkPicture const* const drawablePicts[], int drawableCou nt, 37 SkPicture const* const drawablePicts[], int drawableCou nt,
39 unsigned start, unsigned stop, const SkMatrix& initialC TM); 38 unsigned start, unsigned stop, const SkMatrix& initialC TM);
40 39
(...skipping 30 matching lines...) Expand all
71 const SkMatrix fInitialCTM; 70 const SkMatrix fInitialCTM;
72 SkCanvas* fCanvas; 71 SkCanvas* fCanvas;
73 SkPicture const* const* fDrawablePicts; 72 SkPicture const* const* fDrawablePicts;
74 SkCanvasDrawable* const* fDrawables; 73 SkCanvasDrawable* const* fDrawables;
75 int fDrawableCount; 74 int fDrawableCount;
76 }; 75 };
77 76
78 } // namespace SkRecords 77 } // namespace SkRecords
79 78
80 #endif//SkRecordDraw_DEFINED 79 #endif//SkRecordDraw_DEFINED
OLDNEW
« no previous file with comments | « src/core/SkPicturePlayback.cpp ('k') | src/core/SkRecordDraw.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698