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

Side by Side Diff: cc/trees/layer_tree_host.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 unified diff | Download patch
« no previous file with comments | « cc/surfaces/BUILD.gn ('k') | 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 <set> 10 #include <set>
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 class Region; 59 class Region;
60 class RenderingStatsInstrumentation; 60 class RenderingStatsInstrumentation;
61 class ResourceProvider; 61 class ResourceProvider;
62 class ResourceUpdateQueue; 62 class ResourceUpdateQueue;
63 class SharedBitmapManager; 63 class SharedBitmapManager;
64 class TopControlsManager; 64 class TopControlsManager;
65 class UIResourceRequest; 65 class UIResourceRequest;
66 struct PendingPageScaleAnimation; 66 struct PendingPageScaleAnimation;
67 struct RenderingStats; 67 struct RenderingStats;
68 struct ScrollAndScaleSet; 68 struct ScrollAndScaleSet;
69 enum class GpuRasterizationStatus;
69 70
70 // Provides information on an Impl's rendering capabilities back to the 71 // Provides information on an Impl's rendering capabilities back to the
71 // LayerTreeHost. 72 // LayerTreeHost.
72 struct CC_EXPORT RendererCapabilities { 73 struct CC_EXPORT RendererCapabilities {
73 RendererCapabilities(ResourceFormat best_texture_format, 74 RendererCapabilities(ResourceFormat best_texture_format,
74 bool allow_partial_texture_updates, 75 bool allow_partial_texture_updates,
75 int max_texture_size, 76 int max_texture_size,
76 bool using_shared_memory_resources); 77 bool using_shared_memory_resources);
77 78
78 RendererCapabilities(); 79 RendererCapabilities();
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 const LayerTreeSettings& settings() const { return settings_; } 202 const LayerTreeSettings& settings() const { return settings_; }
202 203
203 void SetDebugState(const LayerTreeDebugState& debug_state); 204 void SetDebugState(const LayerTreeDebugState& debug_state);
204 const LayerTreeDebugState& debug_state() const { return debug_state_; } 205 const LayerTreeDebugState& debug_state() const { return debug_state_; }
205 206
206 bool has_gpu_rasterization_trigger() const { 207 bool has_gpu_rasterization_trigger() const {
207 return has_gpu_rasterization_trigger_; 208 return has_gpu_rasterization_trigger_;
208 } 209 }
209 void SetHasGpuRasterizationTrigger(bool has_trigger); 210 void SetHasGpuRasterizationTrigger(bool has_trigger);
210 bool UseGpuRasterization() const; 211 bool UseGpuRasterization() const;
212 GpuRasterizationStatus GetGpuRasterizationStatus() const;
211 213
212 void SetViewportSize(const gfx::Size& device_viewport_size); 214 void SetViewportSize(const gfx::Size& device_viewport_size);
213 void SetTopControlsLayoutHeight(float height); 215 void SetTopControlsLayoutHeight(float height);
214 void SetTopControlsContentOffset(float offset); 216 void SetTopControlsContentOffset(float offset);
215 217
216 gfx::Size device_viewport_size() const { return device_viewport_size_; } 218 gfx::Size device_viewport_size() const { return device_viewport_size_; }
217 219
218 void ApplyPageScaleDeltaFromImplSide(float page_scale_delta); 220 void ApplyPageScaleDeltaFromImplSide(float page_scale_delta);
219 void SetPageScaleFactorAndLimits(float page_scale_factor, 221 void SetPageScaleFactorAndLimits(float page_scale_factor,
220 float min_page_scale_factor, 222 float min_page_scale_factor,
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
477 479
478 uint32_t surface_id_namespace_; 480 uint32_t surface_id_namespace_;
479 uint32_t next_surface_sequence_; 481 uint32_t next_surface_sequence_;
480 482
481 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); 483 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost);
482 }; 484 };
483 485
484 } // namespace cc 486 } // namespace cc
485 487
486 #endif // CC_TREES_LAYER_TREE_HOST_H_ 488 #endif // CC_TREES_LAYER_TREE_HOST_H_
OLDNEW
« no previous file with comments | « cc/surfaces/BUILD.gn ('k') | cc/trees/layer_tree_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698