OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_GPU_IMAGE_TRANSPORT_SURFACE_OVERLAY_MAC_H_ | 5 #ifndef CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_OVERLAY_MAC_H_ |
6 #define CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_OVERLAY_MAC_H_ | 6 #define CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_OVERLAY_MAC_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/memory/linked_ptr.h" | |
12 #import "base/mac/scoped_nsobject.h" | 11 #import "base/mac/scoped_nsobject.h" |
13 #include "base/timer/timer.h" | 12 #include "base/timer/timer.h" |
14 #include "content/common/gpu/gpu_command_buffer_stub.h" | 13 #include "content/common/gpu/gpu_command_buffer_stub.h" |
15 #include "content/common/gpu/image_transport_surface.h" | 14 #include "content/common/gpu/image_transport_surface.h" |
16 #include "ui/gl/gl_surface.h" | 15 #include "ui/gl/gl_surface.h" |
17 #include "ui/gl/gpu_switching_observer.h" | 16 #include "ui/gl/gpu_switching_observer.h" |
18 | 17 |
19 @class CAContext; | 18 @class CAContext; |
20 @class CALayer; | 19 @class CALayer; |
21 | 20 |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 base::TimeTicks vsync_timebase_; | 139 base::TimeTicks vsync_timebase_; |
141 base::TimeDelta vsync_interval_; | 140 base::TimeDelta vsync_interval_; |
142 | 141 |
143 base::Timer display_pending_swap_timer_; | 142 base::Timer display_pending_swap_timer_; |
144 base::WeakPtrFactory<ImageTransportSurfaceOverlayMac> weak_factory_; | 143 base::WeakPtrFactory<ImageTransportSurfaceOverlayMac> weak_factory_; |
145 }; | 144 }; |
146 | 145 |
147 } // namespace content | 146 } // namespace content |
148 | 147 |
149 #endif // CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_OVERLAY_MAC_H_ | 148 #endif // CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_OVERLAY_MAC_H_ |
OLD | NEW |