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

Side by Side Diff: gpu/ipc/service/gpu_channel_manager_delegate.h

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
« no previous file with comments | « content/gpu/gpu_child_thread.cc ('k') | gpu/ipc/service/gpu_channel_test_common.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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #ifndef GPU_IPC_SERVICE_GPU_CHANNEL_MANAGER_DELEGATE_H_ 5 #ifndef GPU_IPC_SERVICE_GPU_CHANNEL_MANAGER_DELEGATE_H_
6 #define GPU_IPC_SERVICE_GPU_CHANNEL_MANAGER_DELEGATE_H_ 6 #define GPU_IPC_SERVICE_GPU_CHANNEL_MANAGER_DELEGATE_H_
7 7
8 #include "gpu/command_buffer/common/constants.h" 8 #include "gpu/command_buffer/common/constants.h"
9 #include "gpu/ipc/common/surface_handle.h" 9 #include "gpu/ipc/common/surface_handle.h"
10 10
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 // the respective GpuChannelManager API. 50 // the respective GpuChannelManager API.
51 virtual void StoreShaderToDisk(int32_t client_id, 51 virtual void StoreShaderToDisk(int32_t client_id,
52 const std::string& key, 52 const std::string& key,
53 const std::string& shader) = 0; 53 const std::string& shader) = 0;
54 54
55 #if defined(OS_MACOSX) 55 #if defined(OS_MACOSX)
56 // Tells the delegate that an accelerated surface has swapped. 56 // Tells the delegate that an accelerated surface has swapped.
57 virtual void SendAcceleratedSurfaceBuffersSwapped( 57 virtual void SendAcceleratedSurfaceBuffersSwapped(
58 gpu::SurfaceHandle surface_handle, 58 gpu::SurfaceHandle surface_handle,
59 CAContextID ca_context_id, 59 CAContextID ca_context_id,
60 bool fullscreen_low_power_ca_context_valid,
61 CAContextID fullscreen_low_power_ca_context_id,
60 const gfx::ScopedRefCountedIOSurfaceMachPort& io_surface, 62 const gfx::ScopedRefCountedIOSurfaceMachPort& io_surface,
61 const gfx::Size& size, 63 const gfx::Size& size,
62 float scale_factor, 64 float scale_factor,
63 std::vector<ui::LatencyInfo> latency_info) = 0; 65 std::vector<ui::LatencyInfo> latency_info) = 0;
64 #endif 66 #endif
65 67
66 #if defined(OS_WIN) 68 #if defined(OS_WIN)
67 virtual void SendAcceleratedSurfaceCreatedChildWindow( 69 virtual void SendAcceleratedSurfaceCreatedChildWindow(
68 SurfaceHandle parent_window, 70 SurfaceHandle parent_window,
69 SurfaceHandle child_window) = 0; 71 SurfaceHandle child_window) = 0;
70 #endif 72 #endif
71 73
72 // Sets the currently active URL. Use GURL() to clear the URL. 74 // Sets the currently active URL. Use GURL() to clear the URL.
73 virtual void SetActiveURL(const GURL& url) = 0; 75 virtual void SetActiveURL(const GURL& url) = 0;
74 76
75 protected: 77 protected:
76 virtual ~GpuChannelManagerDelegate() {} 78 virtual ~GpuChannelManagerDelegate() {}
77 }; 79 };
78 80
79 } // namespace gpu 81 } // namespace gpu
80 82
81 #endif // GPU_IPC_SERVICE_GPU_CHANNEL_MANAGER_DELEGATE_H_ 83 #endif // GPU_IPC_SERVICE_GPU_CHANNEL_MANAGER_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/gpu/gpu_child_thread.cc ('k') | gpu/ipc/service/gpu_channel_test_common.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698