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

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

Issue 317003003: Fixing another clusterfuzz issue (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Removed changes to readPoint Created 6 years, 6 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/SkReadBuffer.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 SkReadBuffer_DEFINED 8 #ifndef SkReadBuffer_DEFINED
9 #define SkReadBuffer_DEFINED 9 #define SkReadBuffer_DEFINED
10 10
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 } 77 }
78 bool isScalarFloat() const { return SkToBool(fFlags & kScalarIsFloat_Flag); } 78 bool isScalarFloat() const { return SkToBool(fFlags & kScalarIsFloat_Flag); }
79 bool isPtr64Bit() const { return SkToBool(fFlags & kPtrIs64Bit_Flag); } 79 bool isPtr64Bit() const { return SkToBool(fFlags & kPtrIs64Bit_Flag); }
80 bool isValidating() const { return SkToBool(fFlags & kValidation_Flag); } 80 bool isValidating() const { return SkToBool(fFlags & kValidation_Flag); }
81 81
82 SkReader32* getReader32() { return &fReader; } 82 SkReader32* getReader32() { return &fReader; }
83 83
84 size_t size() { return fReader.size(); } 84 size_t size() { return fReader.size(); }
85 size_t offset() { return fReader.offset(); } 85 size_t offset() { return fReader.offset(); }
86 bool eof() { return fReader.eof(); } 86 bool eof() { return fReader.eof(); }
87 const void* skip(size_t size) { return fReader.skip(size); } 87 virtual const void* skip(size_t size) { return fReader.skip(size); }
88 void* readFunctionPtr() { return fReader.readPtr(); } 88 void* readFunctionPtr() { return fReader.readPtr(); }
89 89
90 // primitives 90 // primitives
91 virtual bool readBool(); 91 virtual bool readBool();
92 virtual SkColor readColor(); 92 virtual SkColor readColor();
93 virtual SkFixed readFixed(); 93 virtual SkFixed readFixed();
94 virtual int32_t readInt(); 94 virtual int32_t readInt();
95 virtual SkScalar readScalar(); 95 virtual SkScalar readScalar();
96 virtual uint32_t readUInt(); 96 virtual uint32_t readUInt();
97 virtual int32_t read32(); 97 virtual int32_t read32();
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 SkPicture::InstallPixelRefProc fBitmapDecoder; 224 SkPicture::InstallPixelRefProc fBitmapDecoder;
225 225
226 #ifdef DEBUG_NON_DETERMINISTIC_ASSERT 226 #ifdef DEBUG_NON_DETERMINISTIC_ASSERT
227 // Debugging counter to keep track of how many bitmaps we 227 // Debugging counter to keep track of how many bitmaps we
228 // have decoded. 228 // have decoded.
229 int fDecodedBitmapIndex; 229 int fDecodedBitmapIndex;
230 #endif // DEBUG_NON_DETERMINISTIC_ASSERT 230 #endif // DEBUG_NON_DETERMINISTIC_ASSERT
231 }; 231 };
232 232
233 #endif // SkReadBuffer_DEFINED 233 #endif // SkReadBuffer_DEFINED
OLDNEW
« no previous file with comments | « no previous file | src/core/SkReadBuffer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698