OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "content/common/gpu/image_transport_surface_iosurface_mac.h" | 5 #include "content/common/gpu/image_transport_surface_iosurface_mac.h" |
6 | 6 |
7 #include "content/common/gpu/gpu_messages.h" | 7 #include "content/common/gpu/gpu_messages.h" |
8 #include "content/common/gpu/surface_handle_types_mac.h" | 8 #include "content/common/gpu/surface_handle_types_mac.h" |
9 | 9 |
10 namespace content { | 10 namespace content { |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 transport_surface_->SendSwapBuffers( | 117 transport_surface_->SendSwapBuffers( |
118 SurfaceHandleFromIOSurfaceID(io_surface_id_), size, scale_factor); | 118 SurfaceHandleFromIOSurfaceID(io_surface_id_), size, scale_factor); |
119 } | 119 } |
120 | 120 |
121 void IOSurfaceStorageProvider::WillWriteToBackbuffer() { | 121 void IOSurfaceStorageProvider::WillWriteToBackbuffer() { |
122 } | 122 } |
123 | 123 |
124 void IOSurfaceStorageProvider::DiscardBackbuffer() { | 124 void IOSurfaceStorageProvider::DiscardBackbuffer() { |
125 } | 125 } |
126 | 126 |
127 void IOSurfaceStorageProvider::SwapBuffersAckedByBrowser() { | 127 void IOSurfaceStorageProvider::SwapBuffersAckedByBrowser( |
| 128 bool disable_throttling) { |
128 DCHECK(!pending_swapped_surfaces_.empty()); | 129 DCHECK(!pending_swapped_surfaces_.empty()); |
129 pending_swapped_surfaces_.pop_front(); | 130 pending_swapped_surfaces_.pop_front(); |
130 } | 131 } |
131 | 132 |
132 } // namespace content | 133 } // namespace content |
OLD | NEW |