| 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 "gpu/ipc/service/gpu_channel_test_common.h" | 5 #include "gpu/ipc/service/gpu_channel_test_common.h" |
| 6 | 6 |
| 7 #include "base/memory/ptr_util.h" | 7 #include "base/memory/ptr_util.h" |
| 8 #include "base/test/test_simple_task_runner.h" | 8 #include "base/test/test_simple_task_runner.h" |
| 9 #include "base/threading/thread_task_runner_handle.h" | 9 #include "base/threading/thread_task_runner_handle.h" |
| 10 #include "gpu/command_buffer/service/sync_point_manager.h" | 10 #include "gpu/command_buffer/service/sync_point_manager.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 void TestGpuChannelManagerDelegate::DidDestroyChannel(int client_id) {} | 26 void TestGpuChannelManagerDelegate::DidDestroyChannel(int client_id) {} |
| 27 | 27 |
| 28 void TestGpuChannelManagerDelegate::DidDestroyOffscreenContext( | 28 void TestGpuChannelManagerDelegate::DidDestroyOffscreenContext( |
| 29 const GURL& active_url) {} | 29 const GURL& active_url) {} |
| 30 | 30 |
| 31 void TestGpuChannelManagerDelegate::DidLoseContext( | 31 void TestGpuChannelManagerDelegate::DidLoseContext( |
| 32 bool offscreen, | 32 bool offscreen, |
| 33 error::ContextLostReason reason, | 33 error::ContextLostReason reason, |
| 34 const GURL& active_url) {} | 34 const GURL& active_url) {} |
| 35 | 35 |
| 36 void TestGpuChannelManagerDelegate::GpuMemoryUmaStats( | |
| 37 const GPUMemoryUmaStats& params) {} | |
| 38 | |
| 39 void TestGpuChannelManagerDelegate::StoreShaderToDisk( | 36 void TestGpuChannelManagerDelegate::StoreShaderToDisk( |
| 40 int32_t client_id, | 37 int32_t client_id, |
| 41 const std::string& key, | 38 const std::string& key, |
| 42 const std::string& shader) {} | 39 const std::string& shader) {} |
| 43 | 40 |
| 44 #if defined(OS_WIN) | 41 #if defined(OS_WIN) |
| 45 void TestGpuChannelManagerDelegate::SendAcceleratedSurfaceCreatedChildWindow( | 42 void TestGpuChannelManagerDelegate::SendAcceleratedSurfaceCreatedChildWindow( |
| 46 SurfaceHandle parent_window, | 43 SurfaceHandle parent_window, |
| 47 SurfaceHandle child_window) {} | 44 SurfaceHandle child_window) {} |
| 48 #endif | 45 #endif |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 io_task_runner_.get(), sync_point_manager_.get(), nullptr)); | 146 io_task_runner_.get(), sync_point_manager_.get(), nullptr)); |
| 150 } | 147 } |
| 151 | 148 |
| 152 void GpuChannelTestCommon::TearDown() { | 149 void GpuChannelTestCommon::TearDown() { |
| 153 // Destroying channels causes tasks to run on the IO task runner. | 150 // Destroying channels causes tasks to run on the IO task runner. |
| 154 channel_manager_ = nullptr; | 151 channel_manager_ = nullptr; |
| 155 } | 152 } |
| 156 | 153 |
| 157 | 154 |
| 158 } // namespace gpu | 155 } // namespace gpu |
| OLD | NEW |