Index: cc/trees/layer_tree_host.h |
diff --git a/cc/trees/layer_tree_host.h b/cc/trees/layer_tree_host.h |
index 72a5628a9adfbca1675c88bfa8680c64bbbfab7c..d9bf38989d7c223e994b75e5d22c5b70097ba160 100644 |
--- a/cc/trees/layer_tree_host.h |
+++ b/cc/trees/layer_tree_host.h |
@@ -272,8 +272,11 @@ class CC_EXPORT LayerTreeHost : NON_EXPORTED_BASE(public RateLimiterClient) { |
// RateLimiterClient implementation. |
virtual void RateLimit() OVERRIDE; |
+ size_t MaxPartialTextureUpdates() const { |
danakj
2013/10/03 17:42:26
rename to max_partial_texture_updates()
|
+ return max_partial_texture_updates_; |
+ } |
bool buffered_updates() const { |
- return settings_.max_partial_texture_updates != |
+ return max_partial_texture_updates_ != |
std::numeric_limits<size_t>::max(); |
} |
bool RequestPartialTextureUpdate(); |
@@ -389,7 +392,7 @@ class CC_EXPORT LayerTreeHost : NON_EXPORTED_BASE(public RateLimiterClient) { |
base::WeakPtr<InputHandler> input_handler_weak_ptr_; |
base::WeakPtr<TopControlsManager> top_controls_manager_weak_ptr_; |
- LayerTreeSettings settings_; |
+ const LayerTreeSettings settings_; |
LayerTreeDebugState debug_state_; |
gfx::Size device_viewport_size_; |
@@ -417,6 +420,7 @@ class CC_EXPORT LayerTreeHost : NON_EXPORTED_BASE(public RateLimiterClient) { |
typedef ScopedPtrVector<PrioritizedResource> TextureList; |
size_t partial_texture_update_requests_; |
+ size_t max_partial_texture_updates_; |
scoped_ptr<AnimationRegistrar> animation_registrar_; |