OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #if defined(ENABLE_GPU) | |
6 | |
7 #include "content/common/gpu/image_transport_surface.h" | 5 #include "content/common/gpu/image_transport_surface.h" |
8 | 6 |
9 #include "base/bind.h" | 7 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
11 #include "base/command_line.h" | 9 #include "base/command_line.h" |
12 #include "base/debug/trace_event.h" | 10 #include "base/debug/trace_event.h" |
13 #include "content/common/gpu/gpu_channel.h" | 11 #include "content/common/gpu/gpu_channel.h" |
14 #include "content/common/gpu/gpu_channel_manager.h" | 12 #include "content/common/gpu/gpu_channel_manager.h" |
15 #include "content/common/gpu/gpu_command_buffer_stub.h" | 13 #include "content/common/gpu/gpu_command_buffer_stub.h" |
16 #include "content/common/gpu/gpu_messages.h" | 14 #include "content/common/gpu/gpu_messages.h" |
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
330 | 328 |
331 PassThroughImageTransportSurface::~PassThroughImageTransportSurface() {} | 329 PassThroughImageTransportSurface::~PassThroughImageTransportSurface() {} |
332 | 330 |
333 void PassThroughImageTransportSurface::SendVSyncUpdateIfAvailable() { | 331 void PassThroughImageTransportSurface::SendVSyncUpdateIfAvailable() { |
334 GetVSyncParameters( | 332 GetVSyncParameters( |
335 base::Bind(&ImageTransportHelper::SendUpdateVSyncParameters, | 333 base::Bind(&ImageTransportHelper::SendUpdateVSyncParameters, |
336 helper_->AsWeakPtr())); | 334 helper_->AsWeakPtr())); |
337 } | 335 } |
338 | 336 |
339 } // namespace content | 337 } // namespace content |
340 | |
341 #endif // defined(ENABLE_GPU) | |
OLD | NEW |