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

Unified Diff: cc/trees/layer_tree_impl.h

Issue 270823003: cc: Move gpu rasterization flag from LayerImpl to LayerTreeImpl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/trees/layer_tree_host_unittest.cc ('k') | cc/trees/layer_tree_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_impl.h
diff --git a/cc/trees/layer_tree_impl.h b/cc/trees/layer_tree_impl.h
index be53d19c951daf4dec6c7232f733efc697a29435..4330213e2e18ccb9d3be16e0bb3bb470fc68a618 100644
--- a/cc/trees/layer_tree_impl.h
+++ b/cc/trees/layer_tree_impl.h
@@ -59,6 +59,7 @@ class CC_EXPORT LayerTreeImpl {
virtual ~LayerTreeImpl();
void Shutdown();
+ void ReleaseResources();
// Methods called by the layer tree that pass-through or access LTHI.
// ---------------------------------------------------------------------------
@@ -163,6 +164,9 @@ class CC_EXPORT LayerTreeImpl {
}
float sent_page_scale_delta() const { return sent_page_scale_delta_; }
+ void SetUseGpuRasterization(bool use_gpu);
+ bool use_gpu_rasterization() const { return use_gpu_rasterization_; }
+
// Updates draw properties and render surface layer list, as well as tile
// priorities.
void UpdateDrawProperties();
@@ -250,6 +254,7 @@ class CC_EXPORT LayerTreeImpl {
protected:
explicit LayerTreeImpl(LayerTreeHostImpl* layer_tree_host_impl);
+ void ReleaseResourcesRecursive(LayerImpl* current);
LayerTreeHostImpl* layer_tree_host_impl_;
int source_frame_number_;
@@ -286,6 +291,7 @@ class CC_EXPORT LayerTreeImpl {
// frame. Used for rendering and input event hit testing.
LayerImplList render_surface_layer_list_;
+ bool use_gpu_rasterization_;
bool contents_textures_purged_;
bool requires_high_res_to_draw_;
bool viewport_size_invalid_;
« no previous file with comments | « cc/trees/layer_tree_host_unittest.cc ('k') | cc/trees/layer_tree_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698