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

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

Issue 155863005: Adding release method to SkWriter32 and using it to not copy the ops data from SkPictureRecord to S… (Closed) Base URL: https://skia.googlesource.com/skia.git@array_growth
Patch Set: Change pointer init to use NULL Created 6 years, 10 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
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2011 Google Inc. 3 * Copyright 2011 Google Inc.
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 #ifndef SkPicturePlayback_DEFINED 8 #ifndef SkPicturePlayback_DEFINED
9 #define SkPicturePlayback_DEFINED 9 #define SkPicturePlayback_DEFINED
10 10
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 54
55 bool initialized; 55 bool initialized;
56 SkChunkFlatController controller; 56 SkChunkFlatController controller;
57 SkTDArray<SkFlatData*> paintData; 57 SkTDArray<SkFlatData*> paintData;
58 }; 58 };
59 59
60 class SkPicturePlayback { 60 class SkPicturePlayback {
61 public: 61 public:
62 SkPicturePlayback(); 62 SkPicturePlayback();
63 SkPicturePlayback(const SkPicturePlayback& src, SkPictCopyInfo* deepCopyInfo = NULL); 63 SkPicturePlayback(const SkPicturePlayback& src, SkPictCopyInfo* deepCopyInfo = NULL);
64 explicit SkPicturePlayback(const SkPictureRecord& record, bool deepCopy = fa lse); 64 explicit SkPicturePlayback(SkPictureRecord& record, bool deepCopy = false);
65 static SkPicturePlayback* CreateFromStream(SkStream*, const SkPictInfo&, 65 static SkPicturePlayback* CreateFromStream(SkStream*, const SkPictInfo&,
66 SkPicture::InstallPixelRefProc); 66 SkPicture::InstallPixelRefProc);
67 67
68 virtual ~SkPicturePlayback(); 68 virtual ~SkPicturePlayback();
69 69
70 void draw(SkCanvas& canvas, SkDrawPictureCallback*); 70 void draw(SkCanvas& canvas, SkDrawPictureCallback*);
71 71
72 void serialize(SkWStream*, SkPicture::EncodeBitmap) const; 72 void serialize(SkWStream*, SkPicture::EncodeBitmap) const;
73 73
74 void dumpSize() const; 74 void dumpSize() const;
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 216
217 SkTypefacePlayback fTFPlayback; 217 SkTypefacePlayback fTFPlayback;
218 SkFactoryPlayback* fFactoryPlayback; 218 SkFactoryPlayback* fFactoryPlayback;
219 #ifdef SK_BUILD_FOR_ANDROID 219 #ifdef SK_BUILD_FOR_ANDROID
220 SkMutex fDrawMutex; 220 SkMutex fDrawMutex;
221 bool fAbortCurrentPlayback; 221 bool fAbortCurrentPlayback;
222 #endif 222 #endif
223 }; 223 };
224 224
225 #endif 225 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698