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

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

Issue 1893423002: Fix ImageFilter fuzzer issue (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Remove setOffset Created 4 years, 8 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/SkReadBuffer.cpp ('k') | src/core/SkValidatingReadBuffer.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 2013 Google Inc. 2 * Copyright 2013 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 SkValidatingReadBuffer_DEFINED 8 #ifndef SkValidatingReadBuffer_DEFINED
9 #define SkValidatingReadBuffer_DEFINED 9 #define SkValidatingReadBuffer_DEFINED
10 10
(...skipping 26 matching lines...) Expand all
37 void readString(SkString* string) override; 37 void readString(SkString* string) override;
38 void* readEncodedString(size_t* length, SkPaint::TextEncoding encoding) over ride; 38 void* readEncodedString(size_t* length, SkPaint::TextEncoding encoding) over ride;
39 39
40 // common data structures 40 // common data structures
41 SkFlattenable* readFlattenable(SkFlattenable::Type type) override; 41 SkFlattenable* readFlattenable(SkFlattenable::Type type) override;
42 void skipFlattenable() override; 42 void skipFlattenable() override;
43 void readPoint(SkPoint* point) override; 43 void readPoint(SkPoint* point) override;
44 void readMatrix(SkMatrix* matrix) override; 44 void readMatrix(SkMatrix* matrix) override;
45 void readIRect(SkIRect* rect) override; 45 void readIRect(SkIRect* rect) override;
46 void readRect(SkRect* rect) override; 46 void readRect(SkRect* rect) override;
47 void readRRect(SkRRect* rrect) override;
47 void readRegion(SkRegion* region) override; 48 void readRegion(SkRegion* region) override;
48 void readPath(SkPath* path) override; 49 void readPath(SkPath* path) override;
49 50
50 // binary data and arrays 51 // binary data and arrays
51 bool readByteArray(void* value, size_t size) override; 52 bool readByteArray(void* value, size_t size) override;
52 bool readColorArray(SkColor* colors, size_t size) override; 53 bool readColorArray(SkColor* colors, size_t size) override;
53 bool readIntArray(int32_t* values, size_t size) override; 54 bool readIntArray(int32_t* values, size_t size) override;
54 bool readPointArray(SkPoint* points, size_t size) override; 55 bool readPointArray(SkPoint* points, size_t size) override;
55 bool readScalarArray(SkScalar* values, size_t size) override; 56 bool readScalarArray(SkScalar* values, size_t size) override;
56 57
(...skipping 16 matching lines...) Expand all
73 static bool IsPtrAlign4(const void* ptr) { 74 static bool IsPtrAlign4(const void* ptr) {
74 return SkIsAlign4((uintptr_t)ptr); 75 return SkIsAlign4((uintptr_t)ptr);
75 } 76 }
76 77
77 bool fError; 78 bool fError;
78 79
79 typedef SkReadBuffer INHERITED; 80 typedef SkReadBuffer INHERITED;
80 }; 81 };
81 82
82 #endif // SkValidatingReadBuffer_DEFINED 83 #endif // SkValidatingReadBuffer_DEFINED
OLDNEW
« no previous file with comments | « src/core/SkReadBuffer.cpp ('k') | src/core/SkValidatingReadBuffer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698