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

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

Issue 1377823002: Change HUD colors to distinguish status easily. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated memory graph. Created 5 years, 2 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
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 #include <vector> 9 #include <vector>
10 10
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 int x, 86 int x,
87 int y) const; 87 int y) const;
88 void DrawText(SkCanvas* canvas, 88 void DrawText(SkCanvas* canvas,
89 SkPaint* paint, 89 SkPaint* paint,
90 const std::string& text, 90 const std::string& text,
91 SkPaint::Align align, 91 SkPaint::Align align,
92 int size, 92 int size,
93 const SkPoint& pos) const; 93 const SkPoint& pos) const;
94 void DrawGraphBackground(SkCanvas* canvas, 94 void DrawGraphBackground(SkCanvas* canvas,
95 SkPaint* paint, 95 SkPaint* paint,
96 const SkRect& bounds) const; 96 const SkRect& bounds,
97 bool rounded) const;
97 void DrawGraphLines(SkCanvas* canvas, 98 void DrawGraphLines(SkCanvas* canvas,
98 SkPaint* paint, 99 SkPaint* paint,
99 const SkRect& bounds, 100 const SkRect& bounds,
100 const Graph& graph) const; 101 const Graph& graph) const;
101 102
102 SkRect DrawFPSDisplay(SkCanvas* canvas, 103 SkRect DrawFPSDisplay(SkCanvas* canvas,
103 const FrameRateCounter* fps_counter, 104 const FrameRateCounter* fps_counter,
104 int right, 105 int right,
105 int top) const; 106 int top,
107 bool last_display) const;
106 SkRect DrawMemoryDisplay(SkCanvas* canvas, 108 SkRect DrawMemoryDisplay(SkCanvas* canvas,
107 int top, 109 int top,
108 int right, 110 int right,
109 int width) const; 111 int width,
112 bool last_display) const;
110 SkRect DrawGpuRasterizationStatus(SkCanvas* canvas, 113 SkRect DrawGpuRasterizationStatus(SkCanvas* canvas,
111 int right, 114 int right,
112 int top, 115 int top,
113 int width) const; 116 int width,
117 bool last_display) const;
118 SkRect DrawDisplaySeparator(SkCanvas* canvas,
119 int right,
120 int top,
121 int width) const;
114 void DrawDebugRect(SkCanvas* canvas, 122 void DrawDebugRect(SkCanvas* canvas,
115 SkPaint* paint, 123 SkPaint* paint,
116 const DebugRect& rect, 124 const DebugRect& rect,
117 SkColor stroke_color, 125 SkColor stroke_color,
118 SkColor fill_color, 126 SkColor fill_color,
119 float stroke_width, 127 float stroke_width,
120 const std::string& label_text) const; 128 const std::string& label_text) const;
121 void DrawDebugRects(SkCanvas* canvas, DebugRectHistory* debug_rect_history); 129 void DrawDebugRects(SkCanvas* canvas, DebugRectHistory* debug_rect_history);
122 130
123 void AcquireResource(ResourceProvider* resource_provider); 131 void AcquireResource(ResourceProvider* resource_provider);
(...skipping 14 matching lines...) Expand all
138 std::vector<DebugRect> paint_rects_; 146 std::vector<DebugRect> paint_rects_;
139 147
140 base::TimeTicks time_of_last_graph_update_; 148 base::TimeTicks time_of_last_graph_update_;
141 149
142 DISALLOW_COPY_AND_ASSIGN(HeadsUpDisplayLayerImpl); 150 DISALLOW_COPY_AND_ASSIGN(HeadsUpDisplayLayerImpl);
143 }; 151 };
144 152
145 } // namespace cc 153 } // namespace cc
146 154
147 #endif // CC_LAYERS_HEADS_UP_DISPLAY_LAYER_IMPL_H_ 155 #endif // CC_LAYERS_HEADS_UP_DISPLAY_LAYER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698