| 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_
|
|
|