Back out 446fbc59aa22 (bug 698205) for orange
authorPhil Ringnalda <philringnalda@gmail.com>
Tue, 08 Nov 2011 14:43:24 -0800
changeset 80061 725022655d4fc4023c1781a83dc84ff0174ca88f
parent 80060 ca58c6d0a1081c5e336dcbf577fa97e99f1ee004
child 80062 c6d95dd6e7ae5aa6d6d30b27c2cfda39b3145ce0
push id323
push userrcampbell@mozilla.com
push dateTue, 15 Nov 2011 21:58:36 +0000
treeherderfx-team@3ea216303184 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs698205
milestone10.0a1
backs out446fbc59aa229307a61b9a98d707831cbf857caf
Back out 446fbc59aa22 (bug 698205) for orange
gfx/2d/DrawTargetD2D.cpp
--- a/gfx/2d/DrawTargetD2D.cpp
+++ b/gfx/2d/DrawTargetD2D.cpp
@@ -1016,26 +1016,26 @@ DrawTargetD2D::CreatePathBuilder(FillRul
   }
 
   return new PathBuilderD2D(sink, path, aFillRule);
 }
 
 TemporaryRef<GradientStops>
 DrawTargetD2D::CreateGradientStops(GradientStop *rawStops, uint32_t aNumStops) const
 {
-  vector<D2D1_GRADIENT_STOP> stops(aNumStops);
+  D2D1_GRADIENT_STOP *stops = new D2D1_GRADIENT_STOP[aNumStops];
 
   for (uint32_t i = 0; i < aNumStops; i++) {
     stops[i].position = rawStops[i].offset;
     stops[i].color = D2DColor(rawStops[i].color);
   }
 
   RefPtr<ID2D1GradientStopCollection> stopCollection;
 
-  HRESULT hr = mRT->CreateGradientStopCollection(&stops.front(), aNumStops, byRef(stopCollection));
+  HRESULT hr = mRT->CreateGradientStopCollection(stops, aNumStops, byRef(stopCollection));
 
   if (FAILED(hr)) {
     gfxWarning() << "Failed to create GradientStopCollection. Code: " << hr;
     return NULL;
   }
 
   return new GradientStopsD2D(stopCollection);
 }