Index: cc/proto/picture_cache_conversions.h |
diff --git a/cc/proto/picture_cache_conversions.h b/cc/proto/picture_cache_conversions.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..ef015faa9e73cb9f5d0af4c9213fd72094b51437 |
--- /dev/null |
+++ b/cc/proto/picture_cache_conversions.h |
@@ -0,0 +1,28 @@ |
+// Copyright 2016 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CC_PROTO_PICTURE_CACHE_CONVERSIONS_H_ |
+#define CC_PROTO_PICTURE_CACHE_CONVERSIONS_H_ |
+ |
+#include <memory> |
+ |
+#include "cc/base/cc_export.h" |
+#include "cc/proto/picture_cache.h" |
+ |
+namespace cc { |
+ |
+namespace proto { |
+class SkPictures; |
+ |
+CC_EXPORT void PictureDataVectorToSkPicturesProto( |
+ const PictureCacheUpdate& cache_update, |
+ SkPictures* proto_pictures); |
+ |
+CC_EXPORT PictureCacheUpdate |
+SkPicturesProtoToPictureDataVector(const SkPictures& proto_pictures); |
+ |
+} // namespace proto |
+} // namespace cc |
+ |
+#endif // CC_PROTO_PICTURE_CACHE_CONVERSIONS_H_ |