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

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

Issue 2247013002: Remove SoftwareOutputDeviceMus. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mus-use-gpu-compositor
Patch Set: Created 4 years, 4 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
« no previous file with comments | « content/browser/BUILD.gn ('k') | content/browser/compositor/software_output_device_mus.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 20 matching lines...) Expand all
31 #include "cc/surfaces/surface_display_output_surface.h" 31 #include "cc/surfaces/surface_display_output_surface.h"
32 #include "cc/surfaces/surface_manager.h" 32 #include "cc/surfaces/surface_manager.h"
33 #include "components/display_compositor/compositor_overlay_candidate_validator.h " 33 #include "components/display_compositor/compositor_overlay_candidate_validator.h "
34 #include "components/display_compositor/gl_helper.h" 34 #include "components/display_compositor/gl_helper.h"
35 #include "content/browser/compositor/browser_compositor_output_surface.h" 35 #include "content/browser/compositor/browser_compositor_output_surface.h"
36 #include "content/browser/compositor/gpu_browser_compositor_output_surface.h" 36 #include "content/browser/compositor/gpu_browser_compositor_output_surface.h"
37 #include "content/browser/compositor/gpu_surfaceless_browser_compositor_output_s urface.h" 37 #include "content/browser/compositor/gpu_surfaceless_browser_compositor_output_s urface.h"
38 #include "content/browser/compositor/offscreen_browser_compositor_output_surface .h" 38 #include "content/browser/compositor/offscreen_browser_compositor_output_surface .h"
39 #include "content/browser/compositor/reflector_impl.h" 39 #include "content/browser/compositor/reflector_impl.h"
40 #include "content/browser/compositor/software_browser_compositor_output_surface. h" 40 #include "content/browser/compositor/software_browser_compositor_output_surface. h"
41 #include "content/browser/compositor/software_output_device_mus.h"
42 #include "content/browser/gpu/browser_gpu_memory_buffer_manager.h" 41 #include "content/browser/gpu/browser_gpu_memory_buffer_manager.h"
43 #include "content/browser/gpu/gpu_data_manager_impl.h" 42 #include "content/browser/gpu/gpu_data_manager_impl.h"
44 #include "content/browser/renderer_host/render_widget_host_impl.h" 43 #include "content/browser/renderer_host/render_widget_host_impl.h"
45 #include "content/common/gpu/client/context_provider_command_buffer.h" 44 #include "content/common/gpu/client/context_provider_command_buffer.h"
46 #include "content/common/host_shared_bitmap_manager.h" 45 #include "content/common/host_shared_bitmap_manager.h"
47 #include "content/public/common/content_switches.h" 46 #include "content/public/common/content_switches.h"
48 #include "gpu/GLES2/gl2extchromium.h" 47 #include "gpu/GLES2/gl2extchromium.h"
49 #include "gpu/command_buffer/client/gles2_interface.h" 48 #include "gpu/command_buffer/client/gles2_interface.h"
50 #include "gpu/command_buffer/client/shared_memory_limits.h" 49 #include "gpu/command_buffer/client/shared_memory_limits.h"
51 #include "gpu/command_buffer/common/mailbox.h" 50 #include "gpu/command_buffer/common/mailbox.h"
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 192
194 // Make sure the lost context callback doesn't try to run during destruction. 193 // Make sure the lost context callback doesn't try to run during destruction.
195 callback_factory_.InvalidateWeakPtrs(); 194 callback_factory_.InvalidateWeakPtrs();
196 195
197 task_graph_runner_->Shutdown(); 196 task_graph_runner_->Shutdown();
198 } 197 }
199 198
200 std::unique_ptr<cc::SoftwareOutputDevice> 199 std::unique_ptr<cc::SoftwareOutputDevice>
201 GpuProcessTransportFactory::CreateSoftwareOutputDevice( 200 GpuProcessTransportFactory::CreateSoftwareOutputDevice(
202 ui::Compositor* compositor) { 201 ui::Compositor* compositor) {
203 #if defined(USE_AURA) 202 #if defined(USE_AURA)
danakj 2016/08/15 18:32:58 Or maybe just remove this whole if block? Up to yo
sadrul 2016/08/15 22:39:41 I am keeping it for now, to catch cases where we m
204 if (shell::ShellIsRemote()) { 203 if (shell::ShellIsRemote()) {
205 return std::unique_ptr<cc::SoftwareOutputDevice>( 204 NOTREACHED();
206 new SoftwareOutputDeviceMus(compositor)); 205 return nullptr;
207 } 206 }
208 #endif 207 #endif
209 208
210 #if defined(OS_WIN) 209 #if defined(OS_WIN)
211 return std::unique_ptr<cc::SoftwareOutputDevice>( 210 return std::unique_ptr<cc::SoftwareOutputDevice>(
212 new SoftwareOutputDeviceWin(software_backing_.get(), compositor)); 211 new SoftwareOutputDeviceWin(software_backing_.get(), compositor));
213 #elif defined(USE_OZONE) 212 #elif defined(USE_OZONE)
214 return SoftwareOutputDeviceOzone::Create(compositor); 213 return SoftwareOutputDeviceOzone::Create(compositor);
215 #elif defined(USE_X11) 214 #elif defined(USE_X11)
216 return std::unique_ptr<cc::SoftwareOutputDevice>( 215 return std::unique_ptr<cc::SoftwareOutputDevice>(
(...skipping 645 matching lines...) Expand 10 before | Expand all | Expand 10 after
862 shared_vulkan_context_provider_ = 861 shared_vulkan_context_provider_ =
863 cc::VulkanInProcessContextProvider::Create(); 862 cc::VulkanInProcessContextProvider::Create();
864 } 863 }
865 864
866 shared_vulkan_context_provider_initialized_ = true; 865 shared_vulkan_context_provider_initialized_ = true;
867 } 866 }
868 return shared_vulkan_context_provider_; 867 return shared_vulkan_context_provider_;
869 } 868 }
870 869
871 } // namespace content 870 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/BUILD.gn ('k') | content/browser/compositor/software_output_device_mus.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698