| OLD | NEW |
| 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 #include "content/common/gpu/gpu_channel_test_common.h" | 5 #include "content/common/gpu/gpu_channel_test_common.h" |
| 6 | 6 |
| 7 #include "base/test/test_simple_task_runner.h" | 7 #include "base/test/test_simple_task_runner.h" |
| 8 #include "base/thread_task_runner_handle.h" | 8 #include "base/thread_task_runner_handle.h" |
| 9 #include "content/common/gpu/gpu_channel_manager_delegate.h" | 9 #include "content/common/gpu/gpu_channel_manager_delegate.h" |
| 10 #include "gpu/command_buffer/service/sync_point_manager.h" | 10 #include "gpu/command_buffer/service/sync_point_manager.h" |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 void TestGpuChannelManagerDelegate::RemoveSubscription(int32_t client_id, | 41 void TestGpuChannelManagerDelegate::RemoveSubscription(int32_t client_id, |
| 42 unsigned int target) {} | 42 unsigned int target) {} |
| 43 | 43 |
| 44 void TestGpuChannelManagerDelegate::StoreShaderToDisk( | 44 void TestGpuChannelManagerDelegate::StoreShaderToDisk( |
| 45 int32_t client_id, | 45 int32_t client_id, |
| 46 const std::string& key, | 46 const std::string& key, |
| 47 const std::string& shader) {} | 47 const std::string& shader) {} |
| 48 | 48 |
| 49 #if defined(OS_MACOSX) | 49 #if defined(OS_MACOSX) |
| 50 void TestGpuChannelManagerDelegate::SendAcceleratedSurfaceBuffersSwapped( | 50 void TestGpuChannelManagerDelegate::SendAcceleratedSurfaceBuffersSwapped( |
| 51 const AcceleratedSurfaceBuffersSwappedParams& params) {} | 51 int32_t surface_id, |
| 52 CAContextID ca_context_id, |
| 53 const gfx::ScopedRefCountedIOSurfaceMachPort& io_surface, |
| 54 const gfx::Size& size, |
| 55 float scale_factor, |
| 56 std::vector<ui::LatencyInfo> latency_info) {} |
| 52 #endif | 57 #endif |
| 53 | 58 |
| 54 #if defined(OS_WIN) | 59 #if defined(OS_WIN) |
| 55 void TestGpuChannelManagerDelegate::SendAcceleratedSurfaceCreatedChildWindow( | 60 void TestGpuChannelManagerDelegate::SendAcceleratedSurfaceCreatedChildWindow( |
| 56 gpu::SurfaceHandle parent_window, | 61 gpu::SurfaceHandle parent_window, |
| 57 gpu::SurfaceHandle child_window) {} | 62 gpu::SurfaceHandle child_window) {} |
| 58 #endif | 63 #endif |
| 59 | 64 |
| 60 TestGpuChannelManager::TestGpuChannelManager( | 65 TestGpuChannelManager::TestGpuChannelManager( |
| 61 const gpu::GpuPreferences& gpu_preferences, | 66 const gpu::GpuPreferences& gpu_preferences, |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 | 160 |
| 156 GpuChannelTestCommon::~GpuChannelTestCommon() { | 161 GpuChannelTestCommon::~GpuChannelTestCommon() { |
| 157 // Destroying channels causes tasks to run on the IO task runner. | 162 // Destroying channels causes tasks to run on the IO task runner. |
| 158 channel_manager_ = nullptr; | 163 channel_manager_ = nullptr; |
| 159 // Clear pending tasks to avoid refptr cycles that get flagged by ASAN. | 164 // Clear pending tasks to avoid refptr cycles that get flagged by ASAN. |
| 160 task_runner_->ClearPendingTasks(); | 165 task_runner_->ClearPendingTasks(); |
| 161 io_task_runner_->ClearPendingTasks(); | 166 io_task_runner_->ClearPendingTasks(); |
| 162 } | 167 } |
| 163 | 168 |
| 164 } // namespace content | 169 } // namespace content |
| OLD | NEW |