Bug 1385368 - Pass aTextIDs as a const reference; r=mystor
authorEhsan Akhgari <ehsan@mozilla.com>
Fri, 28 Jul 2017 13:29:40 -0400
changeset 371859 b5cbc88dede0b871548513e0d2d10b4c9d05178f
parent 371858 07320f178c144b1a4be67400e2168e04677edec0
child 371860 4d0a260acd3f4d76307b49a199994ff37242daf6
push id47611
push userarchaeopteryx@coole-files.de
push dateSun, 30 Jul 2017 09:20:48 +0000
treeherderautoland@8b577b152383 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmystor
bugs1385368
milestone56.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 1385368 - Pass aTextIDs as a const reference; r=mystor
gfx/layers/LayerScope.cpp
--- a/gfx/layers/LayerScope.cpp
+++ b/gfx/layers/LayerScope.cpp
@@ -623,17 +623,17 @@ protected:
 class DebugGLDrawData final: public DebugGLData {
 public:
     DebugGLDrawData(float aOffsetX,
                     float aOffsetY,
                     const gfx::Matrix4x4& aMVMatrix,
                     size_t aRects,
                     const gfx::Rect* aLayerRects,
                     const gfx::Rect* aTextureRects,
-                    const std::list<GLuint> aTexIDs,
+                    const std::list<GLuint>& aTexIDs,
                     void* aLayerRef)
         : DebugGLData(Packet::DRAW),
           mOffsetX(aOffsetX),
           mOffsetY(aOffsetY),
           mMVMatrix(aMVMatrix),
           mRects(aRects),
           mTexIDs(aTexIDs),
           mLayerRef(reinterpret_cast<uint64_t>(aLayerRef))