| 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..282697d806a886414764c93d4cc8fbd9bffd0a0f 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,20 @@ void TestContextSupport::PartialSwapBuffers(const gfx::Rect& sub_buffer) {
|
| weak_ptr_factory_.GetWeakPtr()));
|
| }
|
|
|
| +void TestContextSupport::ScheduleOverlayPlane(int plane_z_order,
|
| + unsigned plane_transform,
|
| + unsigned overlay_texture_id,
|
| + const gfx::Rect& display_bounds,
|
| + gfx::RectF uv_rect) {
|
| + if (!schedule_overlay_plane_callback_.is_null()) {
|
| + schedule_overlay_plane_callback_.Run(plane_z_order,
|
| + plane_transform,
|
| + overlay_texture_id,
|
| + display_bounds,
|
| + uv_rect);
|
| + }
|
| +}
|
| +
|
| void TestContextSupport::SetSwapBuffersCompleteCallback(
|
| const base::Closure& callback) {
|
| swap_buffers_complete_callback_ = callback;
|
|
|