| 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 | 75 |
| 76 std::vector<ui::LatencyInfo> latency_info; | 76 std::vector<ui::LatencyInfo> latency_info; |
| 77 | 77 |
| 78 // This is the set of Surfaces that are referenced by this frame. | 78 // This is the set of Surfaces that are referenced by this frame. |
| 79 std::vector<SurfaceId> referenced_surfaces; | 79 std::vector<SurfaceId> referenced_surfaces; |
| 80 | 80 |
| 81 // This indicates whether this CompositorFrame can be activated before | 81 // This indicates whether this CompositorFrame can be activated before |
| 82 // dependencies have been resolved. | 82 // dependencies have been resolved. |
| 83 bool can_activate_before_dependencies = true; | 83 bool can_activate_before_dependencies = true; |
| 84 | 84 |
| 85 // This is a value that allows the browser to associate compositor frames |
| 86 // with the content that they represent -- typically top-level page loads. |
| 87 // TODO(kenrb, fsamuel): This should eventually by SurfaceID, when they |
| 88 // become available in all renderer processes. See https://crbug.com/695579. |
| 89 uint32_t content_source_id = 0; |
| 90 |
| 85 private: | 91 private: |
| 86 CompositorFrameMetadata(const CompositorFrameMetadata& other); | 92 CompositorFrameMetadata(const CompositorFrameMetadata& other); |
| 87 CompositorFrameMetadata operator=(const CompositorFrameMetadata&) = delete; | 93 CompositorFrameMetadata operator=(const CompositorFrameMetadata&) = delete; |
| 88 }; | 94 }; |
| 89 | 95 |
| 90 } // namespace cc | 96 } // namespace cc |
| 91 | 97 |
| 92 #endif // CC_OUTPUT_COMPOSITOR_FRAME_METADATA_H_ | 98 #endif // CC_OUTPUT_COMPOSITOR_FRAME_METADATA_H_ |
| OLD | NEW |