Bug 1341511 - Replace std::map::empty() call with correct std::map::clear() call to remove all elements from the map r=dvander,jchen
authorRandall Barker <rbarker@mozilla.com>
Tue, 28 Feb 2017 12:34:16 -0800
changeset 394335 f3b989e0a7b90950c47dd72425c7f669f027c685
parent 394334 52a406607871931b102f6dc76ce5eaff75cd8914
child 394336 e91de6fb2b3dce9c932428265b0fdb630ea470d7
child 394492 ed9b6ec1a0e8789b793bccf1426113e1c78f9ad5
push id1468
push userasasaki@mozilla.com
push dateMon, 05 Jun 2017 19:31:07 +0000
treeherdermozilla-release@0641fc6ee9d1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdvander, jchen
bugs1341511
milestone54.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 1341511 - Replace std::map::empty() call with correct std::map::clear() call to remove all elements from the map r=dvander,jchen
gfx/layers/ipc/UiCompositorControllerChild.cpp
--- a/gfx/layers/ipc/UiCompositorControllerChild.cpp
+++ b/gfx/layers/ipc/UiCompositorControllerChild.cpp
@@ -54,17 +54,17 @@ DoCachedResize()
 {
   MOZ_ASSERT(sChild);
   MOZ_ASSERT(sChild->IsOnUiThread());
 
   for (auto& cache : sResizeCache) {
     sChild->SendResumeAndResize(cache.first, cache.second.mSurfaceWidth, cache.second.mSurfaceHeight);
   }
 
-  sResizeCache.empty();
+  sResizeCache.clear();
 }
 
 } // namespace
 
 UiCompositorControllerChild::UiCompositorControllerChild(RefPtr<nsThread> aThread, const uint64_t& aProcessToken)
  : mUiThread(aThread),
    mProcessToken(aProcessToken)
 {