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

Side by Side Diff: cc/trees/layer_tree_host.h

Issue 23475021: [cc] Consolidate UI resource destruction and recreation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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 | « no previous file | cc/trees/layer_tree_host.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 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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_TREES_LAYER_TREE_HOST_H_ 5 #ifndef CC_TREES_LAYER_TREE_HOST_H_
6 #define CC_TREES_LAYER_TREE_HOST_H_ 6 #define CC_TREES_LAYER_TREE_HOST_H_
7 7
8 #include <limits> 8 #include <limits>
9 #include <list> 9 #include <list>
10 #include <vector> 10 #include <vector>
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 void PrioritizeTextures( 312 void PrioritizeTextures(
313 const RenderSurfaceLayerList& render_surface_layer_list, 313 const RenderSurfaceLayerList& render_surface_layer_list,
314 OverdrawMetrics* metrics); 314 OverdrawMetrics* metrics);
315 void SetPrioritiesForSurfaces(size_t surface_memory_bytes); 315 void SetPrioritiesForSurfaces(size_t surface_memory_bytes);
316 void SetPrioritiesForLayers(const RenderSurfaceLayerList& update_list); 316 void SetPrioritiesForLayers(const RenderSurfaceLayerList& update_list);
317 size_t CalculateMemoryForRenderSurfaces( 317 size_t CalculateMemoryForRenderSurfaces(
318 const RenderSurfaceLayerList& update_list); 318 const RenderSurfaceLayerList& update_list);
319 319
320 bool AnimateLayersRecursive(Layer* current, base::TimeTicks time); 320 bool AnimateLayersRecursive(Layer* current, base::TimeTicks time);
321 321
322 void UIResourceLost(UIResourceId id); 322 void RecreateUIResources(bool resource_lost);
323
324 void DidLoseUIResources();
325 323
326 typedef base::hash_map<UIResourceId, UIResourceClient*> UIResourceClientMap; 324 typedef base::hash_map<UIResourceId, UIResourceClient*> UIResourceClientMap;
327 UIResourceClientMap ui_resource_client_map_; 325 UIResourceClientMap ui_resource_client_map_;
328 int next_ui_resource_id_; 326 int next_ui_resource_id_;
329 327
330 typedef std::list<UIResourceRequest> UIResourceRequestQueue; 328 typedef std::list<UIResourceRequest> UIResourceRequestQueue;
331 UIResourceRequestQueue ui_resource_request_queue_; 329 UIResourceRequestQueue ui_resource_request_queue_;
332 330
333 void CalculateLCDTextMetricsCallback(Layer* layer); 331 void CalculateLCDTextMetricsCallback(Layer* layer);
334 332
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 }; 409 };
412 LCDTextMetrics lcd_text_metrics_; 410 LCDTextMetrics lcd_text_metrics_;
413 int tree_id_; 411 int tree_id_;
414 412
415 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); 413 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost);
416 }; 414 };
417 415
418 } // namespace cc 416 } // namespace cc
419 417
420 #endif // CC_TREES_LAYER_TREE_HOST_H_ 418 #endif // CC_TREES_LAYER_TREE_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | cc/trees/layer_tree_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698