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

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

Issue 374833006: Split SkPictureRangePlayback out of SkPicturePlayback (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Addressed code review comments Created 6 years, 5 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 | « gyp/core.gypi ('k') | src/core/SkPicturePlayback.h » ('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 2011 Google Inc. 2 * Copyright 2011 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 SkPictureData_DEFINED 8 #ifndef SkPictureData_DEFINED
9 #define SkPictureData_DEFINED 9 #define SkPictureData_DEFINED
10 10
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 145
146 const SkPicture::OperationList* getActiveOps(const SkIRect& queryRect) const ; 146 const SkPicture::OperationList* getActiveOps(const SkIRect& queryRect) const ;
147 147
148 void serialize(SkWStream*, SkPicture::EncodeBitmap) const; 148 void serialize(SkWStream*, SkPicture::EncodeBitmap) const;
149 void flatten(SkWriteBuffer&) const; 149 void flatten(SkWriteBuffer&) const;
150 150
151 void dumpSize() const; 151 void dumpSize() const;
152 152
153 bool containsBitmaps() const; 153 bool containsBitmaps() const;
154 154
155 const SkData* opData() const { return fOpData; }
156
155 protected: 157 protected:
156 explicit SkPictureData(const SkPictInfo& info); 158 explicit SkPictureData(const SkPictInfo& info);
157 159
158 bool parseStream(SkStream*, SkPicture::InstallPixelRefProc); 160 bool parseStream(SkStream*, SkPicture::InstallPixelRefProc);
159 bool parseBuffer(SkReadBuffer& buffer); 161 bool parseBuffer(SkReadBuffer& buffer);
160 162
161 private: 163 private:
162 164
163 const SkBitmap& getBitmap(SkReader32* reader) const { 165 const SkBitmap& getBitmap(SkReader32* reader) const {
164 const int index = reader->readInt(); 166 const int index = reader->readInt();
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 276
275 const SkPictInfo fInfo; 277 const SkPictInfo fInfo;
276 278
277 static void WriteFactories(SkWStream* stream, const SkFactorySet& rec); 279 static void WriteFactories(SkWStream* stream, const SkFactorySet& rec);
278 static void WriteTypefaces(SkWStream* stream, const SkRefCntSet& rec); 280 static void WriteTypefaces(SkWStream* stream, const SkRefCntSet& rec);
279 281
280 void initForPlayback() const; 282 void initForPlayback() const;
281 }; 283 };
282 284
283 #endif 285 #endif
OLDNEW
« no previous file with comments | « gyp/core.gypi ('k') | src/core/SkPicturePlayback.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698