Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(105)

Side by Side Diff: cc/test/fake_output_surface.h

Issue 2147873003: cc: Dedup IPCs to return resources to client (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add bool is_swap_ack + remove CompositorFrameAck Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698