diff options
| author | 2010-02-11 17:30:52 -0800 | |
|---|---|---|
| committer | 2010-02-21 23:27:25 -0800 | |
| commit | c86727f5805f28fbd25da141c50fb6843f364f3a (patch) | |
| tree | 395806614f40b9aac7306a9e951305167fb8abe1 /libs/utils/Flattenable.cpp | |
| parent | 08d13c3cbb0b250b84ca861edb462060556aead9 (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.cpp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/libs/utils/Flattenable.cpp b/libs/utils/Flattenable.cpp new file mode 100644 index 000000000000..1f2ffaa281b3 --- /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 |