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

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

Issue 132683003: cc: Rename LayerImpl::DidLoseOutputSurface to ReleaseResources (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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
« no previous file with comments | « cc/layers/delegated_renderer_layer_impl.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 25 matching lines...) Expand all
36 virtual scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) 36 virtual scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl)
37 OVERRIDE; 37 OVERRIDE;
38 38
39 virtual bool WillDraw(DrawMode draw_mode, 39 virtual bool WillDraw(DrawMode draw_mode,
40 ResourceProvider* resource_provider) OVERRIDE; 40 ResourceProvider* resource_provider) OVERRIDE;
41 virtual void AppendQuads(QuadSink* quad_sink, 41 virtual void AppendQuads(QuadSink* quad_sink,
42 AppendQuadsData* append_quads_data) OVERRIDE; 42 AppendQuadsData* append_quads_data) OVERRIDE;
43 void UpdateHudTexture(DrawMode draw_mode, 43 void UpdateHudTexture(DrawMode draw_mode,
44 ResourceProvider* resource_provider); 44 ResourceProvider* resource_provider);
45 45
46 virtual void DidLoseOutputSurface() OVERRIDE; 46 virtual void ReleaseResources() OVERRIDE;
47 47
48 virtual bool LayerIsAlwaysDamaged() const OVERRIDE; 48 virtual bool LayerIsAlwaysDamaged() const OVERRIDE;
49 49
50 private: 50 private:
51 class Graph { 51 class Graph {
52 public: 52 public:
53 Graph(double indicator_value, double start_upper_bound); 53 Graph(double indicator_value, double start_upper_bound);
54 54
55 // Eases the upper bound, which limits what is currently visible in the 55 // Eases the upper bound, which limits what is currently visible in the
56 // graph, so that the graph always scales to either it's max or 56 // graph, so that the graph always scales to either it's max or
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 MemoryHistory::Entry memory_entry_; 119 MemoryHistory::Entry memory_entry_;
120 120
121 base::TimeTicks time_of_last_graph_update_; 121 base::TimeTicks time_of_last_graph_update_;
122 122
123 DISALLOW_COPY_AND_ASSIGN(HeadsUpDisplayLayerImpl); 123 DISALLOW_COPY_AND_ASSIGN(HeadsUpDisplayLayerImpl);
124 }; 124 };
125 125
126 } // namespace cc 126 } // namespace cc
127 127
128 #endif // CC_LAYERS_HEADS_UP_DISPLAY_LAYER_IMPL_H_ 128 #endif // CC_LAYERS_HEADS_UP_DISPLAY_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/layers/delegated_renderer_layer_impl.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