summaryrefslogtreecommitdiff
path: root/include/gui/Surface.h
diff options
context:
space:
mode:
author Mathias Agopian <mathias@google.com> 2017-02-08 17:04:18 -0800
committer Mathias Agopian <mathias@google.com> 2017-02-09 23:07:31 +0000
commit05debe1d787b7471c2bc9c8f7569a338ca5c7ad4 (patch)
tree3c36416857b2879af76b13879ffd3073d21cee42 /include/gui/Surface.h
parent5c0a87e5a2cba5c1b199e77f3a42e931e706569b (diff)
Split view::Surface out of Surface.cpp
it’s moved into a new view/Surface.cpp, header in gui/view/Surface.h their entanglement also meant that code that needs only view::Surface ended up with all of Surface dependencies. Test: built and booted device Bug: treble Change-Id: I1a350d258f124fbe0a7bc5a2ca165311dcb0d8e3
Diffstat (limited to 'include/gui/Surface.h')
-rw-r--r--include/gui/Surface.h41
1 files changed, 1 insertions, 40 deletions
diff --git a/include/gui/Surface.h b/include/gui/Surface.h
index 60203f7c4f..c3014b2696 100644
--- a/include/gui/Surface.h
+++ b/include/gui/Surface.h
@@ -17,8 +17,6 @@
#ifndef ANDROID_GUI_SURFACE_H
#define ANDROID_GUI_SURFACE_H
-#include <binder/Parcelable.h>
-
#include <gui/IGraphicBufferProducer.h>
#include <gui/BufferQueueDefs.h>
@@ -410,43 +408,6 @@ protected:
std::unique_ptr<ProducerFrameEventHistory> mFrameEventHistory;
};
-namespace view {
-
-/**
- * A simple holder for an IGraphicBufferProducer, to match the managed-side
- * android.view.Surface parcelable behavior.
- *
- * This implements android/view/Surface.aidl
- *
- * TODO: Convert IGraphicBufferProducer into AIDL so that it can be directly
- * used in managed Binder calls.
- */
-class Surface : public Parcelable {
- public:
-
- String16 name;
- sp<IGraphicBufferProducer> graphicBufferProducer;
-
- virtual status_t writeToParcel(Parcel* parcel) const override;
- virtual status_t readFromParcel(const Parcel* parcel) override;
-
- // nameAlreadyWritten set to true by Surface.java, because it splits
- // Parceling itself between managed and native code, so it only wants a part
- // of the full parceling to happen on its native side.
- status_t writeToParcel(Parcel* parcel, bool nameAlreadyWritten) const;
-
- // nameAlreadyRead set to true by Surface.java, because it splits
- // Parceling itself between managed and native code, so it only wants a part
- // of the full parceling to happen on its native side.
- status_t readFromParcel(const Parcel* parcel, bool nameAlreadyRead);
-
- private:
-
- static String16 readMaybeEmptyString16(const Parcel* parcel);
-};
-
-} // namespace view
-
-}; // namespace android
+} // namespace android
#endif // ANDROID_GUI_SURFACE_H