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

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

Issue 2686193002: [cc] facilitate use of BeginFrameAcks in tests. (Closed)
Patch Set: sync Created 3 years, 10 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 | « no previous file | cc/test/begin_frame_args_test.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 30 matching lines...) Expand all
41 base::TimeTicks deadline, 41 base::TimeTicks deadline,
42 base::TimeDelta interval, 42 base::TimeDelta interval,
43 BeginFrameArgs::BeginFrameArgsType type) 43 BeginFrameArgs::BeginFrameArgsType type)
44 : frame_time(frame_time), 44 : frame_time(frame_time),
45 deadline(deadline), 45 deadline(deadline),
46 interval(interval), 46 interval(interval),
47 sequence_number(sequence_number), 47 sequence_number(sequence_number),
48 source_id(source_id), 48 source_id(source_id),
49 type(type), 49 type(type),
50 on_critical_path(true) { 50 on_critical_path(true) {
51 DCHECK_LT(kInvalidFrameNumber, sequence_number); 51 DCHECK_LE(kStartingFrameNumber, sequence_number);
52 } 52 }
53 53
54 BeginFrameArgs BeginFrameArgs::Create(BeginFrameArgs::CreationLocation location, 54 BeginFrameArgs BeginFrameArgs::Create(BeginFrameArgs::CreationLocation location,
55 uint32_t source_id, 55 uint32_t source_id,
56 uint64_t sequence_number, 56 uint64_t sequence_number,
57 base::TimeTicks frame_time, 57 base::TimeTicks frame_time,
58 base::TimeTicks deadline, 58 base::TimeTicks deadline,
59 base::TimeDelta interval, 59 base::TimeDelta interval,
60 BeginFrameArgs::BeginFrameArgsType type) { 60 BeginFrameArgs::BeginFrameArgsType type) {
61 DCHECK_NE(type, BeginFrameArgs::INVALID); 61 DCHECK_NE(type, BeginFrameArgs::INVALID);
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 } // namespace cc 130 } // namespace cc
OLDNEW
« no previous file with comments | « no previous file | cc/test/begin_frame_args_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698