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

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

Issue 1802383002: Move gl_helper to content/browser/compositor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 9 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"
11 #include "base/command_line.h" 11 #include "base/command_line.h"
12 #include "base/location.h" 12 #include "base/location.h"
13 #include "base/metrics/histogram.h" 13 #include "base/metrics/histogram.h"
14 #include "base/single_thread_task_runner.h" 14 #include "base/single_thread_task_runner.h"
15 #include "base/thread_task_runner_handle.h" 15 #include "base/thread_task_runner_handle.h"
16 #include "base/threading/simple_thread.h" 16 #include "base/threading/simple_thread.h"
17 #include "base/threading/thread.h" 17 #include "base/threading/thread.h"
18 #include "build/build_config.h" 18 #include "build/build_config.h"
19 #include "cc/base/histograms.h" 19 #include "cc/base/histograms.h"
20 #include "cc/output/compositor_frame.h" 20 #include "cc/output/compositor_frame.h"
21 #include "cc/output/output_surface.h" 21 #include "cc/output/output_surface.h"
22 #include "cc/raster/single_thread_task_graph_runner.h" 22 #include "cc/raster/single_thread_task_graph_runner.h"
23 #include "cc/raster/task_graph_runner.h" 23 #include "cc/raster/task_graph_runner.h"
24 #include "cc/surfaces/onscreen_display_client.h" 24 #include "cc/surfaces/onscreen_display_client.h"
25 #include "cc/surfaces/surface_display_output_surface.h" 25 #include "cc/surfaces/surface_display_output_surface.h"
26 #include "cc/surfaces/surface_manager.h" 26 #include "cc/surfaces/surface_manager.h"
27 #include "content/browser/compositor/browser_compositor_output_surface.h" 27 #include "content/browser/compositor/browser_compositor_output_surface.h"
28 #include "content/browser/compositor/browser_compositor_overlay_candidate_valida tor.h" 28 #include "content/browser/compositor/browser_compositor_overlay_candidate_valida tor.h"
29 #include "content/browser/compositor/gl_helper.h"
29 #include "content/browser/compositor/gpu_browser_compositor_output_surface.h" 30 #include "content/browser/compositor/gpu_browser_compositor_output_surface.h"
30 #include "content/browser/compositor/gpu_surfaceless_browser_compositor_output_s urface.h" 31 #include "content/browser/compositor/gpu_surfaceless_browser_compositor_output_s urface.h"
31 #include "content/browser/compositor/offscreen_browser_compositor_output_surface .h" 32 #include "content/browser/compositor/offscreen_browser_compositor_output_surface .h"
32 #include "content/browser/compositor/reflector_impl.h" 33 #include "content/browser/compositor/reflector_impl.h"
33 #include "content/browser/compositor/software_browser_compositor_output_surface. h" 34 #include "content/browser/compositor/software_browser_compositor_output_surface. h"
34 #include "content/browser/compositor/software_output_device_mus.h" 35 #include "content/browser/compositor/software_output_device_mus.h"
35 #include "content/browser/gpu/browser_gpu_channel_host_factory.h" 36 #include "content/browser/gpu/browser_gpu_channel_host_factory.h"
36 #include "content/browser/gpu/browser_gpu_memory_buffer_manager.h" 37 #include "content/browser/gpu/browser_gpu_memory_buffer_manager.h"
37 #include "content/browser/gpu/compositor_util.h" 38 #include "content/browser/gpu/compositor_util.h"
38 #include "content/browser/gpu/gpu_data_manager_impl.h" 39 #include "content/browser/gpu/gpu_data_manager_impl.h"
39 #include "content/browser/gpu/gpu_surface_tracker.h" 40 #include "content/browser/gpu/gpu_surface_tracker.h"
40 #include "content/browser/renderer_host/render_widget_host_impl.h" 41 #include "content/browser/renderer_host/render_widget_host_impl.h"
41 #include "content/common/gpu/client/context_provider_command_buffer.h" 42 #include "content/common/gpu/client/context_provider_command_buffer.h"
42 #include "content/common/gpu/client/gl_helper.h"
43 #include "content/common/gpu/client/gpu_channel_host.h" 43 #include "content/common/gpu/client/gpu_channel_host.h"
44 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" 44 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h"
45 #include "content/common/gpu/gpu_process_launch_causes.h" 45 #include "content/common/gpu/gpu_process_launch_causes.h"
46 #include "content/common/host_shared_bitmap_manager.h" 46 #include "content/common/host_shared_bitmap_manager.h"
47 #include "content/public/common/content_switches.h" 47 #include "content/public/common/content_switches.h"
48 #include "gpu/GLES2/gl2extchromium.h" 48 #include "gpu/GLES2/gl2extchromium.h"
49 #include "gpu/command_buffer/client/gles2_interface.h" 49 #include "gpu/command_buffer/client/gles2_interface.h"
50 #include "gpu/command_buffer/common/mailbox.h" 50 #include "gpu/command_buffer/common/mailbox.h"
51 #include "third_party/khronos/GLES2/gl2.h" 51 #include "third_party/khronos/GLES2/gl2.h"
52 #include "ui/compositor/compositor.h" 52 #include "ui/compositor/compositor.h"
(...skipping 605 matching lines...) Expand 10 before | Expand all | Expand 10 after
658 FOR_EACH_OBSERVER(ImageTransportFactoryObserver, 658 FOR_EACH_OBSERVER(ImageTransportFactoryObserver,
659 observer_list_, 659 observer_list_,
660 OnLostResources()); 660 OnLostResources());
661 661
662 // Kill things that use the shared context before killing the shared context. 662 // Kill things that use the shared context before killing the shared context.
663 lost_gl_helper.reset(); 663 lost_gl_helper.reset();
664 lost_shared_main_thread_contexts = NULL; 664 lost_shared_main_thread_contexts = NULL;
665 } 665 }
666 666
667 } // namespace content 667 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698