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

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

Issue 2800633003: Test that main thread frames cease to fire during composited animation
Patch Set: removestacktrace Created 3 years, 8 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/ipc/compositor_frame_metadata_struct_traits.cc ('k') | cc/trees/layer_tree_host_impl.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_COMPOSITOR_FRAME_METADATA_H_ 5 #ifndef CC_OUTPUT_COMPOSITOR_FRAME_METADATA_H_
6 #define CC_OUTPUT_COMPOSITOR_FRAME_METADATA_H_ 6 #define CC_OUTPUT_COMPOSITOR_FRAME_METADATA_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 uint32_t content_source_id = 0; 90 uint32_t content_source_id = 0;
91 91
92 // BeginFrameAck for the BeginFrame that this CompositorFrame answers. 92 // BeginFrameAck for the BeginFrame that this CompositorFrame answers.
93 BeginFrameAck begin_frame_ack; 93 BeginFrameAck begin_frame_ack;
94 94
95 // Once the display compositor processes a frame containing a non-zero frame 95 // Once the display compositor processes a frame containing a non-zero frame
96 // token, the token is sent to embedder of the frame. This is helpful when 96 // token, the token is sent to embedder of the frame. This is helpful when
97 // the embedder wants to do something after a particular frame is processed. 97 // the embedder wants to do something after a particular frame is processed.
98 uint32_t frame_token = 0; 98 uint32_t frame_token = 0;
99 99
100 bool is_main_thread_frame = true;
101
100 private: 102 private:
101 CompositorFrameMetadata(const CompositorFrameMetadata& other); 103 CompositorFrameMetadata(const CompositorFrameMetadata& other);
102 CompositorFrameMetadata operator=(const CompositorFrameMetadata&) = delete; 104 CompositorFrameMetadata operator=(const CompositorFrameMetadata&) = delete;
103 }; 105 };
104 106
105 } // namespace cc 107 } // namespace cc
106 108
107 #endif // CC_OUTPUT_COMPOSITOR_FRAME_METADATA_H_ 109 #endif // CC_OUTPUT_COMPOSITOR_FRAME_METADATA_H_
OLDNEW
« no previous file with comments | « cc/ipc/compositor_frame_metadata_struct_traits.cc ('k') | cc/trees/layer_tree_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698