diff options
author | 2009-04-16 20:04:08 -0700 | |
---|---|---|
committer | 2009-04-16 20:04:08 -0700 | |
commit | 01b766839e06c32540cef100e3a7710d12cf1eef (patch) | |
tree | 38528a4f4e1c99b5941f372ec617751ec48dac8c /libs/ui/SurfaceComposerClient.cpp | |
parent | 62185b7335e85211dc4d0e2003354eb3ea2e66ef (diff) |
more splitting of Surface/SurfaceControl. Surface.java is now implemented in terms of Surface and SurfaceControl.
The WindowManager side of Surface.java holds a SurfaceControl, while the client-side holds a Surface. When the client is in the system process, Surface.java holds both (which is a problem we'll try to fix later).
Diffstat (limited to 'libs/ui/SurfaceComposerClient.cpp')
-rw-r--r-- | libs/ui/SurfaceComposerClient.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/ui/SurfaceComposerClient.cpp b/libs/ui/SurfaceComposerClient.cpp index 4ccd3965c3..413167f1ec 100644 --- a/libs/ui/SurfaceComposerClient.cpp +++ b/libs/ui/SurfaceComposerClient.cpp @@ -458,7 +458,7 @@ void SurfaceComposerClient::signalServer() mSignalServer->signal(); } -sp<Surface> SurfaceComposerClient::createSurface( +sp<SurfaceControl> SurfaceComposerClient::createSurface( int pid, DisplayID display, uint32_t w, @@ -466,14 +466,14 @@ sp<Surface> SurfaceComposerClient::createSurface( PixelFormat format, uint32_t flags) { - sp<Surface> result; + sp<SurfaceControl> result; if (mStatus == NO_ERROR) { ISurfaceFlingerClient::surface_data_t data; sp<ISurface> surface = mClient->createSurface(&data, pid, display, w, h, format, flags); if (surface != 0) { if (uint32_t(data.token) < NUM_LAYERS_MAX) { - result = new Surface(this, surface, data, w, h, format, flags); + result = new SurfaceControl(this, surface, data, w, h, format, flags); } } } |