diff options
author | Denis 'GNUtoo' Carikli <GNUtoo@no-log.org> | 2011-01-09 23:25:03 +0100 |
---|---|---|
committer | Denis 'GNUtoo' Carikli <GNUtoo@no-log.org> | 2011-01-09 23:32:18 +0100 |
commit | 5dbc8f9e4907a455cf187574007d34daf414479a (patch) | |
tree | c77faa7b2c536067fd63e9093f845ebd06b60e19 /cmds | |
parent | c6bf87d75456e2ade54acf79beff0d2045466a24 (diff) | |
download | frameworks_base-5dbc8f9e4907a455cf187574007d34daf414479a.zip frameworks_base-5dbc8f9e4907a455cf187574007d34daf414479a.tar.gz frameworks_base-5dbc8f9e4907a455cf187574007d34daf414479a.tar.bz2 |
surfaceflinger and libagl: fix bug #11829
The bug #11829 that can be found here:
http://code.google.com/p/android/issues/detail?id=11829
causes various graphic artefacts.
According to naseer.ahmed it needed modifications in SurfaceFlinger and libagl
The modifications comes from:
https://www.codeaurora.org/gitweb/quic/la/?p=platform/frameworks/base.git;a=shortlog;h=refs/heads/froyo_almond
at commit 33e6506d96d7602284e18ea8c66dbfd04dc72aa3
Change-Id: I703bace69cb7a41ac8ed69ca1e28b98aa618e0f3
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@no-log.org>
Diffstat (limited to 'cmds')
-rw-r--r-- | cmds/surfaceflinger/surfaceflinger/Android.mk | 17 | ||||
-rw-r--r-- | cmds/surfaceflinger/surfaceflinger/main_surfaceflinger.cpp | 18 |
2 files changed, 35 insertions, 0 deletions
diff --git a/cmds/surfaceflinger/surfaceflinger/Android.mk b/cmds/surfaceflinger/surfaceflinger/Android.mk new file mode 100644 index 0000000..69afbdc --- /dev/null +++ b/cmds/surfaceflinger/surfaceflinger/Android.mk @@ -0,0 +1,17 @@ +LOCAL_PATH:= $(call my-dir) +include $(CLEAR_VARS) + +LOCAL_SRC_FILES:= \ + main_surfaceflinger.cpp + +LOCAL_SHARED_LIBRARIES := \ + libsurfaceflinger \ + libbinder \ + libutils + +LOCAL_C_INCLUDES := \ + $(LOCAL_PATH)/../../libs/surfaceflinger + +LOCAL_MODULE:= surfaceflinger + +include $(BUILD_EXECUTABLE) diff --git a/cmds/surfaceflinger/surfaceflinger/main_surfaceflinger.cpp b/cmds/surfaceflinger/surfaceflinger/main_surfaceflinger.cpp new file mode 100644 index 0000000..d650721 --- /dev/null +++ b/cmds/surfaceflinger/surfaceflinger/main_surfaceflinger.cpp @@ -0,0 +1,18 @@ +#include <binder/IPCThreadState.h> +#include <binder/ProcessState.h> +#include <binder/IServiceManager.h> +#include <utils/Log.h> + +#include <SurfaceFlinger.h> + +using namespace android; + +int main(int argc, char** argv) +{ + sp<ProcessState> proc(ProcessState::self()); + sp<IServiceManager> sm = defaultServiceManager(); + LOGI("ServiceManager: %p", sm.get()); + SurfaceFlinger::instantiate(); + ProcessState::self()->startThreadPool(); + IPCThreadState::self()->joinThreadPool(); +} |