summaryrefslogtreecommitdiffstats
path: root/include
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
commit285dbde2e0cd0057be070ded3be8f5f453147edc (patch)
treeb9b6c52aae0b3dffef51d7113713ffad60a6a365 /include
parent46a26c63ed0a4322551ae0d8bac3c558d45d20dc (diff)
downloadframeworks_native-285dbde2e0cd0057be070ded3be8f5f453147edc.zip
frameworks_native-285dbde2e0cd0057be070ded3be8f5f453147edc.tar.gz
frameworks_native-285dbde2e0cd0057be070ded3be8f5f453147edc.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')
-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