Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(152)

Side by Side Diff: content/common/gpu/gpu_channel_test_common.cc

Issue 1823763003: Move more files to gpu/ipc/common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed GYP build Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/common/gpu/gpu_channel_test_common.h ('k') | content/common/gpu/gpu_memory_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « content/common/gpu/gpu_channel_test_common.h ('k') | content/common/gpu/gpu_memory_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698