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 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
381 frame->metadata.latency_info.swap(*latency_info); | 380 frame->metadata.latency_info.swap(*latency_info); |
382 return; | 381 return; |
383 } | 382 } |
384 std::copy(frame->metadata.latency_info.begin(), | 383 std::copy(frame->metadata.latency_info.begin(), |
385 frame->metadata.latency_info.end(), | 384 frame->metadata.latency_info.end(), |
386 std::back_inserter(*latency_info)); | 385 std::back_inserter(*latency_info)); |
387 frame->metadata.latency_info.clear(); | 386 frame->metadata.latency_info.clear(); |
388 } | 387 } |
389 | 388 |
390 } // namespace cc | 389 } // namespace cc |
OLD | NEW |