| OLD | NEW |
| 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_IMPL_H_ | 5 #ifndef CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| 6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 | 175 |
| 176 const LayerTreeSettings& settings() const { return settings_; } | 176 const LayerTreeSettings& settings() const { return settings_; } |
| 177 | 177 |
| 178 // Returns the currently visible viewport size in DIP. This value excludes | 178 // Returns the currently visible viewport size in DIP. This value excludes |
| 179 // the URL bar and non-overlay scrollbars. | 179 // the URL bar and non-overlay scrollbars. |
| 180 gfx::SizeF VisibleViewportSize() const; | 180 gfx::SizeF VisibleViewportSize() const; |
| 181 | 181 |
| 182 // RendererClient implementation | 182 // RendererClient implementation |
| 183 private: | 183 private: |
| 184 virtual gfx::Size DeviceViewportSize() const OVERRIDE; | 184 virtual gfx::Size DeviceViewportSize() const OVERRIDE; |
| 185 virtual float DeviceScaleFactor() const OVERRIDE; |
| 185 virtual const LayerTreeSettings& Settings() const OVERRIDE; | 186 virtual const LayerTreeSettings& Settings() const OVERRIDE; |
| 186 public: | 187 public: |
| 187 virtual void DidLoseOutputSurface() OVERRIDE; | 188 virtual void DidLoseOutputSurface() OVERRIDE; |
| 188 virtual void OnSwapBuffersComplete() OVERRIDE; | 189 virtual void OnSwapBuffersComplete() OVERRIDE; |
| 189 virtual void SetFullRootLayerDamage() OVERRIDE; | 190 virtual void SetFullRootLayerDamage() OVERRIDE; |
| 190 virtual void SetManagedMemoryPolicy(const ManagedMemoryPolicy& policy) | 191 virtual void SetManagedMemoryPolicy(const ManagedMemoryPolicy& policy) |
| 191 OVERRIDE; | 192 OVERRIDE; |
| 192 virtual void EnforceManagedMemoryPolicy(const ManagedMemoryPolicy& policy) | 193 virtual void EnforceManagedMemoryPolicy(const ManagedMemoryPolicy& policy) |
| 193 OVERRIDE; | 194 OVERRIDE; |
| 194 virtual bool HasImplThread() const OVERRIDE; | 195 virtual bool HasImplThread() const OVERRIDE; |
| (...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 504 scoped_ptr<AnimationRegistrar> animation_registrar_; | 505 scoped_ptr<AnimationRegistrar> animation_registrar_; |
| 505 | 506 |
| 506 RenderingStatsInstrumentation* rendering_stats_instrumentation_; | 507 RenderingStatsInstrumentation* rendering_stats_instrumentation_; |
| 507 | 508 |
| 508 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 509 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
| 509 }; | 510 }; |
| 510 | 511 |
| 511 } // namespace cc | 512 } // namespace cc |
| 512 | 513 |
| 513 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 514 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| OLD | NEW |