Bug 1196494 - part 1: remove unnecessary GetClientBounds call in CompositorParent. r=jrmuziel
authorLee Salzman <lsalzman@mozilla.com>
Sat, 03 Oct 2015 08:30:16 -0400
changeset 267146 29e5d93f022c179607668604e19cb643eb9df3a0
parent 267145 c08ebe9b7150d96cc3e0e8c5705675787a1b414d
child 267147 651b3818a85116ed41d967af9fc0c5ec9b57f95a
push id66402
push userarchaeopteryx@coole-files.de
push dateSun, 11 Oct 2015 16:15:00 +0000
treeherdermozilla-inbound@ee4cb52e6b15 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjrmuziel
bugs1196494
milestone44.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 1196494 - part 1: remove unnecessary GetClientBounds call in CompositorParent. r=jrmuziel
gfx/layers/ipc/CompositorParent.cpp
--- a/gfx/layers/ipc/CompositorParent.cpp
+++ b/gfx/layers/ipc/CompositorParent.cpp
@@ -1465,18 +1465,16 @@ CompositorParent::InitializeLayerManager
 PLayerTransactionParent*
 CompositorParent::AllocPLayerTransactionParent(const nsTArray<LayersBackend>& aBackendHints,
                                                const uint64_t& aId,
                                                TextureFactoryIdentifier* aTextureFactoryIdentifier,
                                                bool *aSuccess)
 {
   MOZ_ASSERT(aId == 0);
 
-  gfx::IntRect rect;
-  mWidget->GetClientBounds(rect);
   InitializeLayerManager(aBackendHints);
 
   if (!mLayerManager) {
     NS_WARNING("Failed to initialise Compositor");
     *aSuccess = false;
     LayerTransactionParent* p = new LayerTransactionParent(nullptr, this, 0);
     p->AddIPDLReference();
     return p;