OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |