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