| 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/layers/heads_up_display_layer_impl.h" | 5 #include "cc/layers/heads_up_display_layer_impl.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/strings/stringprintf.h" | 10 #include "base/strings/stringprintf.h" |
| (...skipping 746 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 757 case REPLICA_SCREEN_SPACE_RECT_TYPE: | 757 case REPLICA_SCREEN_SPACE_RECT_TYPE: |
| 758 stroke_color = DebugColors::ScreenSpaceSurfaceReplicaRectBorderColor(); | 758 stroke_color = DebugColors::ScreenSpaceSurfaceReplicaRectBorderColor(); |
| 759 fill_color = DebugColors::ScreenSpaceSurfaceReplicaRectFillColor(); | 759 fill_color = DebugColors::ScreenSpaceSurfaceReplicaRectFillColor(); |
| 760 stroke_width = DebugColors::ScreenSpaceSurfaceReplicaRectBorderWidth(); | 760 stroke_width = DebugColors::ScreenSpaceSurfaceReplicaRectBorderWidth(); |
| 761 break; | 761 break; |
| 762 case SCREEN_SPACE_RECT_TYPE: | 762 case SCREEN_SPACE_RECT_TYPE: |
| 763 stroke_color = DebugColors::ScreenSpaceLayerRectBorderColor(); | 763 stroke_color = DebugColors::ScreenSpaceLayerRectBorderColor(); |
| 764 fill_color = DebugColors::ScreenSpaceLayerRectFillColor(); | 764 fill_color = DebugColors::ScreenSpaceLayerRectFillColor(); |
| 765 stroke_width = DebugColors::ScreenSpaceLayerRectBorderWidth(); | 765 stroke_width = DebugColors::ScreenSpaceLayerRectBorderWidth(); |
| 766 break; | 766 break; |
| 767 case OCCLUDING_RECT_TYPE: | |
| 768 stroke_color = DebugColors::OccludingRectBorderColor(); | |
| 769 fill_color = DebugColors::OccludingRectFillColor(); | |
| 770 stroke_width = DebugColors::OccludingRectBorderWidth(); | |
| 771 break; | |
| 772 case NONOCCLUDING_RECT_TYPE: | |
| 773 stroke_color = DebugColors::NonOccludingRectBorderColor(); | |
| 774 fill_color = DebugColors::NonOccludingRectFillColor(); | |
| 775 stroke_width = DebugColors::NonOccludingRectBorderWidth(); | |
| 776 break; | |
| 777 case TOUCH_EVENT_HANDLER_RECT_TYPE: | 767 case TOUCH_EVENT_HANDLER_RECT_TYPE: |
| 778 stroke_color = DebugColors::TouchEventHandlerRectBorderColor(); | 768 stroke_color = DebugColors::TouchEventHandlerRectBorderColor(); |
| 779 fill_color = DebugColors::TouchEventHandlerRectFillColor(); | 769 fill_color = DebugColors::TouchEventHandlerRectFillColor(); |
| 780 stroke_width = DebugColors::TouchEventHandlerRectBorderWidth(); | 770 stroke_width = DebugColors::TouchEventHandlerRectBorderWidth(); |
| 781 label_text = "touch event listener"; | 771 label_text = "touch event listener"; |
| 782 break; | 772 break; |
| 783 case WHEEL_EVENT_HANDLER_RECT_TYPE: | 773 case WHEEL_EVENT_HANDLER_RECT_TYPE: |
| 784 stroke_color = DebugColors::WheelEventHandlerRectBorderColor(); | 774 stroke_color = DebugColors::WheelEventHandlerRectBorderColor(); |
| 785 fill_color = DebugColors::WheelEventHandlerRectFillColor(); | 775 fill_color = DebugColors::WheelEventHandlerRectFillColor(); |
| 786 stroke_width = DebugColors::WheelEventHandlerRectBorderWidth(); | 776 stroke_width = DebugColors::WheelEventHandlerRectBorderWidth(); |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 837 return "cc::HeadsUpDisplayLayerImpl"; | 827 return "cc::HeadsUpDisplayLayerImpl"; |
| 838 } | 828 } |
| 839 | 829 |
| 840 void HeadsUpDisplayLayerImpl::AsValueInto( | 830 void HeadsUpDisplayLayerImpl::AsValueInto( |
| 841 base::trace_event::TracedValue* dict) const { | 831 base::trace_event::TracedValue* dict) const { |
| 842 LayerImpl::AsValueInto(dict); | 832 LayerImpl::AsValueInto(dict); |
| 843 dict->SetString("layer_name", "Heads Up Display Layer"); | 833 dict->SetString("layer_name", "Heads Up Display Layer"); |
| 844 } | 834 } |
| 845 | 835 |
| 846 } // namespace cc | 836 } // namespace cc |
| OLD | NEW |