remove unused code
This commit is contained in:
@@ -95,14 +95,8 @@ void LayerBase::initStates(uint32_t w, uint32_t h, uint32_t flags)
|
||||
mDrawingState = mCurrentState;
|
||||
}
|
||||
|
||||
void LayerBase::commitTransaction(bool skipSize) {
|
||||
const uint32_t w = mDrawingState.w;
|
||||
const uint32_t h = mDrawingState.h;
|
||||
void LayerBase::commitTransaction() {
|
||||
mDrawingState = mCurrentState;
|
||||
if (skipSize) {
|
||||
mDrawingState.w = w;
|
||||
mDrawingState.h = h;
|
||||
}
|
||||
}
|
||||
void LayerBase::forceVisibilityTransaction() {
|
||||
// this can be called without SurfaceFlinger.mStateLock, but if we
|
||||
@@ -217,7 +211,7 @@ uint32_t LayerBase::doTransaction(uint32_t flags)
|
||||
}
|
||||
|
||||
// Commit the transaction
|
||||
commitTransaction(flags & eRestartTransaction);
|
||||
commitTransaction();
|
||||
return flags;
|
||||
}
|
||||
|
||||
|
||||
@@ -107,7 +107,7 @@ public:
|
||||
bool setTransparentRegionHint(const Region& opaque);
|
||||
bool setFlags(uint8_t flags, uint8_t mask);
|
||||
|
||||
void commitTransaction(bool skipSize);
|
||||
void commitTransaction();
|
||||
bool requestTransaction();
|
||||
void forceVisibilityTransaction();
|
||||
|
||||
@@ -211,7 +211,6 @@ public:
|
||||
|
||||
enum { // flags for doTransaction()
|
||||
eVisibleRegion = 0x00000002,
|
||||
eRestartTransaction = 0x00000008
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -594,12 +594,6 @@ void SurfaceFlinger::handleTransactionLocked(
|
||||
const uint32_t flags = layer->doTransaction(0);
|
||||
if (flags & Layer::eVisibleRegion)
|
||||
mVisibleRegionsDirty = true;
|
||||
|
||||
if (flags & Layer::eRestartTransaction) {
|
||||
// restart the transaction, but back-off a little
|
||||
layer->setTransactionFlags(eTransactionNeeded);
|
||||
setTransactionFlags(eTraversalNeeded, ms2ns(8));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user