| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2006 The Android Open Source Project | 2 * Copyright 2006 The Android Open Source Project |
| 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 SkStream_DEFINED | 8 #ifndef SkStream_DEFINED |
| 9 #define SkStream_DEFINED | 9 #define SkStream_DEFINED |
| 10 | 10 |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 * Note that the encoding method used to write the SkData object | 231 * Note that the encoding method used to write the SkData object |
| 232 * to the stream may change over time. This method DOES NOT | 232 * to the stream may change over time. This method DOES NOT |
| 233 * just write the raw content of the SkData object to the stream. | 233 * just write the raw content of the SkData object to the stream. |
| 234 */ | 234 */ |
| 235 bool writeData(const SkData*); | 235 bool writeData(const SkData*); |
| 236 }; | 236 }; |
| 237 | 237 |
| 238 ////////////////////////////////////////////////////////////////////////////////
//////// | 238 ////////////////////////////////////////////////////////////////////////////////
//////// |
| 239 | 239 |
| 240 #include "SkString.h" | 240 #include "SkString.h" |
| 241 #include <stdio.h> |
| 241 | 242 |
| 242 struct SkFILE; | 243 struct SkFILE; |
| 243 | 244 |
| 244 /** A stream that wraps a C FILE* file stream. */ | 245 /** A stream that wraps a C FILE* file stream. */ |
| 245 class SK_API SkFILEStream : public SkStreamAsset { | 246 class SK_API SkFILEStream : public SkStreamAsset { |
| 246 public: | 247 public: |
| 247 SK_DECLARE_INST_COUNT(SkFILEStream) | 248 SK_DECLARE_INST_COUNT(SkFILEStream) |
| 248 | 249 |
| 249 /** Initialize the stream by calling sk_fopen on the specified path. | 250 /** Initialize the stream by calling sk_fopen on the specified path. |
| 250 * This internal stream will be closed in the destructor. | 251 * This internal stream will be closed in the destructor. |
| (...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 460 virtual void newline() SK_OVERRIDE; | 461 virtual void newline() SK_OVERRIDE; |
| 461 | 462 |
| 462 private: | 463 private: |
| 463 typedef SkWStream INHERITED; | 464 typedef SkWStream INHERITED; |
| 464 }; | 465 }; |
| 465 | 466 |
| 466 // for now | 467 // for now |
| 467 typedef SkFILEStream SkURLStream; | 468 typedef SkFILEStream SkURLStream; |
| 468 | 469 |
| 469 #endif | 470 #endif |
| OLD | NEW |