Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(717)

Side by Side Diff: cc/layers/heads_up_display_layer_impl.cc

Issue 689503002: cc: Use commit to activation time in repaint HUD (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed unused var Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698