| 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 #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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 SkColor stroke_color, | 123 SkColor stroke_color, |
| 124 SkColor fill_color, | 124 SkColor fill_color, |
| 125 float stroke_width, | 125 float stroke_width, |
| 126 const std::string& label_text) const; | 126 const std::string& label_text) const; |
| 127 void DrawDebugRects(SkCanvas* canvas, DebugRectHistory* debug_rect_history); | 127 void DrawDebugRects(SkCanvas* canvas, DebugRectHistory* debug_rect_history); |
| 128 | 128 |
| 129 void AcquireResource(ResourceProvider* resource_provider); | 129 void AcquireResource(ResourceProvider* resource_provider); |
| 130 void ReleaseUnmatchedSizeResources(ResourceProvider* resource_provider); | 130 void ReleaseUnmatchedSizeResources(ResourceProvider* resource_provider); |
| 131 | 131 |
| 132 std::vector<scoped_ptr<ScopedResource>> resources_; | 132 std::vector<scoped_ptr<ScopedResource>> resources_; |
| 133 skia::RefPtr<SkSurface> hud_surface_; | 133 sk_sp<SkSurface> hud_surface_; |
| 134 | 134 |
| 135 skia::RefPtr<SkTypeface> typeface_; | 135 skia::RefPtr<SkTypeface> typeface_; |
| 136 | 136 |
| 137 float internal_contents_scale_; | 137 float internal_contents_scale_; |
| 138 gfx::Size internal_content_bounds_; | 138 gfx::Size internal_content_bounds_; |
| 139 | 139 |
| 140 Graph fps_graph_; | 140 Graph fps_graph_; |
| 141 Graph paint_time_graph_; | 141 Graph paint_time_graph_; |
| 142 MemoryHistory::Entry memory_entry_; | 142 MemoryHistory::Entry memory_entry_; |
| 143 int fade_step_; | 143 int fade_step_; |
| 144 std::vector<DebugRect> paint_rects_; | 144 std::vector<DebugRect> paint_rects_; |
| 145 | 145 |
| 146 base::TimeTicks time_of_last_graph_update_; | 146 base::TimeTicks time_of_last_graph_update_; |
| 147 | 147 |
| 148 DISALLOW_COPY_AND_ASSIGN(HeadsUpDisplayLayerImpl); | 148 DISALLOW_COPY_AND_ASSIGN(HeadsUpDisplayLayerImpl); |
| 149 }; | 149 }; |
| 150 | 150 |
| 151 } // namespace cc | 151 } // namespace cc |
| 152 | 152 |
| 153 #endif // CC_LAYERS_HEADS_UP_DISPLAY_LAYER_IMPL_H_ | 153 #endif // CC_LAYERS_HEADS_UP_DISPLAY_LAYER_IMPL_H_ |
| OLD | NEW |