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

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 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 22 matching lines...) Expand all
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 const cc::RendererSettings renderer_settings_; 124 const cc::RendererSettings renderer_settings_;
125 scoped_refptr<ui::ContextProviderCommandBuffer> shared_main_thread_contexts_; 125 scoped_refptr<ui::ContextProviderCommandBuffer> shared_main_thread_contexts_;
126 std::unique_ptr<display_compositor::GLHelper> gl_helper_; 126 std::unique_ptr<viz::GLHelper> gl_helper_;
127 base::ObserverList<ui::ContextFactoryObserver> observer_list_; 127 base::ObserverList<ui::ContextFactoryObserver> observer_list_;
128 std::unique_ptr<cc::SingleThreadTaskGraphRunner> task_graph_runner_; 128 std::unique_ptr<cc::SingleThreadTaskGraphRunner> task_graph_runner_;
129 scoped_refptr<ui::ContextProviderCommandBuffer> 129 scoped_refptr<ui::ContextProviderCommandBuffer>
130 shared_worker_context_provider_; 130 shared_worker_context_provider_;
131 131
132 bool disable_display_vsync_ = false; 132 bool disable_display_vsync_ = false;
133 bool shared_vulkan_context_provider_initialized_ = false; 133 bool shared_vulkan_context_provider_initialized_ = false;
134 scoped_refptr<cc::VulkanInProcessContextProvider> 134 scoped_refptr<cc::VulkanInProcessContextProvider>
135 shared_vulkan_context_provider_; 135 shared_vulkan_context_provider_;
136 136
137 gpu::GpuChannelEstablishFactory* gpu_channel_factory_ = nullptr; 137 gpu::GpuChannelEstablishFactory* gpu_channel_factory_ = nullptr;
138 138
139 base::WeakPtrFactory<GpuProcessTransportFactory> callback_factory_; 139 base::WeakPtrFactory<GpuProcessTransportFactory> callback_factory_;
140 140
141 DISALLOW_COPY_AND_ASSIGN(GpuProcessTransportFactory); 141 DISALLOW_COPY_AND_ASSIGN(GpuProcessTransportFactory);
142 }; 142 };
143 143
144 } // namespace content 144 } // namespace content
145 145
146 #endif // CONTENT_BROWSER_COMPOSITOR_GPU_PROCESS_TRANSPORT_FACTORY_H_ 146 #endif // CONTENT_BROWSER_COMPOSITOR_GPU_PROCESS_TRANSPORT_FACTORY_H_
OLDNEW
« no previous file with comments | « content/browser/compositor/gpu_output_surface_mac.mm ('k') | content/browser/compositor/gpu_process_transport_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698