Bug 1120645 - Use MOZ_PERFORMANCE_WARNING with TextureClients that must be destroyed synchronously. r=BenWa
authorNicolas Silva <nsilva@mozilla.com>
Mon, 12 Jan 2015 23:00:08 +0100
changeset 223435 42a2d23fb40e6c1a9fb76b6886992abf94f36f27
parent 223434 76ca49362a26525c783abe1e9598f277e6a9e9a6
child 223436 ae178940458cfeb88868aa2f7c4289ef688a65ba
push id28095
push usercbook@mozilla.com
push dateTue, 13 Jan 2015 13:24:48 +0000
treeherdermozilla-central@a5700bec72e1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersBenWa
bugs1120645
milestone38.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1120645 - Use MOZ_PERFORMANCE_WARNING with TextureClients that must be destroyed synchronously. r=BenWa
gfx/layers/client/TextureClient.cpp
--- a/gfx/layers/client/TextureClient.cpp
+++ b/gfx/layers/client/TextureClient.cpp
@@ -502,16 +502,17 @@ TextureClient::KeepUntilFullDeallocation
   MOZ_ASSERT(!mActor->mKeep);
   mActor->mKeep = aKeep;
 }
 
 void TextureClient::ForceRemove()
 {
   if (mValid && mActor) {
     if (GetFlags() & TextureFlags::DEALLOCATE_CLIENT) {
+      MOZ_PERFORMANCE_WARNING("gfx", "TextureClient/Host pair requires synchronous deallocation");
       if (mActor->IPCOpen()) {
         mActor->SendClearTextureHostSync();
         mActor->SendRemoveTexture();
       }
     } else {
       if (mActor->IPCOpen()) {
         mActor->SendRemoveTexture();
       }