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

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

Issue 2712983003: [cc] Set BeginFrame sequence numbers on CompositorFrames from Scheduler. (Closed)
Patch Set: store BeginFrameAck instead. 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
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 #ifndef CC_OUTPUT_BEGIN_FRAME_ARGS_H_ 5 #ifndef CC_OUTPUT_BEGIN_FRAME_ARGS_H_
6 #define CC_OUTPUT_BEGIN_FRAME_ARGS_H_ 6 #define CC_OUTPUT_BEGIN_FRAME_ARGS_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <memory> 9 #include <memory>
10 10
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 enum BeginFrameArgsType { 43 enum BeginFrameArgsType {
44 INVALID, 44 INVALID,
45 NORMAL, 45 NORMAL,
46 MISSED, 46 MISSED,
47 // Not a real type, but used by the IPC system. Should always remain the 47 // Not a real type, but used by the IPC system. Should always remain the
48 // *last* value in this enum. 48 // *last* value in this enum.
49 BEGIN_FRAME_ARGS_TYPE_MAX, 49 BEGIN_FRAME_ARGS_TYPE_MAX,
50 }; 50 };
51 static const char* TypeToString(BeginFrameArgsType type); 51 static const char* TypeToString(BeginFrameArgsType type);
52 52
53 static constexpr uint32_t kStartingSourceId = 0;
54 static constexpr uint32_t kManualSourceId = UINT32_MAX;
brianderson 2017/03/02 19:53:36 Can you add a comment explaining what a manual sou
Eric Seckler 2017/03/07 12:26:56 Done.
55
53 static constexpr uint64_t kInvalidFrameNumber = 0; 56 static constexpr uint64_t kInvalidFrameNumber = 0;
54 static constexpr uint64_t kStartingFrameNumber = 1; 57 static constexpr uint64_t kStartingFrameNumber = 1;
55 58
56 // Creates an invalid set of values. 59 // Creates an invalid set of values.
57 BeginFrameArgs(); 60 BeginFrameArgs();
58 61
59 #ifdef NDEBUG 62 #ifdef NDEBUG
60 typedef const void* CreationLocation; 63 typedef const void* CreationLocation;
61 #else 64 #else
62 typedef const tracked_objects::Location& CreationLocation; 65 typedef const tracked_objects::Location& CreationLocation;
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 uint32_t remaining_frames; 166 uint32_t remaining_frames;
164 167
165 // |true| if the observer has produced damage (e.g. sent a CompositorFrame or 168 // |true| if the observer has produced damage (e.g. sent a CompositorFrame or
166 // damaged a surface) as part of responding to the BeginFrame. 169 // damaged a surface) as part of responding to the BeginFrame.
167 bool has_damage; 170 bool has_damage;
168 }; 171 };
169 172
170 } // namespace cc 173 } // namespace cc
171 174
172 #endif // CC_OUTPUT_BEGIN_FRAME_ARGS_H_ 175 #endif // CC_OUTPUT_BEGIN_FRAME_ARGS_H_
OLDNEW
« no previous file with comments | « no previous file | cc/output/compositor_frame_metadata.h » ('j') | cc/trees/layer_tree_host_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698