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 #include "cc/output/gl_renderer.h" | 5 #include "cc/output/gl_renderer.h" |
6 | 6 |
7 #include "cc/output/compositor_frame_metadata.h" | 7 #include "cc/output/compositor_frame_metadata.h" |
8 #include "cc/quads/draw_quad.h" | 8 #include "cc/quads/draw_quad.h" |
9 #include "cc/resources/prioritized_resource_manager.h" | 9 #include "cc/resources/prioritized_resource_manager.h" |
10 #include "cc/resources/resource_provider.h" | 10 #include "cc/resources/resource_provider.h" |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 | 130 |
131 // RendererClient methods. | 131 // RendererClient methods. |
132 virtual gfx::Size DeviceViewportSize() const OVERRIDE { | 132 virtual gfx::Size DeviceViewportSize() const OVERRIDE { |
133 static gfx::Size fake_size(1, 1); | 133 static gfx::Size fake_size(1, 1); |
134 return fake_size; | 134 return fake_size; |
135 } | 135 } |
136 virtual const LayerTreeSettings& Settings() const OVERRIDE { | 136 virtual const LayerTreeSettings& Settings() const OVERRIDE { |
137 static LayerTreeSettings fake_settings; | 137 static LayerTreeSettings fake_settings; |
138 return fake_settings; | 138 return fake_settings; |
139 } | 139 } |
140 virtual void DidLoseOutputSurface() OVERRIDE {} | |
141 virtual void OnSwapBuffersComplete() OVERRIDE {} | |
142 virtual void SetFullRootLayerDamage() OVERRIDE { | 140 virtual void SetFullRootLayerDamage() OVERRIDE { |
143 set_full_root_layer_damage_count_++; | 141 set_full_root_layer_damage_count_++; |
144 } | 142 } |
145 virtual void SetManagedMemoryPolicy(const ManagedMemoryPolicy& policy) | 143 virtual void SetManagedMemoryPolicy(const ManagedMemoryPolicy& policy) |
146 OVERRIDE { | 144 OVERRIDE { |
147 memory_allocation_limit_bytes_ = policy.bytes_limit_when_visible; | 145 memory_allocation_limit_bytes_ = policy.bytes_limit_when_visible; |
148 } | 146 } |
149 virtual void EnforceManagedMemoryPolicy(const ManagedMemoryPolicy& policy) | 147 virtual void EnforceManagedMemoryPolicy(const ManagedMemoryPolicy& policy) |
150 OVERRIDE { | 148 OVERRIDE { |
151 if (last_call_was_set_visibility_) | 149 if (last_call_was_set_visibility_) |
(...skipping 870 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1022 } | 1020 } |
1023 }; | 1021 }; |
1024 | 1022 |
1025 TEST_F(MockOutputSurfaceTestWithSendCompositorFrame, DrawFrame) { | 1023 TEST_F(MockOutputSurfaceTestWithSendCompositorFrame, DrawFrame) { |
1026 EXPECT_CALL(output_surface_, SendFrameToParentCompositor(_)).Times(1); | 1024 EXPECT_CALL(output_surface_, SendFrameToParentCompositor(_)).Times(1); |
1027 DrawFrame(); | 1025 DrawFrame(); |
1028 } | 1026 } |
1029 | 1027 |
1030 } // namespace | 1028 } // namespace |
1031 } // namespace cc | 1029 } // namespace cc |
OLD | NEW |