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

Unified Diff: cc/trees/layer_tree_host_impl.h

Issue 1134123005: cc: split UpdateGpuRasterizationStatus() into two parts. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase to ToT Created 5 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.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_impl.h
diff --git a/cc/trees/layer_tree_host_impl.h b/cc/trees/layer_tree_host_impl.h
index 7e01faf2192586b053f2a1a0bff22d11a38b17ed..82955d4ea497956c8836b167fda74e863c396193 100644
--- a/cc/trees/layer_tree_host_impl.h
+++ b/cc/trees/layer_tree_host_impl.h
@@ -321,14 +321,16 @@ class CC_EXPORT LayerTreeHostImpl
virtual bool InitializeRenderer(scoped_ptr<OutputSurface> output_surface);
TileManager* tile_manager() { return tile_manager_.get(); }
- void set_has_gpu_rasterization_trigger(bool flag) {
+ void SetHasGpuRasterizationTrigger(bool flag) {
has_gpu_rasterization_trigger_ = flag;
+ UpdateGpuRasterizationStatus();
}
- void set_content_is_suitable_for_gpu_rasterization(bool flag) {
+ void SetContentIsSuitableForGpuRasterization(bool flag) {
content_is_suitable_for_gpu_rasterization_ = flag;
+ UpdateGpuRasterizationStatus();
}
bool CanUseGpuRasterization();
- void UpdateGpuRasterizationStatus();
+ void UpdateTreeResourcesForGpuRasterizationIfNeeded();
bool use_gpu_rasterization() const { return use_gpu_rasterization_; }
bool use_msaa() const { return use_msaa_; }
@@ -572,6 +574,8 @@ class CC_EXPORT LayerTreeHostImpl
void ReleaseTreeResources();
void RecreateTreeResources();
+ void UpdateGpuRasterizationStatus();
+
bool IsSynchronousSingleThreaded() const;
Viewport* viewport() { return viewport_.get(); }
@@ -647,6 +651,7 @@ class CC_EXPORT LayerTreeHostImpl
bool use_gpu_rasterization_;
bool use_msaa_;
GpuRasterizationStatus gpu_rasterization_status_;
+ bool tree_resources_for_gpu_rasterization_dirty_;
scoped_ptr<TileTaskWorkerPool> tile_task_worker_pool_;
scoped_ptr<ResourcePool> resource_pool_;
scoped_ptr<ResourcePool> staging_resource_pool_;
« 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