| Index: cc/layers/layer_impl.cc
|
| diff --git a/cc/layers/layer_impl.cc b/cc/layers/layer_impl.cc
|
| index 52a15eef2c5f4087bdaabe3bc2ad765737f7a468..2004feb793b23797b507162ef3932207eb752978 100644
|
| --- a/cc/layers/layer_impl.cc
|
| +++ b/cc/layers/layer_impl.cc
|
| @@ -293,11 +293,32 @@ void LayerImpl::AppendDebugBorderQuad(
|
| SkColor color;
|
| float width;
|
| GetDebugBorderProperties(&color, &width);
|
| - AppendDebugBorderQuad(
|
| - quad_sink, shared_quad_state, append_quads_data, color, width);
|
| + AppendDebugBorderQuad(quad_sink,
|
| + content_bounds(),
|
| + shared_quad_state,
|
| + append_quads_data,
|
| + color,
|
| + width);
|
| +}
|
| +
|
| +void LayerImpl::AppendDebugBorderQuad(
|
| + QuadSink* quad_sink,
|
| + const gfx::Size& content_bounds,
|
| + const SharedQuadState* shared_quad_state,
|
| + AppendQuadsData* append_quads_data) const {
|
| + SkColor color;
|
| + float width;
|
| + GetDebugBorderProperties(&color, &width);
|
| + AppendDebugBorderQuad(quad_sink,
|
| + content_bounds,
|
| + shared_quad_state,
|
| + append_quads_data,
|
| + color,
|
| + width);
|
| }
|
|
|
| void LayerImpl::AppendDebugBorderQuad(QuadSink* quad_sink,
|
| + const gfx::Size& content_bounds,
|
| const SharedQuadState* shared_quad_state,
|
| AppendQuadsData* append_quads_data,
|
| SkColor color,
|
| @@ -305,7 +326,7 @@ void LayerImpl::AppendDebugBorderQuad(QuadSink* quad_sink,
|
| if (!ShowDebugBorders())
|
| return;
|
|
|
| - gfx::Rect quad_rect(content_bounds());
|
| + gfx::Rect quad_rect(content_bounds);
|
| gfx::Rect visible_quad_rect(quad_rect);
|
| scoped_ptr<DebugBorderDrawQuad> debug_border_quad =
|
| DebugBorderDrawQuad::Create();
|
|
|