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

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

Issue 2895273002: Unified the use of BufferToTextureTargetMap for all the Processes (Closed)
Patch Set: texture_targets as reference 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 cc::BufferToTextureTargetMap GetBufferToTextureTargetMap();
114
113 cc::FrameSinkIdAllocator frame_sink_id_allocator_; 115 cc::FrameSinkIdAllocator frame_sink_id_allocator_;
114 116
115 #if defined(OS_WIN) 117 #if defined(OS_WIN)
116 // Used by output surface, stored in PerCompositorData. 118 // Used by output surface, stored in PerCompositorData.
117 std::unique_ptr<OutputDeviceBacking> software_backing_; 119 std::unique_ptr<OutputDeviceBacking> software_backing_;
118 #endif 120 #endif
119 121
120 // Depends on SurfaceManager. 122 // Depends on SurfaceManager.
121 typedef std::map<ui::Compositor*, std::unique_ptr<PerCompositorData>> 123 typedef std::map<ui::Compositor*, std::unique_ptr<PerCompositorData>>
122 PerCompositorDataMap; 124 PerCompositorDataMap;
(...skipping 15 matching lines...) Expand all
138 gpu::GpuChannelEstablishFactory* gpu_channel_factory_ = nullptr; 140 gpu::GpuChannelEstablishFactory* gpu_channel_factory_ = nullptr;
139 141
140 base::WeakPtrFactory<GpuProcessTransportFactory> callback_factory_; 142 base::WeakPtrFactory<GpuProcessTransportFactory> callback_factory_;
141 143
142 DISALLOW_COPY_AND_ASSIGN(GpuProcessTransportFactory); 144 DISALLOW_COPY_AND_ASSIGN(GpuProcessTransportFactory);
143 }; 145 };
144 146
145 } // namespace content 147 } // namespace content
146 148
147 #endif // CONTENT_BROWSER_COMPOSITOR_GPU_PROCESS_TRANSPORT_FACTORY_H_ 149 #endif // CONTENT_BROWSER_COMPOSITOR_GPU_PROCESS_TRANSPORT_FACTORY_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/compositor/gpu_process_transport_factory.cc » ('j') | content/browser/gpu/compositor_util.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698