Index: cc/layer_impl.cc |
diff --git a/cc/layer_impl.cc b/cc/layer_impl.cc |
index 70992f434b85d8810c4d3f3e94b224d556549cb8..4927e7484d5040e6064261f47d6d179104a7c6c5 100644 |
--- a/cc/layer_impl.cc |
+++ b/cc/layer_impl.cc |
@@ -179,7 +179,9 @@ void LayerImpl::appendDebugBorderQuad(QuadSink& quadList, const SharedQuadState* |
getDebugBorderProperties(&color, &width); |
gfx::Rect contentRect(gfx::Point(), contentBounds()); |
- quadList.append(DebugBorderDrawQuad::create(sharedQuadState, contentRect, color, width).PassAs<DrawQuad>(), appendQuadsData); |
+ scoped_ptr<DebugBorderDrawQuad> debugBorderQuad = DebugBorderDrawQuad::Create(); |
+ debugBorderQuad->SetNew(sharedQuadState, contentRect, color, width); |
+ quadList.append(debugBorderQuad.PassAs<DrawQuad>(), appendQuadsData); |
} |
bool LayerImpl::hasContributingDelegatedRenderPasses() const |