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

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

Issue 2895273002: Unified the use of BufferToTextureTargetMap for all the Processes (Closed)
Patch Set: Unified BufferToTextureTargetMap for all the Processes 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 #include "content/browser/compositor/gpu_process_transport_factory.h" 5 #include "content/browser/compositor/gpu_process_transport_factory.h"
6 6
7 #include <string> 7 #include <string>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 std::unique_ptr<cc::SyntheticBeginFrameSource> synthetic_begin_frame_source; 194 std::unique_ptr<cc::SyntheticBeginFrameSource> synthetic_begin_frame_source;
195 std::unique_ptr<GpuVSyncBeginFrameSource> gpu_vsync_begin_frame_source; 195 std::unique_ptr<GpuVSyncBeginFrameSource> gpu_vsync_begin_frame_source;
196 ReflectorImpl* reflector = nullptr; 196 ReflectorImpl* reflector = nullptr;
197 std::unique_ptr<cc::Display> display; 197 std::unique_ptr<cc::Display> display;
198 bool output_is_secure = false; 198 bool output_is_secure = false;
199 }; 199 };
200 200
201 GpuProcessTransportFactory::GpuProcessTransportFactory() 201 GpuProcessTransportFactory::GpuProcessTransportFactory()
202 : frame_sink_id_allocator_(kDefaultClientId), 202 : frame_sink_id_allocator_(kDefaultClientId),
203 renderer_settings_( 203 renderer_settings_(
204 ui::CreateRendererSettings(&gpu::GetImageTextureTarget)), 204 ui::CreateRendererSettings(GetBufferToTextureTargetMap())),
205 task_graph_runner_(new cc::SingleThreadTaskGraphRunner), 205 task_graph_runner_(new cc::SingleThreadTaskGraphRunner),
206 callback_factory_(this) { 206 callback_factory_(this) {
207 cc::SetClientNameForMetrics("Browser"); 207 cc::SetClientNameForMetrics("Browser");
208 208
209 frame_sink_manager_host_ = base::MakeUnique<viz::FrameSinkManagerHost>(); 209 frame_sink_manager_host_ = base::MakeUnique<viz::FrameSinkManagerHost>();
210 frame_sink_manager_host_->ConnectToFrameSinkManager(); 210 frame_sink_manager_host_->ConnectToFrameSinkManager();
211 211
212 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess(); 212 base::CommandLine* command_line = base::CommandLine::ForCurrentProcess();
213 if (command_line->HasSwitch(switches::kDisableGpuVsync)) { 213 if (command_line->HasSwitch(switches::kDisableGpuVsync)) {
214 std::string display_vsync_string = 214 std::string display_vsync_string =
(...skipping 745 matching lines...) Expand 10 before | Expand all | Expand 10 after
960 shared_vulkan_context_provider_ = 960 shared_vulkan_context_provider_ =
961 cc::VulkanInProcessContextProvider::Create(); 961 cc::VulkanInProcessContextProvider::Create();
962 } 962 }
963 963
964 shared_vulkan_context_provider_initialized_ = true; 964 shared_vulkan_context_provider_initialized_ = true;
965 } 965 }
966 return shared_vulkan_context_provider_; 966 return shared_vulkan_context_provider_;
967 } 967 }
968 968
969 } // namespace content 969 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/browser/gpu/compositor_util.h » ('j') | content/browser/gpu/compositor_util.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698