aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core/SkFlattenableSerialization.h
diff options
context:
space:
mode:
authorGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-08-08 19:20:05 +0000
committerGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-08-08 19:20:05 +0000
commit34504ad9242e1c45ef9c1eb74edf437992df98b4 (patch)
tree43bb4a488f0f9e6fdbcafbdd29ebb8e208cd3ac6 /include/core/SkFlattenableSerialization.h
parent274aeeff89af4eabc6c3b7277c80b48d2918bc4a (diff)
Adding 2 functions to the Skia API
I need wrappers for both SkOrderedReadBuffer and SkOrderedWriteBuffer inside Chromium in order to do the IPC serialization of Skia SkImageFilter objects. See https://codereview.chromium.org/21271002/ BUG= R=djsollen@google.com, scroggo@google.com, reed@google.com Author: sugoi@chromium.org Review URL: https://chromiumcodereview.appspot.com/22591002 git-svn-id: http://skia.googlecode.com/svn/trunk@10642 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/core/SkFlattenableSerialization.h')
-rw-r--r--include/core/SkFlattenableSerialization.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/include/core/SkFlattenableSerialization.h b/include/core/SkFlattenableSerialization.h
new file mode 100644
index 0000000000..e9076348fd
--- /dev/null
+++ b/include/core/SkFlattenableSerialization.h
@@ -0,0 +1,20 @@
+/*
+ * Copyright 2013 Google Inc.
+ *
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+#ifndef SkFlattenableSerialization_DEFINED
+#define SkFlattenableSerialization_DEFINED
+
+#include "SkTypes.h"
+
+class SkData;
+class SkFlattenable;
+
+SK_API SkData* SkSerializeFlattenable(SkFlattenable*);
+SK_API SkFlattenable* SkDeserializeFlattenable(const void* data, size_t size);
+
+#endif
+