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

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

Issue 2873243002: Move components/display_compositor to components/viz/display_compositor (Closed)
Patch Set: Rebase and fix mac build Created 3 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 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 void SetDisplayVSyncParameters(ui::Compositor* compositor, 73 void SetDisplayVSyncParameters(ui::Compositor* compositor,
74 base::TimeTicks timebase, 74 base::TimeTicks timebase,
75 base::TimeDelta interval) override; 75 base::TimeDelta interval) override;
76 void SetOutputIsSecure(ui::Compositor* compositor, bool secure) override; 76 void SetOutputIsSecure(ui::Compositor* compositor, bool secure) override;
77 77
78 // ImageTransportFactory implementation. 78 // ImageTransportFactory implementation.
79 ui::ContextFactory* GetContextFactory() override; 79 ui::ContextFactory* GetContextFactory() override;
80 ui::ContextFactoryPrivate* GetContextFactoryPrivate() override; 80 ui::ContextFactoryPrivate* GetContextFactoryPrivate() override;
81 cc::SurfaceManager* GetSurfaceManager() override; 81 cc::SurfaceManager* GetSurfaceManager() override;
82 FrameSinkManagerHost* GetFrameSinkManagerHost() override; 82 FrameSinkManagerHost* GetFrameSinkManagerHost() override;
83 display_compositor::GLHelper* GetGLHelper() override; 83 viz::GLHelper* GetGLHelper() override;
84 void SetGpuChannelEstablishFactory( 84 void SetGpuChannelEstablishFactory(
85 gpu::GpuChannelEstablishFactory* factory) override; 85 gpu::GpuChannelEstablishFactory* factory) override;
86 #if defined(OS_MACOSX) 86 #if defined(OS_MACOSX)
87 void SetCompositorSuspendedForRecycle(ui::Compositor* compositor, 87 void SetCompositorSuspendedForRecycle(ui::Compositor* compositor,
88 bool suspended) override; 88 bool suspended) override;
89 #endif 89 #endif
90 90
91 private: 91 private:
92 struct PerCompositorData; 92 struct PerCompositorData;
93 93
(...skipping 21 matching lines...) Expand all
115 // Used by output surface, stored in PerCompositorData. 115 // Used by output surface, stored in PerCompositorData.
116 std::unique_ptr<OutputDeviceBacking> software_backing_; 116 std::unique_ptr<OutputDeviceBacking> software_backing_;
117 #endif 117 #endif
118 118
119 // Depends on SurfaceManager. 119 // Depends on SurfaceManager.
120 typedef std::map<ui::Compositor*, std::unique_ptr<PerCompositorData>> 120 typedef std::map<ui::Compositor*, std::unique_ptr<PerCompositorData>>
121 PerCompositorDataMap; 121 PerCompositorDataMap;
122 PerCompositorDataMap per_compositor_data_; 122 PerCompositorDataMap per_compositor_data_;
123 123
124 scoped_refptr<ui::ContextProviderCommandBuffer> shared_main_thread_contexts_; 124 scoped_refptr<ui::ContextProviderCommandBuffer> shared_main_thread_contexts_;
125 std::unique_ptr<display_compositor::GLHelper> gl_helper_; 125 std::unique_ptr<viz::GLHelper> gl_helper_;
126 base::ObserverList<ui::ContextFactoryObserver> observer_list_; 126 base::ObserverList<ui::ContextFactoryObserver> observer_list_;
127 std::unique_ptr<cc::SingleThreadTaskGraphRunner> task_graph_runner_; 127 std::unique_ptr<cc::SingleThreadTaskGraphRunner> task_graph_runner_;
128 scoped_refptr<ui::ContextProviderCommandBuffer> 128 scoped_refptr<ui::ContextProviderCommandBuffer>
129 shared_worker_context_provider_; 129 shared_worker_context_provider_;
130 130
131 bool disable_display_vsync_ = false; 131 bool disable_display_vsync_ = false;
132 bool shared_vulkan_context_provider_initialized_ = false; 132 bool shared_vulkan_context_provider_initialized_ = false;
133 scoped_refptr<cc::VulkanInProcessContextProvider> 133 scoped_refptr<cc::VulkanInProcessContextProvider>
134 shared_vulkan_context_provider_; 134 shared_vulkan_context_provider_;
135 135
136 gpu::GpuChannelEstablishFactory* gpu_channel_factory_ = nullptr; 136 gpu::GpuChannelEstablishFactory* gpu_channel_factory_ = nullptr;
137 137
138 base::WeakPtrFactory<GpuProcessTransportFactory> callback_factory_; 138 base::WeakPtrFactory<GpuProcessTransportFactory> callback_factory_;
139 139
140 DISALLOW_COPY_AND_ASSIGN(GpuProcessTransportFactory); 140 DISALLOW_COPY_AND_ASSIGN(GpuProcessTransportFactory);
141 }; 141 };
142 142
143 } // namespace content 143 } // namespace content
144 144
145 #endif // CONTENT_BROWSER_COMPOSITOR_GPU_PROCESS_TRANSPORT_FACTORY_H_ 145 #endif // CONTENT_BROWSER_COMPOSITOR_GPU_PROCESS_TRANSPORT_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698