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

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

Issue 135493002: Plumb debug name via debug info (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 months 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 | Annotate | Revision Log
« no previous file with comments | « cc/layers/heads_up_display_layer.cc ('k') | cc/layers/heads_up_display_layer_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef CC_LAYERS_HEADS_UP_DISPLAY_LAYER_IMPL_H_ 5 #ifndef CC_LAYERS_HEADS_UP_DISPLAY_LAYER_IMPL_H_
6 #define CC_LAYERS_HEADS_UP_DISPLAY_LAYER_IMPL_H_ 6 #define CC_LAYERS_HEADS_UP_DISPLAY_LAYER_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 63
64 double current_upper_bound; 64 double current_upper_bound;
65 const double default_upper_bound; 65 const double default_upper_bound;
66 const double indicator; 66 const double indicator;
67 }; 67 };
68 68
69 HeadsUpDisplayLayerImpl(LayerTreeImpl* tree_impl, int id); 69 HeadsUpDisplayLayerImpl(LayerTreeImpl* tree_impl, int id);
70 70
71 virtual const char* LayerTypeAsString() const OVERRIDE; 71 virtual const char* LayerTypeAsString() const OVERRIDE;
72 72
73 virtual void AsValueInto(base::DictionaryValue* dict) const OVERRIDE;
74
73 void UpdateHudContents(); 75 void UpdateHudContents();
74 void DrawHudContents(SkCanvas* canvas) const; 76 void DrawHudContents(SkCanvas* canvas) const;
75 77
76 void DrawText(SkCanvas* canvas, 78 void DrawText(SkCanvas* canvas,
77 SkPaint* paint, 79 SkPaint* paint,
78 const std::string& text, 80 const std::string& text,
79 SkPaint::Align align, 81 SkPaint::Align align,
80 int size, 82 int size,
81 int x, 83 int x,
82 int y) const; 84 int y) const;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 MemoryHistory::Entry memory_entry_; 121 MemoryHistory::Entry memory_entry_;
120 122
121 base::TimeTicks time_of_last_graph_update_; 123 base::TimeTicks time_of_last_graph_update_;
122 124
123 DISALLOW_COPY_AND_ASSIGN(HeadsUpDisplayLayerImpl); 125 DISALLOW_COPY_AND_ASSIGN(HeadsUpDisplayLayerImpl);
124 }; 126 };
125 127
126 } // namespace cc 128 } // namespace cc
127 129
128 #endif // CC_LAYERS_HEADS_UP_DISPLAY_LAYER_IMPL_H_ 130 #endif // CC_LAYERS_HEADS_UP_DISPLAY_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/layers/heads_up_display_layer.cc ('k') | cc/layers/heads_up_display_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698