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

Unified Diff: include/core/SkRWBuffer.h

Issue 1856033002: Add SK_API to SkROBuffer::Iter (Closed) Base URL: https://skia.googlesource.com/skia.git@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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkRWBuffer.h
diff --git a/include/core/SkRWBuffer.h b/include/core/SkRWBuffer.h
index 452e182d940f1b544151aae8dbc914b321a2f579..106e572587d8dcaa13d84e792bef40444e207696 100644
--- a/include/core/SkRWBuffer.h
+++ b/include/core/SkRWBuffer.h
@@ -26,8 +26,8 @@ public:
* multiple contiguous blocks, accessible via the iterator.
*/
size_t size() const { return fUsed; }
-
- class Iter {
+
+ class SK_API Iter {
public:
Iter(const SkROBuffer*);
@@ -58,10 +58,10 @@ public:
private:
SkROBuffer(const SkBufferHead* head, size_t used);
virtual ~SkROBuffer();
-
+
const SkBufferHead* fHead;
const size_t fUsed;
-
+
friend class SkRWBuffer;
};
@@ -74,14 +74,14 @@ class SK_API SkRWBuffer {
public:
SkRWBuffer(size_t initialCapacity = 0);
~SkRWBuffer();
-
+
size_t size() const { return fTotalUsed; }
void append(const void* buffer, size_t length);
void* append(size_t length);
SkROBuffer* newRBufferSnapshot() const;
SkStreamAsset* newStreamSnapshot() const;
-
+
#ifdef SK_DEBUG
void validate() const;
#else
« 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