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 <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 } | 56 } |
57 | 57 |
58 void TestContextSupport::SetScheduleOverlayPlaneCallback( | 58 void TestContextSupport::SetScheduleOverlayPlaneCallback( |
59 const ScheduleOverlayPlaneCallback& schedule_overlay_plane_callback) { | 59 const ScheduleOverlayPlaneCallback& schedule_overlay_plane_callback) { |
60 schedule_overlay_plane_callback_ = schedule_overlay_plane_callback; | 60 schedule_overlay_plane_callback_ = schedule_overlay_plane_callback; |
61 } | 61 } |
62 | 62 |
63 void TestContextSupport::Swap() { | 63 void TestContextSupport::Swap() { |
64 } | 64 } |
65 | 65 |
| 66 void TestContextSupport::SwapWithDamage(const gfx::Rect& damage) {} |
| 67 |
66 void TestContextSupport::PartialSwapBuffers(const gfx::Rect& sub_buffer) { | 68 void TestContextSupport::PartialSwapBuffers(const gfx::Rect& sub_buffer) { |
67 } | 69 } |
68 | 70 |
69 void TestContextSupport::CommitOverlayPlanes() {} | 71 void TestContextSupport::CommitOverlayPlanes() {} |
70 | 72 |
71 void TestContextSupport::ScheduleOverlayPlane( | 73 void TestContextSupport::ScheduleOverlayPlane( |
72 int plane_z_order, | 74 int plane_z_order, |
73 gfx::OverlayTransform plane_transform, | 75 gfx::OverlayTransform plane_transform, |
74 unsigned overlay_texture_id, | 76 unsigned overlay_texture_id, |
75 const gfx::Rect& display_bounds, | 77 const gfx::Rect& display_bounds, |
76 const gfx::RectF& uv_rect) { | 78 const gfx::RectF& uv_rect) { |
77 if (!schedule_overlay_plane_callback_.is_null()) { | 79 if (!schedule_overlay_plane_callback_.is_null()) { |
78 schedule_overlay_plane_callback_.Run(plane_z_order, | 80 schedule_overlay_plane_callback_.Run(plane_z_order, |
79 plane_transform, | 81 plane_transform, |
80 overlay_texture_id, | 82 overlay_texture_id, |
81 display_bounds, | 83 display_bounds, |
82 uv_rect); | 84 uv_rect); |
83 } | 85 } |
84 } | 86 } |
85 | 87 |
86 uint64_t TestContextSupport::ShareGroupTracingGUID() const { | 88 uint64_t TestContextSupport::ShareGroupTracingGUID() const { |
87 NOTIMPLEMENTED(); | 89 NOTIMPLEMENTED(); |
88 return 0; | 90 return 0; |
89 } | 91 } |
90 | 92 |
91 void TestContextSupport::SetErrorMessageCallback( | 93 void TestContextSupport::SetErrorMessageCallback( |
92 const base::Callback<void(const char*, int32_t)>& callback) {} | 94 const base::Callback<void(const char*, int32_t)>& callback) {} |
93 | 95 |
94 } // namespace cc | 96 } // namespace cc |
OLD | NEW |