OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_OUTPUT_SURFACE_FRAME_H_ | 5 #ifndef CC_OUTPUT_OUTPUT_SURFACE_FRAME_H_ |
6 #define CC_OUTPUT_OUTPUT_SURFACE_FRAME_H_ | 6 #define CC_OUTPUT_OUTPUT_SURFACE_FRAME_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 OutputSurfaceFrame(); | 22 OutputSurfaceFrame(); |
23 OutputSurfaceFrame(OutputSurfaceFrame&& other); | 23 OutputSurfaceFrame(OutputSurfaceFrame&& other); |
24 ~OutputSurfaceFrame(); | 24 ~OutputSurfaceFrame(); |
25 | 25 |
26 OutputSurfaceFrame& operator=(OutputSurfaceFrame&& other); | 26 OutputSurfaceFrame& operator=(OutputSurfaceFrame&& other); |
27 | 27 |
28 gfx::Size size; | 28 gfx::Size size; |
29 gfx::Rect sub_buffer_rect; | 29 gfx::Rect sub_buffer_rect; |
30 std::vector<ui::LatencyInfo> latency_info; | 30 std::vector<ui::LatencyInfo> latency_info; |
31 | 31 |
| 32 // See corresponding fields in CompositorFrameMetadata. |
| 33 uint64_t begin_frame_source_id = 0; |
| 34 uint64_t begin_frame_number = 0; |
| 35 uint64_t latest_confirmed_frame = 0; |
| 36 |
32 private: | 37 private: |
33 DISALLOW_COPY_AND_ASSIGN(OutputSurfaceFrame); | 38 DISALLOW_COPY_AND_ASSIGN(OutputSurfaceFrame); |
34 }; | 39 }; |
35 | 40 |
36 } // namespace cc | 41 } // namespace cc |
37 | 42 |
38 #endif // CC_OUTPUT_OUTPUT_SURFACE_FRAME_H_ | 43 #endif // CC_OUTPUT_OUTPUT_SURFACE_FRAME_H_ |
OLD | NEW |