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 return; | |
boliu
2016/09/02 22:34:23
just leave this empty, don't return in a void meth
| |
41 } | |
42 | |
36 void TestSynchronousCompositor::ReturnResources( | 43 void TestSynchronousCompositor::ReturnResources( |
37 uint32_t output_surface_id, | 44 uint32_t output_surface_id, |
38 const cc::ReturnedResourceArray& resources) { | 45 const cc::ReturnedResourceArray& resources) { |
39 ReturnedResources returned_resources; | 46 ReturnedResources returned_resources; |
40 returned_resources.output_surface_id = output_surface_id; | 47 returned_resources.output_surface_id = output_surface_id; |
41 returned_resources.resources = resources; | 48 returned_resources.resources = resources; |
42 frame_ack_array_.push_back(returned_resources); | 49 frame_ack_array_.push_back(returned_resources); |
43 } | 50 } |
44 | 51 |
45 void TestSynchronousCompositor::SwapReturnedResources(FrameAckArray* array) { | 52 void TestSynchronousCompositor::SwapReturnedResources(FrameAckArray* array) { |
(...skipping 15 matching lines...) Expand all Loading... | |
61 | 68 |
62 TestSynchronousCompositor::ReturnedResources::ReturnedResources() | 69 TestSynchronousCompositor::ReturnedResources::ReturnedResources() |
63 : output_surface_id(0u) {} | 70 : output_surface_id(0u) {} |
64 | 71 |
65 TestSynchronousCompositor::ReturnedResources::ReturnedResources( | 72 TestSynchronousCompositor::ReturnedResources::ReturnedResources( |
66 const ReturnedResources& other) = default; | 73 const ReturnedResources& other) = default; |
67 | 74 |
68 TestSynchronousCompositor::ReturnedResources::~ReturnedResources() {} | 75 TestSynchronousCompositor::ReturnedResources::~ReturnedResources() {} |
69 | 76 |
70 } // namespace content | 77 } // namespace content |
OLD | NEW |