Merge "Trace sync rt transaction applier" into qt-dev
am: c6f5069668
Change-Id: Ifdfa1389a022a396167e606287485aabf7768c76
This commit is contained in:
@@ -22,6 +22,7 @@ import android.graphics.Rect;
|
|||||||
import android.os.Handler;
|
import android.os.Handler;
|
||||||
import android.os.Handler.Callback;
|
import android.os.Handler.Callback;
|
||||||
import android.os.Message;
|
import android.os.Message;
|
||||||
|
import android.os.Trace;
|
||||||
import android.view.Surface;
|
import android.view.Surface;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.view.ViewRootImpl;
|
import android.view.ViewRootImpl;
|
||||||
@@ -95,6 +96,7 @@ public class SyncRtSurfaceTransactionApplierCompat {
|
|||||||
.sendToTarget();
|
.sendToTarget();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Trace.traceBegin(Trace.TRACE_TAG_VIEW, "Sync transaction frameNumber=" + frame);
|
||||||
TransactionCompat t = new TransactionCompat();
|
TransactionCompat t = new TransactionCompat();
|
||||||
for (int i = params.length - 1; i >= 0; i--) {
|
for (int i = params.length - 1; i >= 0; i--) {
|
||||||
SyncRtSurfaceTransactionApplierCompat.SurfaceParams surfaceParams =
|
SyncRtSurfaceTransactionApplierCompat.SurfaceParams surfaceParams =
|
||||||
@@ -105,6 +107,7 @@ public class SyncRtSurfaceTransactionApplierCompat {
|
|||||||
}
|
}
|
||||||
t.setEarlyWakeup();
|
t.setEarlyWakeup();
|
||||||
t.apply();
|
t.apply();
|
||||||
|
Trace.traceEnd(Trace.TRACE_TAG_VIEW);
|
||||||
Message.obtain(mApplyHandler, MSG_UPDATE_SEQUENCE_NUMBER, toApplySeqNo, 0)
|
Message.obtain(mApplyHandler, MSG_UPDATE_SEQUENCE_NUMBER, toApplySeqNo, 0)
|
||||||
.sendToTarget();
|
.sendToTarget();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user