| Index: cc/layer_impl.cc
|
| diff --git a/cc/layer_impl.cc b/cc/layer_impl.cc
|
| index 72ef8818977e8cc3ba2862477bc5c9c3653bcfa0..ee2743ae771c4879dcacbef35f4de21d68a27800 100644
|
| --- a/cc/layer_impl.cc
|
| +++ b/cc/layer_impl.cc
|
| @@ -7,6 +7,7 @@
|
| #include "base/debug/trace_event.h"
|
| #include "base/stringprintf.h"
|
| #include "cc/debug_border_draw_quad.h"
|
| +#include "cc/debug_colors.h"
|
| #include "cc/geometry.h"
|
| #include "cc/layer_sorter.h"
|
| #include "cc/layer_tree_host_impl.h"
|
| @@ -154,22 +155,19 @@ bool LayerImpl::showDebugBorders() const
|
| void LayerImpl::getDebugBorderProperties(SkColor* color, float* width) const
|
| {
|
| if (m_drawsContent) {
|
| - // Non-tiled content layers are green.
|
| - *color = SkColorSetARGB(128, 0, 128, 32);
|
| - *width = 2;
|
| + *color = DebugColors::kContentLayerBorderColor();
|
| + *width = DebugColors::kContentLayerBorderWidth(m_layerTreeHostImpl);
|
| return;
|
| }
|
|
|
| if (m_masksToBounds) {
|
| - // Masking layers are pale blue.
|
| - *color = SkColorSetARGB(48, 128, 255, 255);
|
| - *width = 20;
|
| + *color = DebugColors::kMaskingLayerBorderColor();
|
| + *width = DebugColors::kMaskingLayerBorderWidth(m_layerTreeHostImpl);
|
| return;
|
| }
|
|
|
| - // Other container layers are yellow.
|
| - *color = SkColorSetARGB(192, 255, 255, 0);
|
| - *width = 2;
|
| + *color = DebugColors::kContainerLayerBorderColor();
|
| + *width = DebugColors::kContainerLayerBorderWidth(m_layerTreeHostImpl);
|
| }
|
|
|
| void LayerImpl::appendDebugBorderQuad(QuadSink& quadList, const SharedQuadState* sharedQuadState, AppendQuadsData& appendQuadsData) const
|
|
|