diff options
| author | 2012-10-19 18:19:11 -0700 | |
|---|---|---|
| committer | 2012-10-22 13:41:21 -0700 | |
| commit | dd3cb84cfbe8068790c6233b5829fae9c4a0ee93 (patch) | |
| tree | 366d14c7147f365dd47f85f418e262dec0427141 /libs/gui/SurfaceComposerClient.cpp | |
| parent | 60393d45207b6548e1f61ca104fa59aecee87d30 (diff) | |
SurfaceFlinger: add support for secure displays
This change adds support for displays that are not allowed to display surfaces
with the eSecure flag set. All non-virtual displays are considered secure,
while virtual displays have their secure-ness specified at creation time.
Bug: 7368436
Change-Id: I81ad535d2d1e5a7ff78269017e85b111f0098500
Diffstat (limited to 'libs/gui/SurfaceComposerClient.cpp')
| -rw-r--r-- | libs/gui/SurfaceComposerClient.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/libs/gui/SurfaceComposerClient.cpp b/libs/gui/SurfaceComposerClient.cpp index 8586ed2184..80dd6ee96a 100644 --- a/libs/gui/SurfaceComposerClient.cpp +++ b/libs/gui/SurfaceComposerClient.cpp @@ -131,7 +131,7 @@ class Composer : public Singleton<Composer> DisplayState& getDisplayStateLocked(const sp<IBinder>& token); public: - sp<IBinder> createDisplay(const String8& displayName); + sp<IBinder> createDisplay(const String8& displayName, bool secure); sp<IBinder> getBuiltInDisplay(int32_t id); status_t setPosition(const sp<SurfaceComposerClient>& client, SurfaceID id, @@ -175,8 +175,9 @@ ANDROID_SINGLETON_STATIC_INSTANCE(Composer); // --------------------------------------------------------------------------- -sp<IBinder> Composer::createDisplay(const String8& displayName) { - return ComposerService::getComposerService()->createDisplay(displayName); +sp<IBinder> Composer::createDisplay(const String8& displayName, bool secure) { + return ComposerService::getComposerService()->createDisplay(displayName, + secure); } sp<IBinder> Composer::getBuiltInDisplay(int32_t id) { @@ -459,8 +460,9 @@ sp<SurfaceControl> SurfaceComposerClient::createSurface( return result; } -sp<IBinder> SurfaceComposerClient::createDisplay(const String8& displayName) { - return Composer::getInstance().createDisplay(displayName); +sp<IBinder> SurfaceComposerClient::createDisplay(const String8& displayName, + bool secure) { + return Composer::getInstance().createDisplay(displayName, secure); } sp<IBinder> SurfaceComposerClient::getBuiltInDisplay(int32_t id) { |