Commit 9f1c3c19 authored by Kartikaya Gupta's avatar Kartikaya Gupta
Browse files

Bug 1541223 - Print the layers id as a hex value in apz.printtree output. r=botond

Differential Revision: https://phabricator.services.mozilla.com/D25860

--HG--
extra : moz-landing-system : lando
parent 098ae342
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -11,6 +11,7 @@
#include "mozilla/HashFunctions.h"       // for HashGeneric
#include "mozilla/gfx/Logging.h"         // for Log
#include "mozilla/layers/LayersTypes.h"  // for LayersId
#include "nsPrintfCString.h"             // for nsPrintfCString

namespace mozilla {
namespace layers {
@@ -106,8 +107,8 @@ struct ScrollableLayerGuid {
template <int LogLevel>
gfx::Log<LogLevel>& operator<<(gfx::Log<LogLevel>& log,
                               const ScrollableLayerGuid& aGuid) {
  return log << '(' << uint64_t(aGuid.mLayersId) << ',' << aGuid.mPresShellId
             << ',' << aGuid.mScrollId << ')';
  return log << nsPrintfCString("(0x%" PRIx64 ", %u, %" PRIu64 ")",
          uint64_t(aGuid.mLayersId), aGuid.mPresShellId, aGuid.mScrollId).get();
}

}  // namespace layers