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

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

Issue 1841123002: Reverse dependency between SkScalar.h and SkFixed.h (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: 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/SkString.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 10 matching lines...) Expand all
21 class SkValidatingReadBuffer : public SkReadBuffer { 21 class SkValidatingReadBuffer : public SkReadBuffer {
22 public: 22 public:
23 SkValidatingReadBuffer(const void* data, size_t size); 23 SkValidatingReadBuffer(const void* data, size_t size);
24 virtual ~SkValidatingReadBuffer(); 24 virtual ~SkValidatingReadBuffer();
25 25
26 const void* skip(size_t size) override; 26 const void* skip(size_t size) override;
27 27
28 // primitives 28 // primitives
29 bool readBool() override; 29 bool readBool() override;
30 SkColor readColor() override; 30 SkColor readColor() override;
31 SkFixed readFixed() override;
32 int32_t readInt() override; 31 int32_t readInt() override;
33 SkScalar readScalar() override; 32 SkScalar readScalar() override;
34 uint32_t readUInt() override; 33 uint32_t readUInt() override;
35 int32_t read32() override; 34 int32_t read32() override;
36 35
37 // strings -- the caller is responsible for freeing the string contents 36 // strings -- the caller is responsible for freeing the string contents
38 void readString(SkString* string) override; 37 void readString(SkString* string) override;
39 void* readEncodedString(size_t* length, SkPaint::TextEncoding encoding) over ride; 38 void* readEncodedString(size_t* length, SkPaint::TextEncoding encoding) over ride;
40 39
41 // common data structures 40 // common data structures
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 static bool IsPtrAlign4(const void* ptr) { 73 static bool IsPtrAlign4(const void* ptr) {
75 return SkIsAlign4((uintptr_t)ptr); 74 return SkIsAlign4((uintptr_t)ptr);
76 } 75 }
77 76
78 bool fError; 77 bool fError;
79 78
80 typedef SkReadBuffer INHERITED; 79 typedef SkReadBuffer INHERITED;
81 }; 80 };
82 81
83 #endif // SkValidatingReadBuffer_DEFINED 82 #endif // SkValidatingReadBuffer_DEFINED
OLDNEW
« no previous file with comments | « src/core/SkString.cpp ('k') | src/core/SkValidatingReadBuffer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698