| 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 18 matching lines...) Expand all Loading... |
| 29 | 29 |
| 30 void TestGpuChannelManagerDelegate::DidDestroyOffscreenContext( | 30 void TestGpuChannelManagerDelegate::DidDestroyOffscreenContext( |
| 31 const GURL& active_url) {} | 31 const GURL& active_url) {} |
| 32 | 32 |
| 33 void TestGpuChannelManagerDelegate::DidLoseContext( | 33 void TestGpuChannelManagerDelegate::DidLoseContext( |
| 34 bool offscreen, | 34 bool offscreen, |
| 35 gpu::error::ContextLostReason reason, | 35 gpu::error::ContextLostReason reason, |
| 36 const GURL& active_url) {} | 36 const GURL& active_url) {} |
| 37 | 37 |
| 38 void TestGpuChannelManagerDelegate::GpuMemoryUmaStats( | 38 void TestGpuChannelManagerDelegate::GpuMemoryUmaStats( |
| 39 const GPUMemoryUmaStats& params) {} | 39 const gpu::GPUMemoryUmaStats& params) {} |
| 40 | 40 |
| 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) |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 | 155 |
| 156 GpuChannelTestCommon::~GpuChannelTestCommon() { | 156 GpuChannelTestCommon::~GpuChannelTestCommon() { |
| 157 // Destroying channels causes tasks to run on the IO task runner. | 157 // Destroying channels causes tasks to run on the IO task runner. |
| 158 channel_manager_ = nullptr; | 158 channel_manager_ = nullptr; |
| 159 // Clear pending tasks to avoid refptr cycles that get flagged by ASAN. | 159 // Clear pending tasks to avoid refptr cycles that get flagged by ASAN. |
| 160 task_runner_->ClearPendingTasks(); | 160 task_runner_->ClearPendingTasks(); |
| 161 io_task_runner_->ClearPendingTasks(); | 161 io_task_runner_->ClearPendingTasks(); |
| 162 } | 162 } |
| 163 | 163 |
| 164 } // namespace content | 164 } // namespace content |
| OLD | NEW |