| Index: cc/tiled_layer_impl.cc
|
| diff --git a/cc/tiled_layer_impl.cc b/cc/tiled_layer_impl.cc
|
| index 26aa4b2cb480380b3abca28ebafe7b0ccad7a542..9820dd4f68ddfc170e46bc26d9353f710a146db6 100644
|
| --- a/cc/tiled_layer_impl.cc
|
| +++ b/cc/tiled_layer_impl.cc
|
| @@ -114,6 +114,13 @@ DrawableTile* TiledLayerImpl::createTile(int i, int j)
|
| return addedTile;
|
| }
|
|
|
| +void TiledLayerImpl::getDebugBorderProperties(SkColor* color, float* width) const
|
| +{
|
| + // Tiled content layers are orange.
|
| + *color = SkColorSetARGBInline(128, 255, 128, 0);
|
| + *width = 2;
|
| +}
|
| +
|
| void TiledLayerImpl::appendQuads(QuadSink& quadSink, AppendQuadsData& appendQuadsData)
|
| {
|
| const gfx::Rect& contentRect = visibleContentRect();
|
| @@ -127,7 +134,7 @@ void TiledLayerImpl::appendQuads(QuadSink& quadSink, AppendQuadsData& appendQuad
|
| int left, top, right, bottom;
|
| m_tiler->contentRectToTileIndices(contentRect, left, top, right, bottom);
|
|
|
| - if (hasDebugBorders()) {
|
| + if (showDebugBorders()) {
|
| for (int j = top; j <= bottom; ++j) {
|
| for (int i = left; i <= right; ++i) {
|
| DrawableTile* tile = tileAt(i, j);
|
| @@ -164,7 +171,7 @@ void TiledLayerImpl::appendQuads(QuadSink& quadSink, AppendQuadsData& appendQuad
|
| SkColor invalidatedColor = SkColorSetRGB(debugTileInvalidatedCheckerboardColorRed, debugTileEvictedCheckerboardColorGreen, debugTileEvictedCheckerboardColorBlue);
|
|
|
| SkColor checkerColor;
|
| - if (hasDebugBorders())
|
| + if (showDebugBorders())
|
| checkerColor = tile ? invalidatedColor : evictedColor;
|
| else
|
| checkerColor = defaultColor;
|
|
|