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

Side by Side Diff: cc/output/begin_frame_args.cc

Issue 2755463002: [cc] Fix CompositorFrameSinkSupport BeginFrameAck interface. (Closed)
Patch Set: sync Created 3 years, 9 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/output/begin_frame_args.h ('k') | cc/surfaces/compositor_frame_sink_support.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/output/begin_frame_args.h" 5 #include "cc/output/begin_frame_args.h"
6 6
7 #include "base/trace_event/trace_event_argument.h" 7 #include "base/trace_event/trace_event_argument.h"
8 8
9 namespace cc { 9 namespace cc {
10 10
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 uint32_t remaining_frames, 120 uint32_t remaining_frames,
121 bool has_damage) 121 bool has_damage)
122 : sequence_number(sequence_number), 122 : sequence_number(sequence_number),
123 latest_confirmed_sequence_number(latest_confirmed_sequence_number), 123 latest_confirmed_sequence_number(latest_confirmed_sequence_number),
124 source_id(source_id), 124 source_id(source_id),
125 remaining_frames(remaining_frames), 125 remaining_frames(remaining_frames),
126 has_damage(has_damage) { 126 has_damage(has_damage) {
127 DCHECK_LT(BeginFrameArgs::kInvalidFrameNumber, sequence_number); 127 DCHECK_LT(BeginFrameArgs::kInvalidFrameNumber, sequence_number);
128 } 128 }
129 129
130 // static
131 BeginFrameAck BeginFrameAck::CreateManualAckWithDamage() {
132 return BeginFrameAck(BeginFrameArgs::kManualSourceId,
133 BeginFrameArgs::kStartingFrameNumber,
134 BeginFrameArgs::kInvalidFrameNumber, 0, true);
135 }
136
130 } // namespace cc 137 } // namespace cc
OLDNEW
« no previous file with comments | « cc/output/begin_frame_args.h ('k') | cc/surfaces/compositor_frame_sink_support.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698