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

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

Issue 1830513003: Move AcceleratedSurfaceBuffersSwappedParams to content/common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed piman's comment 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
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 30 matching lines...) Expand all
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)
50 void TestGpuChannelManagerDelegate::SendAcceleratedSurfaceBuffersSwapped( 50 void TestGpuChannelManagerDelegate::SendAcceleratedSurfaceBuffersSwapped(
51 const AcceleratedSurfaceBuffersSwappedParams& params) {} 51 int32_t surface_id,
52 CAContextID ca_context_id,
53 const gfx::ScopedRefCountedIOSurfaceMachPort& io_surface,
54 const gfx::Size& size,
55 float scale_factor,
56 std::vector<ui::LatencyInfo> latency_info) {}
52 #endif 57 #endif
53 58
54 #if defined(OS_WIN) 59 #if defined(OS_WIN)
55 void TestGpuChannelManagerDelegate::SendAcceleratedSurfaceCreatedChildWindow( 60 void TestGpuChannelManagerDelegate::SendAcceleratedSurfaceCreatedChildWindow(
56 gpu::SurfaceHandle parent_window, 61 gpu::SurfaceHandle parent_window,
57 gpu::SurfaceHandle child_window) {} 62 gpu::SurfaceHandle child_window) {}
58 #endif 63 #endif
59 64
60 TestGpuChannelManager::TestGpuChannelManager( 65 TestGpuChannelManager::TestGpuChannelManager(
61 const gpu::GpuPreferences& gpu_preferences, 66 const gpu::GpuPreferences& gpu_preferences,
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 160
156 GpuChannelTestCommon::~GpuChannelTestCommon() { 161 GpuChannelTestCommon::~GpuChannelTestCommon() {
157 // Destroying channels causes tasks to run on the IO task runner. 162 // Destroying channels causes tasks to run on the IO task runner.
158 channel_manager_ = nullptr; 163 channel_manager_ = nullptr;
159 // Clear pending tasks to avoid refptr cycles that get flagged by ASAN. 164 // Clear pending tasks to avoid refptr cycles that get flagged by ASAN.
160 task_runner_->ClearPendingTasks(); 165 task_runner_->ClearPendingTasks();
161 io_task_runner_->ClearPendingTasks(); 166 io_task_runner_->ClearPendingTasks();
162 } 167 }
163 168
164 } // namespace content 169 } // namespace content
OLDNEW
« no previous file with comments | « content/common/gpu/gpu_channel_test_common.h ('k') | content/common/gpu/image_transport_surface_overlay_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698