OLD | NEW |
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 |
11 #include "SkRefCnt.h" | 11 #include "SkRefCnt.h" |
12 #include "SkBitmapHeap.h" | |
13 #include "SkReadBuffer.h" | 12 #include "SkReadBuffer.h" |
14 #include "SkWriteBuffer.h" | 13 #include "SkWriteBuffer.h" |
15 #include "SkPath.h" | 14 #include "SkPath.h" |
16 #include "SkPicture.h" | 15 #include "SkPicture.h" |
17 #include "SkReader32.h" | 16 #include "SkReader32.h" |
18 | 17 |
19 class SkBitmap; | 18 class SkBitmap; |
20 | 19 |
21 class SkValidatingReadBuffer : public SkReadBuffer { | 20 class SkValidatingReadBuffer : public SkReadBuffer { |
22 public: | 21 public: |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 static bool IsPtrAlign4(const void* ptr) { | 78 static bool IsPtrAlign4(const void* ptr) { |
80 return SkIsAlign4((uintptr_t)ptr); | 79 return SkIsAlign4((uintptr_t)ptr); |
81 } | 80 } |
82 | 81 |
83 bool fError; | 82 bool fError; |
84 | 83 |
85 typedef SkReadBuffer INHERITED; | 84 typedef SkReadBuffer INHERITED; |
86 }; | 85 }; |
87 | 86 |
88 #endif // SkValidatingReadBuffer_DEFINED | 87 #endif // SkValidatingReadBuffer_DEFINED |
OLD | NEW |