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

Side by Side Diff: gpu/ipc/service/gpu_channel_test_common.cc

Issue 2310623002: Remove GPU memory UMAs (Closed)
Patch Set: Rebase Created 4 years, 3 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 | « gpu/ipc/service/gpu_channel_test_common.h ('k') | gpu/ipc/service/gpu_memory_manager.h » ('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 "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
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
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
OLDNEW
« no previous file with comments | « gpu/ipc/service/gpu_channel_test_common.h ('k') | gpu/ipc/service/gpu_memory_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698