| 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_TEST_FAKE_OUTPUT_SURFACE_H_ | 5 #ifndef CC_TEST_FAKE_OUTPUT_SURFACE_H_ |
| 6 #define CC_TEST_FAKE_OUTPUT_SURFACE_H_ | 6 #define CC_TEST_FAKE_OUTPUT_SURFACE_H_ |
| 7 | 7 |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 const TransferableResourceArray& resources_held_by_parent() { | 116 const TransferableResourceArray& resources_held_by_parent() { |
| 117 return resources_held_by_parent_; | 117 return resources_held_by_parent_; |
| 118 } | 118 } |
| 119 | 119 |
| 120 void ReturnResource(unsigned id, CompositorFrameAck* ack); | 120 void ReturnResource(unsigned id, CompositorFrameAck* ack); |
| 121 | 121 |
| 122 bool HasExternalStencilTest() const override; | 122 bool HasExternalStencilTest() const override; |
| 123 | 123 |
| 124 bool SurfaceIsSuspendForRecycle() const override; | 124 bool SurfaceIsSuspendForRecycle() const override; |
| 125 | 125 |
| 126 unsigned GetOverlayTextureId() const override; |
| 127 |
| 126 void set_has_external_stencil_test(bool has_test) { | 128 void set_has_external_stencil_test(bool has_test) { |
| 127 has_external_stencil_test_ = has_test; | 129 has_external_stencil_test_ = has_test; |
| 128 } | 130 } |
| 129 | 131 |
| 130 void set_suspended_for_recycle(bool suspended) { | 132 void set_suspended_for_recycle(bool suspended) { |
| 131 suspended_for_recycle_ = suspended; | 133 suspended_for_recycle_ = suspended; |
| 132 } | 134 } |
| 133 | 135 |
| 134 void SetMemoryPolicyToSetAtBind( | 136 void SetMemoryPolicyToSetAtBind( |
| 135 scoped_ptr<ManagedMemoryPolicy> memory_policy_to_set_at_bind); | 137 scoped_ptr<ManagedMemoryPolicy> memory_policy_to_set_at_bind); |
| (...skipping 26 matching lines...) Expand all Loading... |
| 162 bool suspended_for_recycle_; | 164 bool suspended_for_recycle_; |
| 163 unsigned framebuffer_; | 165 unsigned framebuffer_; |
| 164 TransferableResourceArray resources_held_by_parent_; | 166 TransferableResourceArray resources_held_by_parent_; |
| 165 scoped_ptr<ManagedMemoryPolicy> memory_policy_to_set_at_bind_; | 167 scoped_ptr<ManagedMemoryPolicy> memory_policy_to_set_at_bind_; |
| 166 gfx::Rect last_swap_rect_; | 168 gfx::Rect last_swap_rect_; |
| 167 }; | 169 }; |
| 168 | 170 |
| 169 } // namespace cc | 171 } // namespace cc |
| 170 | 172 |
| 171 #endif // CC_TEST_FAKE_OUTPUT_SURFACE_H_ | 173 #endif // CC_TEST_FAKE_OUTPUT_SURFACE_H_ |
| OLD | NEW |