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

Side by Side Diff: include/core/SkStream.h

Issue 1808683002: add missing API (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 9 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 | « no previous file | no next file » | 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 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 352 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 void flush() override; 363 void flush() override;
364 void fsync(); 364 void fsync();
365 size_t bytesWritten() const override; 365 size_t bytesWritten() const override;
366 366
367 private: 367 private:
368 FILE* fFILE; 368 FILE* fFILE;
369 369
370 typedef SkWStream INHERITED; 370 typedef SkWStream INHERITED;
371 }; 371 };
372 372
373 class SkMemoryWStream : public SkWStream { 373 class SK_API SkMemoryWStream : public SkWStream {
374 public: 374 public:
375 SkMemoryWStream(void* buffer, size_t size); 375 SkMemoryWStream(void* buffer, size_t size);
376 bool write(const void* buffer, size_t size) override; 376 bool write(const void* buffer, size_t size) override;
377 size_t bytesWritten() const override { return fBytesWritten; } 377 size_t bytesWritten() const override { return fBytesWritten; }
378 378
379 private: 379 private:
380 char* fBuffer; 380 char* fBuffer;
381 size_t fMaxLength; 381 size_t fMaxLength;
382 size_t fBytesWritten; 382 size_t fBytesWritten;
383 383
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
441 441
442 private: 442 private:
443 size_t fBytesWritten; 443 size_t fBytesWritten;
444 typedef SkWStream INHERITED; 444 typedef SkWStream INHERITED;
445 }; 445 };
446 446
447 // for now 447 // for now
448 typedef SkFILEStream SkURLStream; 448 typedef SkFILEStream SkURLStream;
449 449
450 #endif 450 #endif
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698