OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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_OUTPUT_RENDERER_H_ | 5 #ifndef CC_OUTPUT_RENDERER_H_ |
6 #define CC_OUTPUT_RENDERER_H_ | 6 #define CC_OUTPUT_RENDERER_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "cc/base/cc_export.h" | 9 #include "cc/base/cc_export.h" |
10 #include "cc/debug/latency_info.h" | 10 #include "cc/debug/latency_info.h" |
11 #include "cc/quads/render_pass.h" | 11 #include "cc/quads/render_pass.h" |
12 #include "cc/resources/managed_memory_policy.h" | 12 #include "cc/resources/managed_memory_policy.h" |
13 #include "cc/trees/layer_tree_host.h" | 13 #include "cc/trees/layer_tree_host.h" |
14 | 14 |
15 namespace cc { | 15 namespace cc { |
16 | 16 |
17 class CompositorFrameAck; | 17 class CompositorFrameAck; |
18 class CompositorFrameMetadata; | 18 class CompositorFrameMetadata; |
19 class ScopedResource; | 19 class ScopedResource; |
20 | 20 |
21 class CC_EXPORT RendererClient { | 21 class CC_EXPORT RendererClient { |
22 public: | 22 public: |
| 23 virtual gfx::Vector2d DeviceViewportOffset() const = 0; |
23 virtual gfx::Size DeviceViewportSize() const = 0; | 24 virtual gfx::Size DeviceViewportSize() const = 0; |
24 virtual const LayerTreeSettings& Settings() const = 0; | 25 virtual const LayerTreeSettings& Settings() const = 0; |
25 virtual void SetFullRootLayerDamage() = 0; | 26 virtual void SetFullRootLayerDamage() = 0; |
26 virtual void SetManagedMemoryPolicy(const ManagedMemoryPolicy& policy) = 0; | 27 virtual void SetManagedMemoryPolicy(const ManagedMemoryPolicy& policy) = 0; |
27 virtual void EnforceManagedMemoryPolicy( | 28 virtual void EnforceManagedMemoryPolicy( |
28 const ManagedMemoryPolicy& policy) = 0; | 29 const ManagedMemoryPolicy& policy) = 0; |
29 virtual bool HasImplThread() const = 0; | 30 virtual bool HasImplThread() const = 0; |
30 virtual bool ShouldClearRootRenderPass() const = 0; | 31 virtual bool ShouldClearRootRenderPass() const = 0; |
31 virtual CompositorFrameMetadata MakeCompositorFrameMetadata() const = 0; | 32 virtual CompositorFrameMetadata MakeCompositorFrameMetadata() const = 0; |
32 virtual bool AllowPartialSwap() const = 0; | 33 virtual bool AllowPartialSwap() const = 0; |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 : client_(client) {} | 84 : client_(client) {} |
84 | 85 |
85 RendererClient* client_; | 86 RendererClient* client_; |
86 | 87 |
87 DISALLOW_COPY_AND_ASSIGN(Renderer); | 88 DISALLOW_COPY_AND_ASSIGN(Renderer); |
88 }; | 89 }; |
89 | 90 |
90 } // namespace cc | 91 } // namespace cc |
91 | 92 |
92 #endif // CC_OUTPUT_RENDERER_H_ | 93 #endif // CC_OUTPUT_RENDERER_H_ |
OLD | NEW |