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 "cc/surfaces/surface.h" | 5 #include "cc/surfaces/surface.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <algorithm> | 10 #include <algorithm> |
11 | 11 |
12 #include "base/stl_util.h" | 12 #include "base/stl_util.h" |
13 #include "cc/output/compositor_frame.h" | |
14 #include "cc/output/copy_output_request.h" | 13 #include "cc/output/copy_output_request.h" |
15 #include "cc/surfaces/compositor_frame_sink_support.h" | 14 #include "cc/surfaces/compositor_frame_sink_support.h" |
16 #include "cc/surfaces/local_surface_id_allocator.h" | 15 #include "cc/surfaces/local_surface_id_allocator.h" |
17 #include "cc/surfaces/surface_manager.h" | 16 #include "cc/surfaces/surface_manager.h" |
18 #include "cc/surfaces/surface_resource_holder_client.h" | 17 #include "cc/surfaces/surface_resource_holder_client.h" |
19 | 18 |
20 namespace cc { | 19 namespace cc { |
21 | 20 |
22 // The frame index starts at 2 so that empty frames will be treated as | 21 // The frame index starts at 2 so that empty frames will be treated as |
23 // completely damaged the first time they're drawn from. | 22 // completely damaged the first time they're drawn from. |
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
366 frame->metadata.latency_info.swap(*latency_info); | 365 frame->metadata.latency_info.swap(*latency_info); |
367 return; | 366 return; |
368 } | 367 } |
369 std::copy(frame->metadata.latency_info.begin(), | 368 std::copy(frame->metadata.latency_info.begin(), |
370 frame->metadata.latency_info.end(), | 369 frame->metadata.latency_info.end(), |
371 std::back_inserter(*latency_info)); | 370 std::back_inserter(*latency_info)); |
372 frame->metadata.latency_info.clear(); | 371 frame->metadata.latency_info.clear(); |
373 } | 372 } |
374 | 373 |
375 } // namespace cc | 374 } // namespace cc |
OLD | NEW |