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

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

Issue 1918723002: Mac fullscreen low power: Plumb through to AcceleratedWidgetMac (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@plumb
Patch Set: Fix widget test 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
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 27 matching lines...) Expand all
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) 44 #if defined(OS_MACOSX)
45 void TestGpuChannelManagerDelegate::SendAcceleratedSurfaceBuffersSwapped( 45 void TestGpuChannelManagerDelegate::SendAcceleratedSurfaceBuffersSwapped(
46 gpu::SurfaceHandle surface_handle, 46 gpu::SurfaceHandle surface_handle,
47 CAContextID ca_context_id, 47 CAContextID ca_context_id,
48 bool fullscreen_low_power_ca_context_valid,
49 CAContextID fullscreen_low_power_ca_context_id,
48 const gfx::ScopedRefCountedIOSurfaceMachPort& io_surface, 50 const gfx::ScopedRefCountedIOSurfaceMachPort& io_surface,
49 const gfx::Size& size, 51 const gfx::Size& size,
50 float scale_factor, 52 float scale_factor,
51 std::vector<ui::LatencyInfo> latency_info) {} 53 std::vector<ui::LatencyInfo> latency_info) {}
52 #endif 54 #endif
53 55
54 #if defined(OS_WIN) 56 #if defined(OS_WIN)
55 void TestGpuChannelManagerDelegate::SendAcceleratedSurfaceCreatedChildWindow( 57 void TestGpuChannelManagerDelegate::SendAcceleratedSurfaceCreatedChildWindow(
56 SurfaceHandle parent_window, 58 SurfaceHandle parent_window,
57 SurfaceHandle child_window) {} 59 SurfaceHandle child_window) {}
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 157
156 GpuChannelTestCommon::~GpuChannelTestCommon() { 158 GpuChannelTestCommon::~GpuChannelTestCommon() {
157 // Destroying channels causes tasks to run on the IO task runner. 159 // Destroying channels causes tasks to run on the IO task runner.
158 channel_manager_ = nullptr; 160 channel_manager_ = nullptr;
159 // Clear pending tasks to avoid refptr cycles that get flagged by ASAN. 161 // Clear pending tasks to avoid refptr cycles that get flagged by ASAN.
160 task_runner_->ClearPendingTasks(); 162 task_runner_->ClearPendingTasks();
161 io_task_runner_->ClearPendingTasks(); 163 io_task_runner_->ClearPendingTasks();
162 } 164 }
163 165
164 } // namespace gpu 166 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/ipc/service/gpu_channel_test_common.h ('k') | gpu/ipc/service/image_transport_surface_overlay_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698