summaryrefslogtreecommitdiff
path: root/libs/utils/Flattenable.cpp
diff options
context:
space:
mode:
author Mathias Agopian <mathias@google.com> 2010-02-11 17:30:52 -0800
committer Mathias Agopian <mathias@google.com> 2010-02-21 23:27:25 -0800
commit98e71ddaede9a0bfb681fd237bec1f66c6c53193 (patch)
treeb99491347832c92e1e5af62d11d3a9baf946dd18 /libs/utils/Flattenable.cpp
parente4f5055ad281096e5b89c4240be29d2c95a43b65 (diff)
remove a dependency of GraphicBuffer (libui) on Parcel (libbinder).
Add a Flattenable interface to libutils which can be used to flatten an object into bytestream + filedescriptor stream. Parcel is modified to handle Flattenable. And GraphicBuffer implements Flattenable. Except for the overlay classes libui is now independent of libbinder.
Diffstat (limited to 'libs/utils/Flattenable.cpp')
-rw-r--r--libs/utils/Flattenable.cpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/libs/utils/Flattenable.cpp b/libs/utils/Flattenable.cpp
new file mode 100644
index 0000000000..1f2ffaa281
--- /dev/null
+++ b/libs/utils/Flattenable.cpp
@@ -0,0 +1,24 @@
+/*
+ * Copyright (C) 2006 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#include <utils/Flattenable.h>
+
+namespace android {
+
+Flattenable::~Flattenable() {
+}
+
+}; // namespace android