summaryrefslogtreecommitdiffstats
path: root/include/surfaceflinger
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2010-03-01 16:09:43 -0800
committerMathias Agopian <mathias@google.com>2010-03-01 18:34:50 -0800
commit5d26c1e38dabb3ad8b4b6e1000375f3b1a6b7693 (patch)
tree6ba3c3a0a6a5de37d65c07690de84080a91db3b3 /include/surfaceflinger
parent69f22feb8540576d2a2e9d32f9c86ebbbf309409 (diff)
downloadframeworks_base-5d26c1e38dabb3ad8b4b6e1000375f3b1a6b7693.zip
frameworks_base-5d26c1e38dabb3ad8b4b6e1000375f3b1a6b7693.tar.gz
frameworks_base-5d26c1e38dabb3ad8b4b6e1000375f3b1a6b7693.tar.bz2
Added a name to Surface created by SurfaceFlinger
Updated the window manager to use this new facility. Surfaces name are now printed by "dumpsys".
Diffstat (limited to 'include/surfaceflinger')
-rw-r--r--include/surfaceflinger/ISurfaceFlingerClient.h1
-rw-r--r--include/surfaceflinger/SurfaceComposerClient.h11
2 files changed, 12 insertions, 0 deletions
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<ISurface> 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<SurfaceControl> 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<SurfaceControl> 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