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

Unified Diff: src/core/SkStreamPriv.h

Issue 340783013: Switch SkPDFStream's internal storage from SkStream to SkData (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 6 years, 6 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 | « src/core/SkStream.cpp ('k') | src/images/SkImageDecoder_ktx.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkStreamPriv.h
diff --git a/src/images/SkStreamHelpers.h b/src/core/SkStreamPriv.h
similarity index 69%
rename from src/images/SkStreamHelpers.h
rename to src/core/SkStreamPriv.h
index 008dd8e17a05f75b60e309a44578c2aa0b5c04d3..5b5a73adef0f7368bc6df2159af55e116a9d48fd 100644
--- a/src/images/SkStreamHelpers.h
+++ b/src/core/SkStreamPriv.h
@@ -5,8 +5,8 @@
* found in the LICENSE file.
*/
-#ifndef SkStreamHelpers_DEFINED
-#define SkStreamHelpers_DEFINED
+#ifndef SkStreamPriv_DEFINED
+#define SkStreamPriv_DEFINED
class SkAutoMalloc;
class SkStream;
@@ -23,14 +23,15 @@ class SkData;
* @return size_t Total number of bytes in the SkStream, which is also the
* number of bytes pointed to by storage->get(). Returns 0 on failure.
*/
-size_t CopyStreamToStorage(SkAutoMalloc* storage, SkStream* stream);
+size_t SkCopyStreamToStorage(SkAutoMalloc* storage, SkStream* stream);
/**
- * Copy the provided stream to an SkData variable. Used by SkImageDecoder_libktx.
+ * Copy the provided stream to an SkData variable.
* @param stream SkStream to be copied into data.
- * @return SkData* The resulting SkData after the copy. This data will have a
- * ref count of one upon return and belongs to the caller. Returns NULL on failure.
+ * @return SkData* The resulting SkData after the copy. This data
+ * will have a ref count of one upon return and belongs to the
+ * caller. Returns NULL on failure.
*/
-SkData *CopyStreamToData(SkStream* stream);
+SkData *SkCopyStreamToData(SkStream* stream);
-#endif // SkStreamHelpers_DEFINED
+#endif // SkStreamPriv_DEFINED
« no previous file with comments | « src/core/SkStream.cpp ('k') | src/images/SkImageDecoder_ktx.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698