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

Side by Side Diff: content/common/gpu/gpu_channel_manager_delegate.h

Issue 1844053002: Add detached mode plumbing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: And target Created 4 years, 8 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 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 CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_DELEGATE_H_ 5 #ifndef CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_DELEGATE_H_
6 #define CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_DELEGATE_H_ 6 #define CONTENT_COMMON_GPU_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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 virtual void StoreShaderToDisk(int32_t client_id, 61 virtual void StoreShaderToDisk(int32_t client_id,
62 const std::string& key, 62 const std::string& key,
63 const std::string& shader) = 0; 63 const std::string& shader) = 0;
64 64
65 #if defined(OS_MACOSX) 65 #if defined(OS_MACOSX)
66 // Tells the delegate that an accelerated surface has swapped. 66 // Tells the delegate that an accelerated surface has swapped.
67 virtual void SendAcceleratedSurfaceBuffersSwapped( 67 virtual void SendAcceleratedSurfaceBuffersSwapped(
68 int32_t surface_id, 68 int32_t surface_id,
69 CAContextID ca_context_id, 69 CAContextID ca_context_id,
70 const gfx::ScopedRefCountedIOSurfaceMachPort& io_surface, 70 const gfx::ScopedRefCountedIOSurfaceMachPort& io_surface,
71 bool use_detached,
72 CAContextID detached_ca_context_id,
71 const gfx::Size& size, 73 const gfx::Size& size,
72 float scale_factor, 74 float scale_factor,
73 std::vector<ui::LatencyInfo> latency_info) = 0; 75 std::vector<ui::LatencyInfo> latency_info) = 0;
74 #endif 76 #endif
75 77
76 #if defined(OS_WIN) 78 #if defined(OS_WIN)
77 virtual void SendAcceleratedSurfaceCreatedChildWindow( 79 virtual void SendAcceleratedSurfaceCreatedChildWindow(
78 gpu::SurfaceHandle parent_window, 80 gpu::SurfaceHandle parent_window,
79 gpu::SurfaceHandle child_window) = 0; 81 gpu::SurfaceHandle child_window) = 0;
80 #endif 82 #endif
81 83
82 // Sets the currently active URL. Use GURL() to clear the URL. 84 // Sets the currently active URL. Use GURL() to clear the URL.
83 virtual void SetActiveURL(const GURL& url) = 0; 85 virtual void SetActiveURL(const GURL& url) = 0;
84 86
85 protected: 87 protected:
86 virtual ~GpuChannelManagerDelegate() {} 88 virtual ~GpuChannelManagerDelegate() {}
87 }; 89 };
88 90
89 } // namespace content 91 } // namespace content
90 92
91 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_DELEGATE_H_ 93 #endif // CONTENT_COMMON_GPU_GPU_CHANNEL_MANAGER_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/common/gpu/ca_layer_tree_mac.mm ('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