Michael Trimarchi wrote:
> Hi,
>
> Ben Robinson wrote:
>   
>> We are migrating our Android port from cupcake to eclair. Since we
>> changed over, animations have been slower and less smooth than they
>> were in cupcake.
>>
>> Does anyone know of any configuration issues or similar that could
>> hurt performance?
>>   
>>     
> Yes I have the same problem some performance delay but seem related not 
> to the
> display itself (rotation is good) keyboard feedback is good. Seem a 
> general delay
> on event processing. I don't fine the reason I stin investigate on it
>
> Michael
>   
Can you try to remove the surface validation?

Michael

-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting
diff --git a/libs/ui/Surface.cpp b/libs/ui/Surface.cpp
index f51ca7a..a02f031 100644
--- a/libs/ui/Surface.cpp
+++ b/libs/ui/Surface.cpp
@@ -396,6 +396,7 @@ bool Surface::isValid() {
 
 status_t Surface::validate(SharedClient const* cblk) const
 {
+#if 0
     sp<SurfaceComposerClient> client(getClient());
     if (mToken<0 || mClient==0) {
         LOGE("invalid token (%d, identity=%u) or client (%p)", 
@@ -418,6 +419,7 @@ status_t Surface::validate(SharedClient const* cblk) const
                 mToken, mIdentity, identity);
         return NO_INIT;
     }
+#endif
     return NO_ERROR;
 }
 

Reply via email to