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

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

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_manager.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
11 #if defined(OS_MACOSX)
12 #include "ui/base/cocoa/remote_layer_api.h"
13 #include "ui/events/latency_info.h"
14 #include "ui/gfx/mac/io_surface.h"
15 #endif
16
17 class GURL; 11 class GURL;
18 12
19 namespace IPC { 13 namespace IPC {
20 struct ChannelHandle; 14 struct ChannelHandle;
21 } 15 }
22 16
23 namespace gpu { 17 namespace gpu {
24 18
25 struct GPUMemoryUmaStats; 19 struct GPUMemoryUmaStats;
26 20
(...skipping 18 matching lines...) Expand all
45 // Tells the delegate about GPU memory usage statistics for UMA logging. 39 // Tells the delegate about GPU memory usage statistics for UMA logging.
46 virtual void GpuMemoryUmaStats(const GPUMemoryUmaStats& params) = 0; 40 virtual void GpuMemoryUmaStats(const GPUMemoryUmaStats& params) = 0;
47 41
48 // Tells the delegate to cache the given shader information in persistent 42 // Tells the delegate to cache the given shader information in persistent
49 // storage. The embedder is expected to repopulate the in-memory cache through 43 // storage. The embedder is expected to repopulate the in-memory cache through
50 // the respective GpuChannelManager API. 44 // the respective GpuChannelManager API.
51 virtual void StoreShaderToDisk(int32_t client_id, 45 virtual void StoreShaderToDisk(int32_t client_id,
52 const std::string& key, 46 const std::string& key,
53 const std::string& shader) = 0; 47 const std::string& shader) = 0;
54 48
55 #if defined(OS_MACOSX)
56 // Tells the delegate that an accelerated surface has swapped.
57 virtual void SendAcceleratedSurfaceBuffersSwapped(
58 gpu::SurfaceHandle surface_handle,
59 CAContextID ca_context_id,
60 bool fullscreen_low_power_ca_context_valid,
61 CAContextID fullscreen_low_power_ca_context_id,
62 const gfx::ScopedRefCountedIOSurfaceMachPort& io_surface,
63 const gfx::Size& size,
64 float scale_factor,
65 std::vector<ui::LatencyInfo> latency_info) = 0;
66 #endif
67
68 #if defined(OS_WIN) 49 #if defined(OS_WIN)
69 virtual void SendAcceleratedSurfaceCreatedChildWindow( 50 virtual void SendAcceleratedSurfaceCreatedChildWindow(
70 SurfaceHandle parent_window, 51 SurfaceHandle parent_window,
71 SurfaceHandle child_window) = 0; 52 SurfaceHandle child_window) = 0;
72 #endif 53 #endif
73 54
74 // Sets the currently active URL. Use GURL() to clear the URL. 55 // Sets the currently active URL. Use GURL() to clear the URL.
75 virtual void SetActiveURL(const GURL& url) = 0; 56 virtual void SetActiveURL(const GURL& url) = 0;
76 57
77 protected: 58 protected:
78 virtual ~GpuChannelManagerDelegate() {} 59 virtual ~GpuChannelManagerDelegate() {}
79 }; 60 };
80 61
81 } // namespace gpu 62 } // namespace gpu
82 63
83 #endif // GPU_IPC_SERVICE_GPU_CHANNEL_MANAGER_DELEGATE_H_ 64 #endif // GPU_IPC_SERVICE_GPU_CHANNEL_MANAGER_DELEGATE_H_
OLDNEW
« no previous file with comments | « gpu/ipc/service/gpu_channel_manager.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