| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 } | 116 } |
| 117 void BindFramebuffer() override; | 117 void BindFramebuffer() override; |
| 118 uint32_t GetFramebufferCopyTextureFormat() override; | 118 uint32_t GetFramebufferCopyTextureFormat() override; |
| 119 | 119 |
| 120 void SetTreeActivationCallback(const base::Closure& callback); | 120 void SetTreeActivationCallback(const base::Closure& callback); |
| 121 | 121 |
| 122 const TransferableResourceArray& resources_held_by_parent() { | 122 const TransferableResourceArray& resources_held_by_parent() { |
| 123 return resources_held_by_parent_; | 123 return resources_held_by_parent_; |
| 124 } | 124 } |
| 125 | 125 |
| 126 void ReturnResource(unsigned id, CompositorFrameAck* ack); | 126 void ReturnResource(unsigned id, ReturnedResourceArray* resources); |
| 127 | 127 |
| 128 bool HasExternalStencilTest() const override; | 128 bool HasExternalStencilTest() const override; |
| 129 | 129 |
| 130 bool SurfaceIsSuspendForRecycle() const override; | 130 bool SurfaceIsSuspendForRecycle() const override; |
| 131 | 131 |
| 132 OverlayCandidateValidator* GetOverlayCandidateValidator() const override; | 132 OverlayCandidateValidator* GetOverlayCandidateValidator() const override; |
| 133 void SetOverlayCandidateValidator(OverlayCandidateValidator* validator) { | 133 void SetOverlayCandidateValidator(OverlayCandidateValidator* validator) { |
| 134 overlay_candidate_validator_ = validator; | 134 overlay_candidate_validator_ = validator; |
| 135 } | 135 } |
| 136 | 136 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 GLenum framebuffer_format_ = 0; | 171 GLenum framebuffer_format_ = 0; |
| 172 TransferableResourceArray resources_held_by_parent_; | 172 TransferableResourceArray resources_held_by_parent_; |
| 173 std::unique_ptr<ManagedMemoryPolicy> memory_policy_to_set_at_bind_; | 173 std::unique_ptr<ManagedMemoryPolicy> memory_policy_to_set_at_bind_; |
| 174 OverlayCandidateValidator* overlay_candidate_validator_ = nullptr; | 174 OverlayCandidateValidator* overlay_candidate_validator_ = nullptr; |
| 175 gfx::Rect last_swap_rect_; | 175 gfx::Rect last_swap_rect_; |
| 176 }; | 176 }; |
| 177 | 177 |
| 178 } // namespace cc | 178 } // namespace cc |
| 179 | 179 |
| 180 #endif // CC_TEST_FAKE_OUTPUT_SURFACE_H_ | 180 #endif // CC_TEST_FAKE_OUTPUT_SURFACE_H_ |
| OLD | NEW |