| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "content/public/test/test_synchronous_compositor_android.h" | 5 #include "content/public/test/test_synchronous_compositor_android.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "cc/output/compositor_frame.h" | 9 #include "cc/output/compositor_frame.h" |
| 10 | 10 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 client_->DidInitializeCompositor(this, process_id_, routing_id_); | 26 client_->DidInitializeCompositor(this, process_id_, routing_id_); |
| 27 } | 27 } |
| 28 | 28 |
| 29 SynchronousCompositor::Frame TestSynchronousCompositor::DemandDrawHw( | 29 SynchronousCompositor::Frame TestSynchronousCompositor::DemandDrawHw( |
| 30 const gfx::Size& viewport_size, | 30 const gfx::Size& viewport_size, |
| 31 const gfx::Rect& viewport_rect_for_tile_priority, | 31 const gfx::Rect& viewport_rect_for_tile_priority, |
| 32 const gfx::Transform& transform_for_tile_priority) { | 32 const gfx::Transform& transform_for_tile_priority) { |
| 33 return std::move(hardware_frame_); | 33 return std::move(hardware_frame_); |
| 34 } | 34 } |
| 35 | 35 |
| 36 void TestSynchronousCompositor::DemandDrawHwAsync( |
| 37 const gfx::Size& viewport_size, |
| 38 const gfx::Rect& viewport_rect_for_tile_priority, |
| 39 const gfx::Transform& transform_for_tile_priority) {} |
| 40 |
| 36 void TestSynchronousCompositor::ReturnResources( | 41 void TestSynchronousCompositor::ReturnResources( |
| 37 uint32_t output_surface_id, | 42 uint32_t output_surface_id, |
| 38 const cc::ReturnedResourceArray& resources) { | 43 const cc::ReturnedResourceArray& resources) { |
| 39 ReturnedResources returned_resources; | 44 ReturnedResources returned_resources; |
| 40 returned_resources.output_surface_id = output_surface_id; | 45 returned_resources.output_surface_id = output_surface_id; |
| 41 returned_resources.resources = resources; | 46 returned_resources.resources = resources; |
| 42 frame_ack_array_.push_back(returned_resources); | 47 frame_ack_array_.push_back(returned_resources); |
| 43 } | 48 } |
| 44 | 49 |
| 45 void TestSynchronousCompositor::SwapReturnedResources(FrameAckArray* array) { | 50 void TestSynchronousCompositor::SwapReturnedResources(FrameAckArray* array) { |
| (...skipping 15 matching lines...) Expand all Loading... |
| 61 | 66 |
| 62 TestSynchronousCompositor::ReturnedResources::ReturnedResources() | 67 TestSynchronousCompositor::ReturnedResources::ReturnedResources() |
| 63 : output_surface_id(0u) {} | 68 : output_surface_id(0u) {} |
| 64 | 69 |
| 65 TestSynchronousCompositor::ReturnedResources::ReturnedResources( | 70 TestSynchronousCompositor::ReturnedResources::ReturnedResources( |
| 66 const ReturnedResources& other) = default; | 71 const ReturnedResources& other) = default; |
| 67 | 72 |
| 68 TestSynchronousCompositor::ReturnedResources::~ReturnedResources() {} | 73 TestSynchronousCompositor::ReturnedResources::~ReturnedResources() {} |
| 69 | 74 |
| 70 } // namespace content | 75 } // namespace content |
| OLD | NEW |