Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(952)

Side by Side Diff: cc/surfaces/surface.cc

Issue 2854163003: [cc] Plumb BeginFrameAcks through SurfaceManager to DisplayScheduler. (Closed)
Patch Set: fix clang compile error Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/surfaces/surface.h ('k') | cc/surfaces/surface_manager.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « cc/surfaces/surface.h ('k') | cc/surfaces/surface_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698