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

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

Issue 511613002: Convert BBH APIs to use SkRect. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: another in BBH test Created 6 years, 3 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/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
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 SkPictureData(const SkPictureData& src, SkPictCopyInfo* deepCopyInfo = NULL) ; 77 SkPictureData(const SkPictureData& src, SkPictCopyInfo* deepCopyInfo = NULL) ;
78 #endif 78 #endif
79 SkPictureData(const SkPictureRecord& record, const SkPictInfo&, bool deepCop yOps); 79 SkPictureData(const SkPictureRecord& record, const SkPictInfo&, bool deepCop yOps);
80 static SkPictureData* CreateFromStream(SkStream*, 80 static SkPictureData* CreateFromStream(SkStream*,
81 const SkPictInfo&, 81 const SkPictInfo&,
82 SkPicture::InstallPixelRefProc); 82 SkPicture::InstallPixelRefProc);
83 static SkPictureData* CreateFromBuffer(SkReadBuffer&, const SkPictInfo&); 83 static SkPictureData* CreateFromBuffer(SkReadBuffer&, const SkPictInfo&);
84 84
85 virtual ~SkPictureData(); 85 virtual ~SkPictureData();
86 86
87 const SkPicture::OperationList* getActiveOps(const SkIRect& queryRect) const ; 87 const SkPicture::OperationList* getActiveOps(const SkRect& queryRect) const;
88 88
89 void serialize(SkWStream*, SkPicture::EncodeBitmap) const; 89 void serialize(SkWStream*, SkPicture::EncodeBitmap) const;
90 void flatten(SkWriteBuffer&) const; 90 void flatten(SkWriteBuffer&) const;
91 91
92 bool containsBitmaps() const; 92 bool containsBitmaps() const;
93 93
94 bool hasText() const { return fContentInfo.hasText(); } 94 bool hasText() const { return fContentInfo.hasText(); }
95 95
96 int opCount() const { return fContentInfo.numOperations(); } 96 int opCount() const { return fContentInfo.numOperations(); }
97 97
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 204
205 const SkPictInfo fInfo; 205 const SkPictInfo fInfo;
206 206
207 static void WriteFactories(SkWStream* stream, const SkFactorySet& rec); 207 static void WriteFactories(SkWStream* stream, const SkFactorySet& rec);
208 static void WriteTypefaces(SkWStream* stream, const SkRefCntSet& rec); 208 static void WriteTypefaces(SkWStream* stream, const SkRefCntSet& rec);
209 209
210 void initForPlayback() const; 210 void initForPlayback() const;
211 }; 211 };
212 212
213 #endif 213 #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