| 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 | 85 |
| 86 // This is a value that allows the browser to associate compositor frames | 86 // This is a value that allows the browser to associate compositor frames |
| 87 // with the content that they represent -- typically top-level page loads. | 87 // with the content that they represent -- typically top-level page loads. |
| 88 // TODO(kenrb, fsamuel): This should eventually by SurfaceID, when they | 88 // TODO(kenrb, fsamuel): This should eventually by SurfaceID, when they |
| 89 // become available in all renderer processes. See https://crbug.com/695579. | 89 // become available in all renderer processes. See https://crbug.com/695579. |
| 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 |
| 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. |
| 98 uint32_t frame_token = 0; |
| 99 |
| 95 private: | 100 private: |
| 96 CompositorFrameMetadata(const CompositorFrameMetadata& other); | 101 CompositorFrameMetadata(const CompositorFrameMetadata& other); |
| 97 CompositorFrameMetadata operator=(const CompositorFrameMetadata&) = delete; | 102 CompositorFrameMetadata operator=(const CompositorFrameMetadata&) = delete; |
| 98 }; | 103 }; |
| 99 | 104 |
| 100 } // namespace cc | 105 } // namespace cc |
| 101 | 106 |
| 102 #endif // CC_OUTPUT_COMPOSITOR_FRAME_METADATA_H_ | 107 #endif // CC_OUTPUT_COMPOSITOR_FRAME_METADATA_H_ |
| OLD | NEW |