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

Side by Side Diff: cc/trees/layer_tree_host_impl.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 | « cc/trees/layer_tree_host.cc ('k') | cc/trees/layer_tree_host_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 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_IMPL_H_ 5 #ifndef CC_TREES_LAYER_TREE_HOST_IMPL_H_
6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_ 6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_
7 7
8 #include <list> 8 #include <list>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after
383 scoped_ptr<base::Value> AsValue() const { return AsValueWithFrame(NULL); } 383 scoped_ptr<base::Value> AsValue() const { return AsValueWithFrame(NULL); }
384 scoped_ptr<base::Value> AsValueWithFrame(FrameData* frame) const; 384 scoped_ptr<base::Value> AsValueWithFrame(FrameData* frame) const;
385 scoped_ptr<base::Value> ActivationStateAsValue() const; 385 scoped_ptr<base::Value> ActivationStateAsValue() const;
386 386
387 bool page_scale_animation_active() const { return !!page_scale_animation_; } 387 bool page_scale_animation_active() const { return !!page_scale_animation_; }
388 388
389 void CreateUIResource(UIResourceId uid, 389 void CreateUIResource(UIResourceId uid,
390 scoped_refptr<UIResourceBitmap> bitmap); 390 scoped_refptr<UIResourceBitmap> bitmap);
391 // Deletes a UI resource. May safely be called more than once. 391 // Deletes a UI resource. May safely be called more than once.
392 void DeleteUIResource(UIResourceId uid); 392 void DeleteUIResource(UIResourceId uid);
393 void DeleteAllUIResources();
393 394
394 ResourceProvider::ResourceId ResourceIdForUIResource(UIResourceId uid) const; 395 ResourceProvider::ResourceId ResourceIdForUIResource(UIResourceId uid) const;
395 396
396 protected: 397 protected:
397 LayerTreeHostImpl( 398 LayerTreeHostImpl(
398 const LayerTreeSettings& settings, 399 const LayerTreeSettings& settings,
399 LayerTreeHostImplClient* client, 400 LayerTreeHostImplClient* client,
400 Proxy* proxy, 401 Proxy* proxy,
401 RenderingStatsInstrumentation* rendering_stats_instrumentation); 402 RenderingStatsInstrumentation* rendering_stats_instrumentation);
402 403
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
566 567
567 // Optional callback to notify of new tree activations. 568 // Optional callback to notify of new tree activations.
568 base::Closure tree_activation_callback_; 569 base::Closure tree_activation_callback_;
569 570
570 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 571 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
571 }; 572 };
572 573
573 } // namespace cc 574 } // namespace cc
574 575
575 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 576 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698