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

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

Issue 2854163003: [cc] Plumb BeginFrameAcks through SurfaceManager to DisplayScheduler. (Closed)
Patch Set: Pass ack via SurfaceDamaged, add back tests. 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
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 354 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 frame->metadata.latency_info.swap(*latency_info); 377 frame->metadata.latency_info.swap(*latency_info);
379 return; 378 return;
380 } 379 }
381 std::copy(frame->metadata.latency_info.begin(), 380 std::copy(frame->metadata.latency_info.begin(),
382 frame->metadata.latency_info.end(), 381 frame->metadata.latency_info.end(),
383 std::back_inserter(*latency_info)); 382 std::back_inserter(*latency_info));
384 frame->metadata.latency_info.clear(); 383 frame->metadata.latency_info.clear();
385 } 384 }
386 385
387 } // namespace cc 386 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698