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

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

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 #include "cc/test/fake_output_surface.h" 5 #include "cc/test/fake_output_surface.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/message_loop/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 #include "cc/output/compositor_frame_ack.h" 9 #include "cc/output/compositor_frame_ack.h"
10 #include "cc/output/output_surface_client.h" 10 #include "cc/output/output_surface_client.h"
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 } 140 }
141 141
142 bool FakeOutputSurface::HasExternalStencilTest() const { 142 bool FakeOutputSurface::HasExternalStencilTest() const {
143 return has_external_stencil_test_; 143 return has_external_stencil_test_;
144 } 144 }
145 145
146 bool FakeOutputSurface::SurfaceIsSuspendForRecycle() const { 146 bool FakeOutputSurface::SurfaceIsSuspendForRecycle() const {
147 return suspended_for_recycle_; 147 return suspended_for_recycle_;
148 } 148 }
149 149
150 unsigned FakeOutputSurface::GetOverlayTextureId() const {
151 return 10000;
152 }
153
150 void FakeOutputSurface::SetMemoryPolicyToSetAtBind( 154 void FakeOutputSurface::SetMemoryPolicyToSetAtBind(
151 scoped_ptr<ManagedMemoryPolicy> memory_policy_to_set_at_bind) { 155 scoped_ptr<ManagedMemoryPolicy> memory_policy_to_set_at_bind) {
152 memory_policy_to_set_at_bind_.swap(memory_policy_to_set_at_bind); 156 memory_policy_to_set_at_bind_.swap(memory_policy_to_set_at_bind);
153 } 157 }
154 158
155 } // namespace cc 159 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698