summaryrefslogtreecommitdiffstats
path: root/libs/surfaceflinger/GPUHardware/GPUHardware.cpp
diff options
context:
space:
mode:
authorJean-Baptiste Queru <jbq@google.com>2009-07-25 19:52:22 -0700
committerJean-Baptiste Queru <jbq@google.com>2009-07-25 21:15:25 -0700
commit9261bae1d2a769cb7453d2cadb6040be38ec86e5 (patch)
treeb9edeeb20bf20eb9f76902a9671dbe10e871717b /libs/surfaceflinger/GPUHardware/GPUHardware.cpp
parent4cce5bd5ccc7c8468d0f8cc359525f82a45dedec (diff)
parent4d3b5c1e36f2a3746a1c87f8af97d4fe97e8f49e (diff)
downloadframeworks_native-9261bae1d2a769cb7453d2cadb6040be38ec86e5.zip
frameworks_native-9261bae1d2a769cb7453d2cadb6040be38ec86e5.tar.gz
frameworks_native-9261bae1d2a769cb7453d2cadb6040be38ec86e5.tar.bz2
Merge korg/donut into korg/master
Diffstat (limited to 'libs/surfaceflinger/GPUHardware/GPUHardware.cpp')
-rw-r--r--libs/surfaceflinger/GPUHardware/GPUHardware.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/libs/surfaceflinger/GPUHardware/GPUHardware.cpp b/libs/surfaceflinger/GPUHardware/GPUHardware.cpp
index eb75f99..7168bf2 100644
--- a/libs/surfaceflinger/GPUHardware/GPUHardware.cpp
+++ b/libs/surfaceflinger/GPUHardware/GPUHardware.cpp
@@ -573,7 +573,11 @@ void GPUHardware::binderDied(const wp<IBinder>& who)
sp<GPUHardwareInterface> GPUFactory::getGPU()
{
- return new GPUHardware();
+ sp<GPUHardwareInterface> gpu;
+ if (access("/dev/hw3d", F_OK) == 0) {
+ gpu = new GPUHardware();
+ }
+ return gpu;
}
// ---------------------------------------------------------------------------