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

Side by Side Diff: src/core/SkReadBuffer.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/SkPerspIter.h ('k') | 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 98
99 size_t size() { return fReader.size(); } 99 size_t size() { return fReader.size(); }
100 size_t offset() { return fReader.offset(); } 100 size_t offset() { return fReader.offset(); }
101 bool eof() { return fReader.eof(); } 101 bool eof() { return fReader.eof(); }
102 virtual const void* skip(size_t size) { return fReader.skip(size); } 102 virtual const void* skip(size_t size) { return fReader.skip(size); }
103 void* readFunctionPtr() { return fReader.readPtr(); } 103 void* readFunctionPtr() { return fReader.readPtr(); }
104 104
105 // primitives 105 // primitives
106 virtual bool readBool(); 106 virtual bool readBool();
107 virtual SkColor readColor(); 107 virtual SkColor readColor();
108 virtual SkFixed readFixed();
109 virtual int32_t readInt(); 108 virtual int32_t readInt();
110 virtual SkScalar readScalar(); 109 virtual SkScalar readScalar();
111 virtual uint32_t readUInt(); 110 virtual uint32_t readUInt();
112 virtual int32_t read32(); 111 virtual int32_t read32();
113 112
114 // strings -- the caller is responsible for freeing the string contents 113 // strings -- the caller is responsible for freeing the string contents
115 virtual void readString(SkString* string); 114 virtual void readString(SkString* string);
116 virtual void* readEncodedString(size_t* length, SkPaint::TextEncoding encodi ng); 115 virtual void* readEncodedString(size_t* length, SkPaint::TextEncoding encodi ng);
117 116
118 // common data structures 117 // common data structures
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 SkPicture::InstallPixelRefProc fBitmapDecoder; 237 SkPicture::InstallPixelRefProc fBitmapDecoder;
239 238
240 #ifdef DEBUG_NON_DETERMINISTIC_ASSERT 239 #ifdef DEBUG_NON_DETERMINISTIC_ASSERT
241 // Debugging counter to keep track of how many bitmaps we 240 // Debugging counter to keep track of how many bitmaps we
242 // have decoded. 241 // have decoded.
243 int fDecodedBitmapIndex; 242 int fDecodedBitmapIndex;
244 #endif // DEBUG_NON_DETERMINISTIC_ASSERT 243 #endif // DEBUG_NON_DETERMINISTIC_ASSERT
245 }; 244 };
246 245
247 #endif // SkReadBuffer_DEFINED 246 #endif // SkReadBuffer_DEFINED
OLDNEW
« no previous file with comments | « src/core/SkPerspIter.h ('k') | src/core/SkReadBuffer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698