Index: cc/test/test_context_support.cc |
diff --git a/cc/test/test_context_support.cc b/cc/test/test_context_support.cc |
index 3c2e31a819171b7f30215cf3043beec584c1b619..dfd2ddacd9c96662ee7c92156652e15bd247c2ae 100644 |
--- a/cc/test/test_context_support.cc |
+++ b/cc/test/test_context_support.cc |
@@ -56,6 +56,11 @@ void TestContextSupport::SetSurfaceVisibleCallback( |
set_visible_callback_ = set_visible_callback; |
} |
+void TestContextSupport::SetScheduleOverlayPlaneCallback( |
+ const ScheduleOverlayPlaneCallback& schedule_overlay_plane_callback) { |
+ schedule_overlay_plane_callback_ = schedule_overlay_plane_callback; |
+} |
+ |
void TestContextSupport::Swap() { |
last_swap_type_ = SWAP; |
base::MessageLoop::current()->PostTask( |
@@ -71,6 +76,21 @@ void TestContextSupport::PartialSwapBuffers(const gfx::Rect& sub_buffer) { |
weak_ptr_factory_.GetWeakPtr())); |
} |
+void TestContextSupport::ScheduleOverlayPlane( |
+ int plane_z_order, |
+ unsigned plane_transform, |
+ const gpu::Mailbox& overlay_texture, |
+ const gfx::Rect& display_bounds, |
+ const gfx::RectF& uv_rect) { |
+ if (!schedule_overlay_plane_callback_.is_null()) { |
+ schedule_overlay_plane_callback_.Run(plane_z_order, |
+ plane_transform, |
+ overlay_texture, |
+ display_bounds, |
+ uv_rect); |
+ } |
+} |
+ |
void TestContextSupport::SetSwapBuffersCompleteCallback( |
const base::Closure& callback) { |
swap_buffers_complete_callback_ = callback; |