From 5d26c1e38dabb3ad8b4b6e1000375f3b1a6b7693 Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Mon, 1 Mar 2010 16:09:43 -0800 Subject: Added a name to Surface created by SurfaceFlinger Updated the window manager to use this new facility. Surfaces name are now printed by "dumpsys". --- include/surfaceflinger/ISurfaceFlingerClient.h | 1 + include/surfaceflinger/SurfaceComposerClient.h | 11 +++++++++++ 2 files changed, 12 insertions(+) (limited to 'include') diff --git a/include/surfaceflinger/ISurfaceFlingerClient.h b/include/surfaceflinger/ISurfaceFlingerClient.h index 1fba162..d257645 100644 --- a/include/surfaceflinger/ISurfaceFlingerClient.h +++ b/include/surfaceflinger/ISurfaceFlingerClient.h @@ -61,6 +61,7 @@ public: virtual sp createSurface( surface_data_t* data, int pid, + const String8& name, DisplayID display, uint32_t w, uint32_t h, diff --git a/include/surfaceflinger/SurfaceComposerClient.h b/include/surfaceflinger/SurfaceComposerClient.h index 49e83c0..9d0f0cb 100644 --- a/include/surfaceflinger/SurfaceComposerClient.h +++ b/include/surfaceflinger/SurfaceComposerClient.h @@ -65,6 +65,7 @@ public: //! Create a surface sp createSurface( int pid, // pid of the process the surface is for + const String8& name,// name of the surface DisplayID display, // Display to create this surface on uint32_t w, // width in pixel uint32_t h, // height in pixel @@ -72,6 +73,16 @@ public: uint32_t flags = 0 // usage flags ); + sp createSurface( + int pid, // pid of the process the surface is for + DisplayID display, // Display to create this surface on + uint32_t w, // width in pixel + uint32_t h, // height in pixel + PixelFormat format, // pixel-format desired + uint32_t flags = 0 // usage flags + ); + + // ------------------------------------------------------------------------ // Composer parameters // All composer parameters must be changed within a transaction -- cgit v1.1