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

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

Issue 783393004: Revert of Replace EncodeBitmap with an interface. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years 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/SkPicture.cpp ('k') | src/core/SkPictureData.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 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
11 #include "SkBitmap.h" 11 #include "SkBitmap.h"
12 #include "SkPicture.h" 12 #include "SkPicture.h"
13 #include "SkPictureContentInfo.h" 13 #include "SkPictureContentInfo.h"
14 #include "SkPictureFlat.h" 14 #include "SkPictureFlat.h"
15 15
16 class SkData; 16 class SkData;
17 class SkPictureRecord; 17 class SkPictureRecord;
18 class SkPixelSerializer;
19 class SkReader32; 18 class SkReader32;
20 class SkStream; 19 class SkStream;
21 class SkWStream; 20 class SkWStream;
22 class SkBBoxHierarchy; 21 class SkBBoxHierarchy;
23 class SkMatrix; 22 class SkMatrix;
24 class SkPaint; 23 class SkPaint;
25 class SkPath; 24 class SkPath;
26 class SkReadBuffer; 25 class SkReadBuffer;
27 class SkTextBlob; 26 class SkTextBlob;
28 27
(...skipping 29 matching lines...) Expand all
58 class SkPictureData { 57 class SkPictureData {
59 public: 58 public:
60 SkPictureData(const SkPictureRecord& record, const SkPictInfo&, bool deepCop yOps); 59 SkPictureData(const SkPictureRecord& record, const SkPictInfo&, bool deepCop yOps);
61 static SkPictureData* CreateFromStream(SkStream*, 60 static SkPictureData* CreateFromStream(SkStream*,
62 const SkPictInfo&, 61 const SkPictInfo&,
63 SkPicture::InstallPixelRefProc); 62 SkPicture::InstallPixelRefProc);
64 static SkPictureData* CreateFromBuffer(SkReadBuffer&, const SkPictInfo&); 63 static SkPictureData* CreateFromBuffer(SkReadBuffer&, const SkPictInfo&);
65 64
66 virtual ~SkPictureData(); 65 virtual ~SkPictureData();
67 66
68 void serialize(SkWStream*, SkPixelSerializer*) const; 67 void serialize(SkWStream*, SkPicture::EncodeBitmap) const;
69 void flatten(SkWriteBuffer&) const; 68 void flatten(SkWriteBuffer&) const;
70 69
71 bool containsBitmaps() const; 70 bool containsBitmaps() const;
72 71
73 bool hasText() const { return fContentInfo.hasText(); } 72 bool hasText() const { return fContentInfo.hasText(); }
74 73
75 int opCount() const { return fContentInfo.numOperations(); } 74 int opCount() const { return fContentInfo.numOperations(); }
76 75
77 const SkData* opData() const { return fOpData; } 76 const SkData* opData() const { return fOpData; }
78 77
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 160
162 const SkPictInfo fInfo; 161 const SkPictInfo fInfo;
163 162
164 static void WriteFactories(SkWStream* stream, const SkFactorySet& rec); 163 static void WriteFactories(SkWStream* stream, const SkFactorySet& rec);
165 static void WriteTypefaces(SkWStream* stream, const SkRefCntSet& rec); 164 static void WriteTypefaces(SkWStream* stream, const SkRefCntSet& rec);
166 165
167 void initForPlayback() const; 166 void initForPlayback() const;
168 }; 167 };
169 168
170 #endif 169 #endif
OLDNEW
« no previous file with comments | « src/core/SkPicture.cpp ('k') | src/core/SkPictureData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698