OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/test_context_support.h" | 5 #include "cc/test/test_context_support.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/location.h" | 8 #include "base/location.h" |
9 #include "base/single_thread_task_runner.h" | 9 #include "base/single_thread_task_runner.h" |
10 #include "base/thread_task_runner_handle.h" | 10 #include "base/thread_task_runner_handle.h" |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 } | 78 } |
79 | 79 |
80 void TestContextSupport::PartialSwapBuffers(const gfx::Rect& sub_buffer) { | 80 void TestContextSupport::PartialSwapBuffers(const gfx::Rect& sub_buffer) { |
81 } | 81 } |
82 | 82 |
83 void TestContextSupport::CommitOverlayPlanes() {} | 83 void TestContextSupport::CommitOverlayPlanes() {} |
84 | 84 |
85 void TestContextSupport::ScheduleOverlayPlane( | 85 void TestContextSupport::ScheduleOverlayPlane( |
86 int plane_z_order, | 86 int plane_z_order, |
87 gfx::OverlayTransform plane_transform, | 87 gfx::OverlayTransform plane_transform, |
| 88 gfx::BufferFormat storage_format, |
88 unsigned overlay_texture_id, | 89 unsigned overlay_texture_id, |
89 const gfx::Rect& display_bounds, | 90 const gfx::Rect& display_bounds, |
90 const gfx::RectF& uv_rect) { | 91 const gfx::RectF& uv_rect, |
| 92 bool handle_scaling) { |
91 if (!schedule_overlay_plane_callback_.is_null()) { | 93 if (!schedule_overlay_plane_callback_.is_null()) { |
92 schedule_overlay_plane_callback_.Run(plane_z_order, | 94 schedule_overlay_plane_callback_.Run( |
93 plane_transform, | 95 plane_z_order, plane_transform, storage_format, overlay_texture_id, |
94 overlay_texture_id, | 96 display_bounds, uv_rect, handle_scaling); |
95 display_bounds, | |
96 uv_rect); | |
97 } | 97 } |
98 } | 98 } |
99 | 99 |
100 uint64_t TestContextSupport::ShareGroupTracingGUID() const { | 100 uint64_t TestContextSupport::ShareGroupTracingGUID() const { |
101 NOTIMPLEMENTED(); | 101 NOTIMPLEMENTED(); |
102 return 0; | 102 return 0; |
103 } | 103 } |
104 | 104 |
105 } // namespace cc | 105 } // namespace cc |
OLD | NEW |