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

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

Issue 1376883004: Overlays: Remove special casing of primary overlay plane (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add missed file Created 5 years, 2 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 "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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698