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

Side by Side Diff: include/core/SkWriteBuffer.h

Issue 1936563002: remove SkWriteBuffer::getWriter32(). (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 7 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 | « no previous file | src/core/SkWriteBuffer.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 /* 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 8
9 #ifndef SkWriteBuffer_DEFINED 9 #ifndef SkWriteBuffer_DEFINED
10 #define SkWriteBuffer_DEFINED 10 #define SkWriteBuffer_DEFINED
(...skipping 20 matching lines...) Expand all
31 }; 31 };
32 32
33 SkWriteBuffer(uint32_t flags = 0); 33 SkWriteBuffer(uint32_t flags = 0);
34 SkWriteBuffer(void* initialStorage, size_t storageSize, uint32_t flags = 0); 34 SkWriteBuffer(void* initialStorage, size_t storageSize, uint32_t flags = 0);
35 ~SkWriteBuffer(); 35 ~SkWriteBuffer();
36 36
37 bool isCrossProcess() const { 37 bool isCrossProcess() const {
38 return SkToBool(fFlags & kCrossProcess_Flag); 38 return SkToBool(fFlags & kCrossProcess_Flag);
39 } 39 }
40 40
41 SkWriter32* getWriter32() { return &fWriter; }
42 void reset(void* storage = NULL, size_t storageSize = 0) { 41 void reset(void* storage = NULL, size_t storageSize = 0) {
43 fWriter.reset(storage, storageSize); 42 fWriter.reset(storage, storageSize);
44 } 43 }
45 44
46 size_t bytesWritten() const { return fWriter.bytesWritten(); } 45 size_t bytesWritten() const { return fWriter.bytesWritten(); }
47 46
48 void writeByteArray(const void* data, size_t size); 47 void writeByteArray(const void* data, size_t size);
49 void writeDataAsByteArray(SkData* data) { this->writeByteArray(data->data(), data->size()); } 48 void writeDataAsByteArray(SkData* data) { this->writeByteArray(data->data(), data->size()); }
50 void writeBool(bool value); 49 void writeBool(bool value);
51 void writeScalar(SkScalar value); 50 void writeScalar(SkScalar value);
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 SkBitmapHeap* fBitmapHeap; 112 SkBitmapHeap* fBitmapHeap;
114 SkRefCntSet* fTFSet; 113 SkRefCntSet* fTFSet;
115 114
116 SkAutoTUnref<SkPixelSerializer> fPixelSerializer; 115 SkAutoTUnref<SkPixelSerializer> fPixelSerializer;
117 116
118 // Only used if we do not have an fFactorySet 117 // Only used if we do not have an fFactorySet
119 SkTHashMap<SkString, uint32_t> fFlattenableDict; 118 SkTHashMap<SkString, uint32_t> fFlattenableDict;
120 }; 119 };
121 120
122 #endif // SkWriteBuffer_DEFINED 121 #endif // SkWriteBuffer_DEFINED
OLDNEW
« no previous file with comments | « no previous file | src/core/SkWriteBuffer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698