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 |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 unsigned background_color, | 56 unsigned background_color, |
57 unsigned edge_aa_mask, | 57 unsigned edge_aa_mask, |
58 const gfx::RectF& rect, | 58 const gfx::RectF& rect, |
59 bool is_clipped, | 59 bool is_clipped, |
60 const gfx::RectF& clip_rect, | 60 const gfx::RectF& clip_rect, |
61 const gfx::Transform& transform, | 61 const gfx::Transform& transform, |
62 int sorting_context_id) override; | 62 int sorting_context_id) override; |
63 bool IsSurfaceless() const override; | 63 bool IsSurfaceless() const override; |
64 | 64 |
65 // ImageTransportSurface implementation | 65 // ImageTransportSurface implementation |
66 void OnBufferPresented( | 66 void BufferPresented(const BufferPresentedParams& params) override; |
67 const AcceleratedSurfaceMsg_BufferPresented_Params& params) override; | |
68 void SetLatencyInfo(const std::vector<ui::LatencyInfo>&) override; | 67 void SetLatencyInfo(const std::vector<ui::LatencyInfo>&) override; |
69 | 68 |
70 // ui::GpuSwitchingObserver implementation. | 69 // ui::GpuSwitchingObserver implementation. |
71 void OnGpuSwitched() override; | 70 void OnGpuSwitched() override; |
72 | 71 |
73 private: | 72 private: |
74 class PendingSwap; | 73 class PendingSwap; |
75 class OverlayPlane; | 74 class OverlayPlane; |
76 | 75 |
77 ~ImageTransportSurfaceOverlayMac() override; | 76 ~ImageTransportSurfaceOverlayMac() override; |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 base::TimeTicks vsync_timebase_; | 138 base::TimeTicks vsync_timebase_; |
140 base::TimeDelta vsync_interval_; | 139 base::TimeDelta vsync_interval_; |
141 | 140 |
142 base::Timer display_pending_swap_timer_; | 141 base::Timer display_pending_swap_timer_; |
143 base::WeakPtrFactory<ImageTransportSurfaceOverlayMac> weak_factory_; | 142 base::WeakPtrFactory<ImageTransportSurfaceOverlayMac> weak_factory_; |
144 }; | 143 }; |
145 | 144 |
146 } // namespace content | 145 } // namespace content |
147 | 146 |
148 #endif // CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_OVERLAY_MAC_H_ | 147 #endif // CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_OVERLAY_MAC_H_ |
OLD | NEW |