diff options
author | Mathias Agopian <mathias@google.com> | 2012-07-25 18:56:13 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2012-07-25 21:13:10 -0700 |
commit | c666cae2d5995097ec49a87e375e2afdd92802b7 (patch) | |
tree | 235abd54f4c3c6ed2c6b59bbade55a6459f13ed8 /include/gui | |
parent | 028508cad5ef63ef9fbd42c14e76658e4fd9ebf2 (diff) | |
download | frameworks_native-c666cae2d5995097ec49a87e375e2afdd92802b7.zip frameworks_native-c666cae2d5995097ec49a87e375e2afdd92802b7.tar.gz frameworks_native-c666cae2d5995097ec49a87e375e2afdd92802b7.tar.bz2 |
get rid of the shared-memory control block
Change-Id: If814060aca1d2ff2619d4adcd57296983d207f7f
Diffstat (limited to 'include/gui')
-rw-r--r-- | include/gui/ISurfaceComposer.h | 10 | ||||
-rw-r--r-- | include/gui/SurfaceComposerClient.h | 6 |
2 files changed, 6 insertions, 10 deletions
diff --git a/include/gui/ISurfaceComposer.h b/include/gui/ISurfaceComposer.h index 0d4a76b..315a39b 100644 --- a/include/gui/ISurfaceComposer.h +++ b/include/gui/ISurfaceComposer.h @@ -35,6 +35,7 @@ namespace android { class ComposerState; class DisplayState; +class DisplayInfo; class IDisplayEventConnection; class IMemoryHeap; @@ -102,9 +103,6 @@ public: */ virtual sp<IGraphicBufferAlloc> createGraphicBufferAlloc() = 0; - /* retrieve the control block */ - virtual sp<IMemoryHeap> getCblk() const = 0; - /* open/close transactions. requires ACCESS_SURFACE_FLINGER permission */ virtual void setTransactionState( const Vector<ComposerState>& state, @@ -145,6 +143,10 @@ public: /* triggers screen on and waits for it to complete */ virtual void unblank() = 0; + /* returns information about a physical screen. This is intended to be + * used by low-level native tests */ + virtual status_t getDisplayInfo(DisplayID dpy, DisplayInfo* info) = 0; + /* connects to an external display */ virtual void connectDisplay(const sp<ISurfaceTexture> display) = 0; }; @@ -160,7 +162,7 @@ public: BOOT_FINISHED = IBinder::FIRST_CALL_TRANSACTION, CREATE_CONNECTION, CREATE_GRAPHIC_BUFFER_ALLOC, - GET_CBLK, + GET_DISPLAY_INFO, SET_TRANSACTION_STATE, SET_ORIENTATION, CAPTURE_SCREEN, diff --git a/include/gui/SurfaceComposerClient.h b/include/gui/SurfaceComposerClient.h index aef4223..b058b8d 100644 --- a/include/gui/SurfaceComposerClient.h +++ b/include/gui/SurfaceComposerClient.h @@ -97,14 +97,8 @@ public: //! Set the orientation of the given display static int setOrientation(DisplayID dpy, int orientation, uint32_t flags); - // Query the number of displays - static ssize_t getNumberOfDisplays(); - // Get information about a display static status_t getDisplayInfo(DisplayID dpy, DisplayInfo* info); - static ssize_t getDisplayWidth(DisplayID dpy); - static ssize_t getDisplayHeight(DisplayID dpy); - static ssize_t getDisplayOrientation(DisplayID dpy); status_t linkToComposerDeath(const sp<IBinder::DeathRecipient>& recipient, void* cookie = NULL, uint32_t flags = 0); |