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

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

Issue 2830143002: Add FrameSinkManagerHost to NoTransportImageTransportFactory. (Closed)
Patch Set: Also android. Created 3 years, 8 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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 bool output_is_secure = false; 190 bool output_is_secure = false;
191 }; 191 };
192 192
193 GpuProcessTransportFactory::GpuProcessTransportFactory() 193 GpuProcessTransportFactory::GpuProcessTransportFactory()
194 : frame_sink_id_allocator_(kDefaultClientId), 194 : frame_sink_id_allocator_(kDefaultClientId),
195 task_graph_runner_(new cc::SingleThreadTaskGraphRunner), 195 task_graph_runner_(new cc::SingleThreadTaskGraphRunner),
196 callback_factory_(this) { 196 callback_factory_(this) {
197 cc::SetClientNameForMetrics("Browser"); 197 cc::SetClientNameForMetrics("Browser");
198 198
199 frame_sink_manager_host_ = base::MakeUnique<FrameSinkManagerHost>(); 199 frame_sink_manager_host_ = base::MakeUnique<FrameSinkManagerHost>();
200 frame_sink_manager_host_->ConnectToFrameSinkManager();
200 201
201 task_graph_runner_->Start("CompositorTileWorker1", 202 task_graph_runner_->Start("CompositorTileWorker1",
202 base::SimpleThread::Options()); 203 base::SimpleThread::Options());
203 #if defined(OS_WIN) 204 #if defined(OS_WIN)
204 software_backing_.reset(new OutputDeviceBacking); 205 software_backing_.reset(new OutputDeviceBacking);
205 #endif 206 #endif
206 } 207 }
207 208
208 GpuProcessTransportFactory::~GpuProcessTransportFactory() { 209 GpuProcessTransportFactory::~GpuProcessTransportFactory() {
209 DCHECK(per_compositor_data_.empty()); 210 DCHECK(per_compositor_data_.empty());
(...skipping 719 matching lines...) Expand 10 before | Expand all | Expand 10 after
929 shared_vulkan_context_provider_ = 930 shared_vulkan_context_provider_ =
930 cc::VulkanInProcessContextProvider::Create(); 931 cc::VulkanInProcessContextProvider::Create();
931 } 932 }
932 933
933 shared_vulkan_context_provider_initialized_ = true; 934 shared_vulkan_context_provider_initialized_ = true;
934 } 935 }
935 return shared_vulkan_context_provider_; 936 return shared_vulkan_context_provider_;
936 } 937 }
937 938
938 } // namespace content 939 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698