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/debug/trace_event.h" | 10 #include "base/debug/trace_event.h" |
(...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
560 kGraphHeight); | 560 kGraphHeight); |
561 | 561 |
562 const std::string value_text = | 562 const std::string value_text = |
563 base::StringPrintf("%.1f", paint_time_graph_.value); | 563 base::StringPrintf("%.1f", paint_time_graph_.value); |
564 const std::string min_max_text = base::StringPrintf( | 564 const std::string min_max_text = base::StringPrintf( |
565 "%.1f-%.1f", paint_time_graph_.min, paint_time_graph_.max); | 565 "%.1f-%.1f", paint_time_graph_.min, paint_time_graph_.max); |
566 | 566 |
567 paint.setColor(DebugColors::PaintTimeDisplayTextAndGraphColor()); | 567 paint.setColor(DebugColors::PaintTimeDisplayTextAndGraphColor()); |
568 DrawText(canvas, | 568 DrawText(canvas, |
569 &paint, | 569 &paint, |
570 "Page paint time (ms)", | 570 "Activation time (ms)", |
571 SkPaint::kLeft_Align, | 571 SkPaint::kLeft_Align, |
572 kFontHeight, | 572 kFontHeight, |
573 text_bounds.left(), | 573 text_bounds.left(), |
574 text_bounds.bottom()); | 574 text_bounds.bottom()); |
575 DrawText(canvas, | 575 DrawText(canvas, |
576 &paint, | 576 &paint, |
577 value_text, | 577 value_text, |
578 SkPaint::kLeft_Align, | 578 SkPaint::kLeft_Align, |
579 kFontHeight, | 579 kFontHeight, |
580 text_bounds2.left(), | 580 text_bounds2.left(), |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
782 return "cc::HeadsUpDisplayLayerImpl"; | 782 return "cc::HeadsUpDisplayLayerImpl"; |
783 } | 783 } |
784 | 784 |
785 void HeadsUpDisplayLayerImpl::AsValueInto( | 785 void HeadsUpDisplayLayerImpl::AsValueInto( |
786 base::debug::TracedValue* dict) const { | 786 base::debug::TracedValue* dict) const { |
787 LayerImpl::AsValueInto(dict); | 787 LayerImpl::AsValueInto(dict); |
788 dict->SetString("layer_name", "Heads Up Display Layer"); | 788 dict->SetString("layer_name", "Heads Up Display Layer"); |
789 } | 789 } |
790 | 790 |
791 } // namespace cc | 791 } // namespace cc |
OLD | NEW |