Index: cc/quad_culler.cc |
diff --git a/cc/quad_culler.cc b/cc/quad_culler.cc |
index 5ac52aefc668810a6192c45af1535733fd4fdece..fe2072aa414d283bc6db23c3361a8934608474ee 100644 |
--- a/cc/quad_culler.cc |
+++ b/cc/quad_culler.cc |
@@ -53,7 +53,9 @@ static inline bool appendQuadInternal(scoped_ptr<DrawQuad> drawQuad, const gfx:: |
if (createDebugBorderQuads && !drawQuad->IsDebugQuad() && drawQuad->visible_rect != drawQuad->rect) { |
SkColor color = DebugColors::CulledTileBorderColor(); |
float width = DebugColors::CulledTileBorderWidth(layer ? layer->layerTreeHostImpl() : NULL); |
- quadList.append(DebugBorderDrawQuad::create(drawQuad->shared_quad_state, drawQuad->visible_rect, color, width).PassAs<DrawQuad>()); |
+ scoped_ptr<DebugBorderDrawQuad> debugBorderQuad = DebugBorderDrawQuad::Create(); |
+ debugBorderQuad->SetNew(drawQuad->shared_quad_state, drawQuad->visible_rect, color, width); |
+ quadList.append(debugBorderQuad.PassAs<DrawQuad>()); |
} |
// Pass the quad after we're done using it. |