| 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 <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "cc/base/cc_export.h" | 10 #include "cc/base/cc_export.h" |
| 11 #include "cc/output/viewport_selection_bound.h" | 11 #include "cc/output/viewport_selection_bound.h" |
| 12 #include "cc/surfaces/surface_id.h" |
| 12 #include "third_party/skia/include/core/SkColor.h" | 13 #include "third_party/skia/include/core/SkColor.h" |
| 13 #include "ui/events/latency_info.h" | 14 #include "ui/events/latency_info.h" |
| 14 #include "ui/gfx/geometry/size_f.h" | 15 #include "ui/gfx/geometry/size_f.h" |
| 15 #include "ui/gfx/geometry/vector2d_f.h" | 16 #include "ui/gfx/geometry/vector2d_f.h" |
| 16 | 17 |
| 17 namespace cc { | 18 namespace cc { |
| 18 | 19 |
| 19 class CC_EXPORT CompositorFrameMetadata { | 20 class CC_EXPORT CompositorFrameMetadata { |
| 20 public: | 21 public: |
| 21 CompositorFrameMetadata(); | 22 CompositorFrameMetadata(); |
| (...skipping 28 matching lines...) Expand all Loading... |
| 50 | 51 |
| 51 // Provides selection region updates relative to the current viewport. If the | 52 // Provides selection region updates relative to the current viewport. If the |
| 52 // selection is empty or otherwise unused, the bound types will indicate such. | 53 // selection is empty or otherwise unused, the bound types will indicate such. |
| 53 ViewportSelection selection; | 54 ViewportSelection selection; |
| 54 | 55 |
| 55 std::vector<ui::LatencyInfo> latency_info; | 56 std::vector<ui::LatencyInfo> latency_info; |
| 56 | 57 |
| 57 // A set of SurfaceSequences that this frame satisfies (always in the same | 58 // A set of SurfaceSequences that this frame satisfies (always in the same |
| 58 // namespace as the current Surface). | 59 // namespace as the current Surface). |
| 59 std::vector<uint32_t> satisfies_sequences; | 60 std::vector<uint32_t> satisfies_sequences; |
| 61 |
| 62 // This is the set of Surfaces that are referenced by this frame. |
| 63 std::vector<SurfaceId> referenced_surfaces; |
| 60 }; | 64 }; |
| 61 | 65 |
| 62 } // namespace cc | 66 } // namespace cc |
| 63 | 67 |
| 64 #endif // CC_OUTPUT_COMPOSITOR_FRAME_METADATA_H_ | 68 #endif // CC_OUTPUT_COMPOSITOR_FRAME_METADATA_H_ |
| OLD | NEW |