зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1143575. Fix some code formatting. r=nical
--HG-- extra : commitid : ClRm5y4d3Tv extra : rebase_source : 3b4629fc4e171ce31cfb761e831974191d3ae35c
This commit is contained in:
Родитель
2ce4c471d8
Коммит
4b6793f937
|
@ -130,7 +130,7 @@ ImageClientSingle::FlushAllImages(bool aExceptFront,
|
|||
if (!aExceptFront && mFrontBuffer) {
|
||||
RemoveTextureWithTracker(mFrontBuffer, aAsyncTransactionTracker);
|
||||
mFrontBuffer = nullptr;
|
||||
} else if(aAsyncTransactionTracker) {
|
||||
} else if (aAsyncTransactionTracker) {
|
||||
// already flushed
|
||||
aAsyncTransactionTracker->NotifyComplete();
|
||||
}
|
||||
|
|
|
@ -413,7 +413,8 @@ void ImageBridgeChild::DispatchImageClientUpdate(ImageClient* aClient,
|
|||
nsRefPtr<ImageContainer> >(&UpdateImageClientNow, aClient, aContainer));
|
||||
}
|
||||
|
||||
static void FlushAllImagesSync(ImageClient* aClient, ImageContainer* aContainer, bool aExceptFront, AsyncTransactionTracker* aStatus)
|
||||
static void FlushAllImagesSync(ImageClient* aClient, ImageContainer* aContainer,
|
||||
bool aExceptFront, AsyncTransactionTracker* aStatus)
|
||||
{
|
||||
MOZ_ASSERT(aClient);
|
||||
sImageBridgeChildSingleton->BeginTransaction();
|
||||
|
@ -426,7 +427,8 @@ static void FlushAllImagesSync(ImageClient* aClient, ImageContainer* aContainer,
|
|||
}
|
||||
|
||||
//static
|
||||
void ImageBridgeChild::FlushAllImages(ImageClient* aClient, ImageContainer* aContainer, bool aExceptFront)
|
||||
void ImageBridgeChild::FlushAllImages(ImageClient* aClient,
|
||||
ImageContainer* aContainer, bool aExceptFront)
|
||||
{
|
||||
if (!IsCreated()) {
|
||||
return;
|
||||
|
@ -436,8 +438,8 @@ void ImageBridgeChild::FlushAllImages(ImageClient* aClient, ImageContainer* aCon
|
|||
MOZ_ASSERT(!InImageBridgeChildThread());
|
||||
if (InImageBridgeChildThread()) {
|
||||
NS_ERROR("ImageBridgeChild::FlushAllImages() is called on ImageBridge thread.");
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
RefPtr<AsyncTransactionTracker> status = aClient->PrepareFlushAllImages();
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче