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

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

Issue 1962493002: Make Mac swap code like other platforms (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Incorporate review feedback Created 4 years, 7 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_command_buffer_stub.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/thread_task_runner_handle.h" 9 #include "base/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 23 matching lines...) Expand all
34 const GURL& active_url) {} 34 const GURL& active_url) {}
35 35
36 void TestGpuChannelManagerDelegate::GpuMemoryUmaStats( 36 void TestGpuChannelManagerDelegate::GpuMemoryUmaStats(
37 const GPUMemoryUmaStats& params) {} 37 const GPUMemoryUmaStats& params) {}
38 38
39 void TestGpuChannelManagerDelegate::StoreShaderToDisk( 39 void TestGpuChannelManagerDelegate::StoreShaderToDisk(
40 int32_t client_id, 40 int32_t client_id,
41 const std::string& key, 41 const std::string& key,
42 const std::string& shader) {} 42 const std::string& shader) {}
43 43
44 #if defined(OS_MACOSX)
45 void TestGpuChannelManagerDelegate::SendAcceleratedSurfaceBuffersSwapped(
46 gpu::SurfaceHandle surface_handle,
47 CAContextID ca_context_id,
48 bool fullscreen_low_power_ca_context_valid,
49 CAContextID fullscreen_low_power_ca_context_id,
50 const gfx::ScopedRefCountedIOSurfaceMachPort& io_surface,
51 const gfx::Size& size,
52 float scale_factor,
53 std::vector<ui::LatencyInfo> latency_info) {}
54 #endif
55
56 #if defined(OS_WIN) 44 #if defined(OS_WIN)
57 void TestGpuChannelManagerDelegate::SendAcceleratedSurfaceCreatedChildWindow( 45 void TestGpuChannelManagerDelegate::SendAcceleratedSurfaceCreatedChildWindow(
58 SurfaceHandle parent_window, 46 SurfaceHandle parent_window,
59 SurfaceHandle child_window) {} 47 SurfaceHandle child_window) {}
60 #endif 48 #endif
61 49
62 TestGpuChannelManager::TestGpuChannelManager( 50 TestGpuChannelManager::TestGpuChannelManager(
63 const GpuPreferences& gpu_preferences, 51 const GpuPreferences& gpu_preferences,
64 GpuChannelManagerDelegate* delegate, 52 GpuChannelManagerDelegate* delegate,
65 base::SingleThreadTaskRunner* task_runner, 53 base::SingleThreadTaskRunner* task_runner,
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 145
158 GpuChannelTestCommon::~GpuChannelTestCommon() { 146 GpuChannelTestCommon::~GpuChannelTestCommon() {
159 // Destroying channels causes tasks to run on the IO task runner. 147 // Destroying channels causes tasks to run on the IO task runner.
160 channel_manager_ = nullptr; 148 channel_manager_ = nullptr;
161 // Clear pending tasks to avoid refptr cycles that get flagged by ASAN. 149 // Clear pending tasks to avoid refptr cycles that get flagged by ASAN.
162 task_runner_->ClearPendingTasks(); 150 task_runner_->ClearPendingTasks();
163 io_task_runner_->ClearPendingTasks(); 151 io_task_runner_->ClearPendingTasks();
164 } 152 }
165 153
166 } // namespace gpu 154 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/ipc/service/gpu_channel_test_common.h ('k') | gpu/ipc/service/gpu_command_buffer_stub.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698