| 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> |
| 11 | 11 |
| 12 #include "cc/base/cc_export.h" | 12 #include "cc/base/cc_export.h" |
| 13 #include "cc/input/selection.h" | 13 #include "cc/input/selection.h" |
| 14 #include "cc/output/begin_frame_args.h" |
| 14 #include "cc/surfaces/surface_id.h" | 15 #include "cc/surfaces/surface_id.h" |
| 15 #include "third_party/skia/include/core/SkColor.h" | 16 #include "third_party/skia/include/core/SkColor.h" |
| 16 #include "ui/events/latency_info.h" | 17 #include "ui/events/latency_info.h" |
| 17 #include "ui/gfx/geometry/size_f.h" | 18 #include "ui/gfx/geometry/size_f.h" |
| 18 #include "ui/gfx/geometry/vector2d_f.h" | 19 #include "ui/gfx/geometry/vector2d_f.h" |
| 19 #include "ui/gfx/selection_bound.h" | 20 #include "ui/gfx/selection_bound.h" |
| 20 | 21 |
| 21 namespace cc { | 22 namespace cc { |
| 22 | 23 |
| 23 class CC_EXPORT CompositorFrameMetadata { | 24 class CC_EXPORT CompositorFrameMetadata { |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 // This indicates whether this CompositorFrame can be activated before | 82 // This indicates whether this CompositorFrame can be activated before |
| 82 // dependencies have been resolved. | 83 // dependencies have been resolved. |
| 83 bool can_activate_before_dependencies = true; | 84 bool can_activate_before_dependencies = true; |
| 84 | 85 |
| 85 // 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 |
| 86 // with the content that they represent -- typically top-level page loads. | 87 // with the content that they represent -- typically top-level page loads. |
| 87 // TODO(kenrb, fsamuel): This should eventually by SurfaceID, when they | 88 // TODO(kenrb, fsamuel): This should eventually by SurfaceID, when they |
| 88 // become available in all renderer processes. See https://crbug.com/695579. | 89 // become available in all renderer processes. See https://crbug.com/695579. |
| 89 uint32_t content_source_id = 0; | 90 uint32_t content_source_id = 0; |
| 90 | 91 |
| 92 // BeginFrameAck for the BeginFrame that this CompositorFrame answers. |
| 93 BeginFrameAck begin_frame_ack; |
| 94 |
| 91 private: | 95 private: |
| 92 CompositorFrameMetadata(const CompositorFrameMetadata& other); | 96 CompositorFrameMetadata(const CompositorFrameMetadata& other); |
| 93 CompositorFrameMetadata operator=(const CompositorFrameMetadata&) = delete; | 97 CompositorFrameMetadata operator=(const CompositorFrameMetadata&) = delete; |
| 94 }; | 98 }; |
| 95 | 99 |
| 96 } // namespace cc | 100 } // namespace cc |
| 97 | 101 |
| 98 #endif // CC_OUTPUT_COMPOSITOR_FRAME_METADATA_H_ | 102 #endif // CC_OUTPUT_COMPOSITOR_FRAME_METADATA_H_ |
| OLD | NEW |