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

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

Issue 1430813002: cc: Fork OverlayCandidate to CALayerOverlay (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master1
Patch Set: Rebase Created 5 years, 1 month 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
« no previous file with comments | « cc/output/overlay_unittest.cc ('k') | cc/test/fake_output_surface.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "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
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
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_
OLDNEW
« no previous file with comments | « cc/output/overlay_unittest.cc ('k') | cc/test/fake_output_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698