| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "cc/picture_layer_impl.h" | 5 #include "cc/picture_layer_impl.h" |
| 6 | 6 |
| 7 #include "base/time.h" | 7 #include "base/time.h" |
| 8 #include "cc/append_quads_data.h" | 8 #include "cc/append_quads_data.h" |
| 9 #include "cc/checkerboard_draw_quad.h" | 9 #include "cc/checkerboard_draw_quad.h" |
| 10 #include "cc/debug_border_draw_quad.h" | 10 #include "cc/debug_border_draw_quad.h" |
| (...skipping 715 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 726 DCHECK_EQ(id(), twin->id()); | 726 DCHECK_EQ(id(), twin->id()); |
| 727 return twin; | 727 return twin; |
| 728 } | 728 } |
| 729 | 729 |
| 730 void PictureLayerImpl::getDebugBorderProperties( | 730 void PictureLayerImpl::getDebugBorderProperties( |
| 731 SkColor* color, float* width) const { | 731 SkColor* color, float* width) const { |
| 732 *color = DebugColors::TiledContentLayerBorderColor(); | 732 *color = DebugColors::TiledContentLayerBorderColor(); |
| 733 *width = DebugColors::TiledContentLayerBorderWidth(layerTreeImpl()); | 733 *width = DebugColors::TiledContentLayerBorderWidth(layerTreeImpl()); |
| 734 } | 734 } |
| 735 | 735 |
| 736 scoped_ptr<base::Value> PictureLayerImpl::AsValue() const { |
| 737 scoped_ptr<base::DictionaryValue> state(new base::DictionaryValue()); |
| 738 LayerImpl::AsValueInto(state.get()); |
| 739 |
| 740 state->SetDouble("ideal_contents_scale", ideal_contents_scale_); |
| 741 state->Set("tilings", tilings_->AsValue().release()); |
| 742 return state.PassAs<base::Value>(); |
| 743 } |
| 744 |
| 736 } // namespace cc | 745 } // namespace cc |
| OLD | NEW |