| 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/test/fake_output_surface.h" | 5 #include "cc/test/fake_output_surface.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
| 9 #include "cc/output/compositor_frame_ack.h" | 9 #include "cc/output/compositor_frame_ack.h" |
| 10 #include "cc/output/output_surface_client.h" | 10 #include "cc/output/output_surface_client.h" |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 } | 140 } |
| 141 | 141 |
| 142 bool FakeOutputSurface::HasExternalStencilTest() const { | 142 bool FakeOutputSurface::HasExternalStencilTest() const { |
| 143 return has_external_stencil_test_; | 143 return has_external_stencil_test_; |
| 144 } | 144 } |
| 145 | 145 |
| 146 bool FakeOutputSurface::SurfaceIsSuspendForRecycle() const { | 146 bool FakeOutputSurface::SurfaceIsSuspendForRecycle() const { |
| 147 return suspended_for_recycle_; | 147 return suspended_for_recycle_; |
| 148 } | 148 } |
| 149 | 149 |
| 150 unsigned FakeOutputSurface::GetOverlayTextureId() const { |
| 151 return 10000; |
| 152 } |
| 153 |
| 150 void FakeOutputSurface::SetMemoryPolicyToSetAtBind( | 154 void FakeOutputSurface::SetMemoryPolicyToSetAtBind( |
| 151 scoped_ptr<ManagedMemoryPolicy> memory_policy_to_set_at_bind) { | 155 scoped_ptr<ManagedMemoryPolicy> memory_policy_to_set_at_bind) { |
| 152 memory_policy_to_set_at_bind_.swap(memory_policy_to_set_at_bind); | 156 memory_policy_to_set_at_bind_.swap(memory_policy_to_set_at_bind); |
| 153 } | 157 } |
| 154 | 158 |
| 155 } // namespace cc | 159 } // namespace cc |
| OLD | NEW |