| 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 const TransferableResourceArray& resources_held_by_parent() { | 110 const TransferableResourceArray& resources_held_by_parent() { |
| 111 return resources_held_by_parent_; | 111 return resources_held_by_parent_; |
| 112 } | 112 } |
| 113 | 113 |
| 114 void ReturnResource(unsigned id, CompositorFrameAck* ack); | 114 void ReturnResource(unsigned id, CompositorFrameAck* ack); |
| 115 | 115 |
| 116 bool HasExternalStencilTest() const override; | 116 bool HasExternalStencilTest() const override; |
| 117 | 117 |
| 118 bool SurfaceIsSuspendForRecycle() const override; | 118 bool SurfaceIsSuspendForRecycle() const override; |
| 119 | 119 |
| 120 OverlayCandidateValidator* GetOverlayCandidateValidator() const override; |
| 121 void SetOverlayCandidateValidator(OverlayCandidateValidator* validator) { |
| 122 overlay_candidate_validator_ = validator; |
| 123 } |
| 124 |
| 120 void set_has_external_stencil_test(bool has_test) { | 125 void set_has_external_stencil_test(bool has_test) { |
| 121 has_external_stencil_test_ = has_test; | 126 has_external_stencil_test_ = has_test; |
| 122 } | 127 } |
| 123 | 128 |
| 124 void set_suspended_for_recycle(bool suspended) { | 129 void set_suspended_for_recycle(bool suspended) { |
| 125 suspended_for_recycle_ = suspended; | 130 suspended_for_recycle_ = suspended; |
| 126 } | 131 } |
| 127 | 132 |
| 128 void SetMemoryPolicyToSetAtBind( | 133 void SetMemoryPolicyToSetAtBind( |
| 129 scoped_ptr<ManagedMemoryPolicy> memory_policy_to_set_at_bind); | 134 scoped_ptr<ManagedMemoryPolicy> memory_policy_to_set_at_bind); |
| (...skipping 20 matching lines...) Expand all Loading... |
| 150 bool delegated_rendering); | 155 bool delegated_rendering); |
| 151 | 156 |
| 152 OutputSurfaceClient* client_; | 157 OutputSurfaceClient* client_; |
| 153 CompositorFrame last_sent_frame_; | 158 CompositorFrame last_sent_frame_; |
| 154 size_t num_sent_frames_; | 159 size_t num_sent_frames_; |
| 155 bool has_external_stencil_test_; | 160 bool has_external_stencil_test_; |
| 156 bool suspended_for_recycle_; | 161 bool suspended_for_recycle_; |
| 157 unsigned framebuffer_; | 162 unsigned framebuffer_; |
| 158 TransferableResourceArray resources_held_by_parent_; | 163 TransferableResourceArray resources_held_by_parent_; |
| 159 scoped_ptr<ManagedMemoryPolicy> memory_policy_to_set_at_bind_; | 164 scoped_ptr<ManagedMemoryPolicy> memory_policy_to_set_at_bind_; |
| 165 OverlayCandidateValidator* overlay_candidate_validator_; |
| 160 gfx::Rect last_swap_rect_; | 166 gfx::Rect last_swap_rect_; |
| 161 }; | 167 }; |
| 162 | 168 |
| 163 } // namespace cc | 169 } // namespace cc |
| 164 | 170 |
| 165 #endif // CC_TEST_FAKE_OUTPUT_SURFACE_H_ | 171 #endif // CC_TEST_FAKE_OUTPUT_SURFACE_H_ |
| OLD | NEW |