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

Side by Side Diff: content/browser/compositor/gpu_process_transport_factory.h

Issue 2932893002: BrowserMainLoop owns FrameSinkManagerHost (Closed)
Patch Set: Added a comment that works everywhere Created 3 years, 6 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_BROWSER_COMPOSITOR_GPU_PROCESS_TRANSPORT_FACTORY_H_ 5 #ifndef CONTENT_BROWSER_COMPOSITOR_GPU_PROCESS_TRANSPORT_FACTORY_H_
6 #define CONTENT_BROWSER_COMPOSITOR_GPU_PROCESS_TRANSPORT_FACTORY_H_ 6 #define CONTENT_BROWSER_COMPOSITOR_GPU_PROCESS_TRANSPORT_FACTORY_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 bool create_gpu_output_surface, 103 bool create_gpu_output_surface,
104 int num_attempts, 104 int num_attempts,
105 scoped_refptr<gpu::GpuChannelHost> established_channel_host); 105 scoped_refptr<gpu::GpuChannelHost> established_channel_host);
106 106
107 void OnLostMainThreadSharedContextInsideCallback(); 107 void OnLostMainThreadSharedContextInsideCallback();
108 void OnLostMainThreadSharedContext(); 108 void OnLostMainThreadSharedContext();
109 109
110 scoped_refptr<cc::VulkanInProcessContextProvider> 110 scoped_refptr<cc::VulkanInProcessContextProvider>
111 SharedVulkanContextProvider(); 111 SharedVulkanContextProvider();
112 112
113 // Manages creation and hierarchy of frame sinks.
114 std::unique_ptr<viz::FrameSinkManagerHost> frame_sink_manager_host_;
115
116 cc::FrameSinkIdAllocator frame_sink_id_allocator_; 113 cc::FrameSinkIdAllocator frame_sink_id_allocator_;
117 114
118 #if defined(OS_WIN) 115 #if defined(OS_WIN)
119 // Used by output surface, stored in PerCompositorData. 116 // Used by output surface, stored in PerCompositorData.
120 std::unique_ptr<OutputDeviceBacking> software_backing_; 117 std::unique_ptr<OutputDeviceBacking> software_backing_;
121 #endif 118 #endif
122 119
123 // Depends on SurfaceManager. 120 // Depends on SurfaceManager.
124 typedef std::map<ui::Compositor*, std::unique_ptr<PerCompositorData>> 121 typedef std::map<ui::Compositor*, std::unique_ptr<PerCompositorData>>
125 PerCompositorDataMap; 122 PerCompositorDataMap;
(...skipping 15 matching lines...) Expand all
141 gpu::GpuChannelEstablishFactory* gpu_channel_factory_ = nullptr; 138 gpu::GpuChannelEstablishFactory* gpu_channel_factory_ = nullptr;
142 139
143 base::WeakPtrFactory<GpuProcessTransportFactory> callback_factory_; 140 base::WeakPtrFactory<GpuProcessTransportFactory> callback_factory_;
144 141
145 DISALLOW_COPY_AND_ASSIGN(GpuProcessTransportFactory); 142 DISALLOW_COPY_AND_ASSIGN(GpuProcessTransportFactory);
146 }; 143 };
147 144
148 } // namespace content 145 } // namespace content
149 146
150 #endif // CONTENT_BROWSER_COMPOSITOR_GPU_PROCESS_TRANSPORT_FACTORY_H_ 147 #endif // CONTENT_BROWSER_COMPOSITOR_GPU_PROCESS_TRANSPORT_FACTORY_H_
OLDNEW
« no previous file with comments | « content/browser/browser_main_loop.cc ('k') | content/browser/compositor/gpu_process_transport_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698