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 CONTENT_COMMON_ACCELERATED_SURFACE_BUFFERS_SWAPPED_PARAMS_MAC_H_ | 5 #ifndef CONTENT_COMMON_ACCELERATED_SURFACE_BUFFERS_SWAPPED_PARAMS_MAC_H_ |
6 #define CONTENT_COMMON_ACCELERATED_SURFACE_BUFFERS_SWAPPED_PARAMS_MAC_H_ | 6 #define CONTENT_COMMON_ACCELERATED_SURFACE_BUFFERS_SWAPPED_PARAMS_MAC_H_ |
7 | 7 |
8 #include "ui/base/cocoa/remote_layer_api.h" | 8 #include "ui/base/cocoa/remote_layer_api.h" |
| 9 #include "ui/events/latency_info.h" |
9 #include "ui/gfx/mac/io_surface.h" | 10 #include "ui/gfx/mac/io_surface.h" |
10 #include "ui/latency_info/latency_info.h" | |
11 | 11 |
12 namespace content { | 12 namespace content { |
13 | 13 |
14 struct AcceleratedSurfaceBuffersSwappedParams { | 14 struct AcceleratedSurfaceBuffersSwappedParams { |
15 AcceleratedSurfaceBuffersSwappedParams(); | 15 AcceleratedSurfaceBuffersSwappedParams(); |
16 ~AcceleratedSurfaceBuffersSwappedParams(); | 16 ~AcceleratedSurfaceBuffersSwappedParams(); |
17 | 17 |
18 int32_t surface_id; | 18 int32_t surface_id; |
19 CAContextID ca_context_id; | 19 CAContextID ca_context_id; |
20 gfx::ScopedRefCountedIOSurfaceMachPort io_surface; | 20 gfx::ScopedRefCountedIOSurfaceMachPort io_surface; |
21 gfx::Size size; | 21 gfx::Size size; |
22 float scale_factor; | 22 float scale_factor; |
23 std::vector<ui::LatencyInfo> latency_info; | 23 std::vector<ui::LatencyInfo> latency_info; |
24 }; | 24 }; |
25 | 25 |
26 } // namespace content | 26 } // namespace content |
27 | 27 |
28 #endif // CONTENT_COMMON_ACCELERATED_SURFACE_BUFFERS_SWAPPED_PARAMS_MAC_H_ | 28 #endif // CONTENT_COMMON_ACCELERATED_SURFACE_BUFFERS_SWAPPED_PARAMS_MAC_H_ |
OLD | NEW |