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

Unified Diff: skia/ext/skia_utils_base.h

Issue 2653963002: [Experimental] Supporting OOPIF printing
Patch Set: Rename service, fix for webview, and connect to DiscardableMemoryManager Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « skia/ext/SkFutureDrawable.cc ('k') | skia/ext/skia_utils_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/ext/skia_utils_base.h
diff --git a/skia/ext/skia_utils_base.h b/skia/ext/skia_utils_base.h
index 6af5cf7451d1f5c68ab271ce07327de727c118da..ac0d43cb29750b60453368f6358342241de1ab3b 100644
--- a/skia/ext/skia_utils_base.h
+++ b/skia/ext/skia_utils_base.h
@@ -5,9 +5,13 @@
#ifndef SKIA_EXT_SKIA_UTILS_BASE_H_
#define SKIA_EXT_SKIA_UTILS_BASE_H_
+#include <memory>
+#include <vector>
+
#include "base/pickle.h"
-#include "third_party/skia/include/ports/SkFontConfigInterface.h"
+#include "skia/ext/SkFutureDrawable.h"
#include "third_party/skia/include/core/SkSurfaceProps.h"
+#include "third_party/skia/include/ports/SkFontConfigInterface.h"
namespace skia {
@@ -38,6 +42,13 @@ SK_API bool WriteSkFontStyle(base::Pickle* pickle, SkFontStyle style);
// Determine the default pixel geometry (for LCD) by querying the font host
SK_API SkPixelGeometry ComputeDefaultPixelGeometry();
+// Create a SkDrawable from flattened data buffer.
+SK_API std::unique_ptr<SkDrawable> ReadDrawable(const char* buffer,
+ size_t size);
+
+// Flatten a SkDrawable and write into a data buffer.
+SK_API std::vector<char> WriteDrawable(SkDrawable* drawable);
+
} // namespace skia
#endif // SKIA_EXT_SKIA_UTILS_BASE_H_
« no previous file with comments | « skia/ext/SkFutureDrawable.cc ('k') | skia/ext/skia_utils_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698