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

Unified Diff: cc/trees/layer_tree_host_impl.h

Issue 774413002: Update from https://crrev.com/306724 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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 900e658bc96e925bb14f820d29aa1d46a3575165..c248a21ee2e0156b31e16ff5adf1c36476c978c1 100644
--- a/cc/trees/layer_tree_host_impl.h
+++ b/cc/trees/layer_tree_host_impl.h
@@ -62,6 +62,14 @@ class UIResourceBitmap;
class UIResourceRequest;
struct RendererCapabilitiesImpl;
+enum class GpuRasterizationStatus {
+ ON,
+ ON_FORCED,
+ OFF_DEVICE,
+ OFF_VIEWPORT,
+ OFF_CONTENT
+};
+
// LayerTreeHost->Proxy callback interface.
class LayerTreeHostImplClient {
public:
@@ -279,6 +287,15 @@ class CC_EXPORT LayerTreeHostImpl
TileManager* tile_manager() { return tile_manager_.get(); }
void SetUseGpuRasterization(bool use_gpu);
bool use_gpu_rasterization() const { return use_gpu_rasterization_; }
+
+ GpuRasterizationStatus gpu_rasterization_status() const {
+ return gpu_rasterization_status_;
+ }
+ void set_gpu_rasterization_status(
+ GpuRasterizationStatus gpu_rasterization_status) {
+ gpu_rasterization_status_ = gpu_rasterization_status;
+ }
+
bool create_low_res_tiling() const {
return settings_.create_low_res_tiling && !use_gpu_rasterization_;
}
@@ -591,6 +608,7 @@ class CC_EXPORT LayerTreeHostImpl
scoped_ptr<ResourceProvider> resource_provider_;
scoped_ptr<TileManager> tile_manager_;
bool use_gpu_rasterization_;
+ GpuRasterizationStatus gpu_rasterization_status_;
scoped_ptr<RasterWorkerPool> raster_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