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

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

Issue 140753005: Add the UI compositor to the Mac build (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 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/aura/gpu_process_transport_factory.h" 5 #include "content/browser/compositor/gpu_process_transport_factory.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
11 #include "base/location.h" 11 #include "base/location.h"
12 #include "base/message_loop/message_loop.h" 12 #include "base/message_loop/message_loop.h"
13 #include "base/metrics/histogram.h" 13 #include "base/metrics/histogram.h"
14 #include "cc/output/compositor_frame.h" 14 #include "cc/output/compositor_frame.h"
15 #include "cc/output/output_surface.h" 15 #include "cc/output/output_surface.h"
16 #include "content/browser/aura/browser_compositor_output_surface.h" 16 #include "content/browser/compositor/browser_compositor_output_surface.h"
17 #include "content/browser/aura/browser_compositor_output_surface_proxy.h" 17 #include "content/browser/compositor/browser_compositor_output_surface_proxy.h"
18 #include "content/browser/aura/gpu_browser_compositor_output_surface.h" 18 #include "content/browser/compositor/gpu_browser_compositor_output_surface.h"
19 #include "content/browser/aura/reflector_impl.h" 19 #include "content/browser/compositor/reflector_impl.h"
20 #include "content/browser/aura/software_browser_compositor_output_surface.h" 20 #include "content/browser/compositor/software_browser_compositor_output_surface. h"
21 #include "content/browser/gpu/browser_gpu_channel_host_factory.h" 21 #include "content/browser/gpu/browser_gpu_channel_host_factory.h"
22 #include "content/browser/gpu/gpu_data_manager_impl.h" 22 #include "content/browser/gpu/gpu_data_manager_impl.h"
23 #include "content/browser/gpu/gpu_surface_tracker.h" 23 #include "content/browser/gpu/gpu_surface_tracker.h"
24 #include "content/browser/renderer_host/render_widget_host_impl.h" 24 #include "content/browser/renderer_host/render_widget_host_impl.h"
25 #include "content/common/gpu/client/context_provider_command_buffer.h" 25 #include "content/common/gpu/client/context_provider_command_buffer.h"
26 #include "content/common/gpu/client/gl_helper.h" 26 #include "content/common/gpu/client/gl_helper.h"
27 #include "content/common/gpu/client/gpu_channel_host.h" 27 #include "content/common/gpu/client/gpu_channel_host.h"
28 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" 28 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h"
29 #include "content/common/gpu/gpu_process_launch_causes.h" 29 #include "content/common/gpu/gpu_process_launch_causes.h"
30 #include "gpu/GLES2/gl2extchromium.h" 30 #include "gpu/GLES2/gl2extchromium.h"
31 #include "gpu/command_buffer/client/gles2_interface.h" 31 #include "gpu/command_buffer/client/gles2_interface.h"
32 #include "third_party/khronos/GLES2/gl2.h" 32 #include "third_party/khronos/GLES2/gl2.h"
33 #include "ui/compositor/compositor.h" 33 #include "ui/compositor/compositor.h"
34 #include "ui/compositor/compositor_switches.h" 34 #include "ui/compositor/compositor_switches.h"
35 #include "ui/gfx/native_widget_types.h" 35 #include "ui/gfx/native_widget_types.h"
36 #include "ui/gfx/size.h" 36 #include "ui/gfx/size.h"
37 37
38 #if defined(OS_WIN) 38 #if defined(OS_WIN)
39 #include "content/browser/aura/software_output_device_win.h" 39 #include "content/browser/compositor/software_output_device_win.h"
40 #include "ui/surface/accelerated_surface_win.h" 40 #include "ui/surface/accelerated_surface_win.h"
41 #elif defined(USE_OZONE) 41 #elif defined(USE_OZONE)
42 #include "content/browser/aura/software_output_device_ozone.h" 42 #include "content/browser/compositor/software_output_device_ozone.h"
43 #elif defined(USE_X11) 43 #elif defined(USE_X11)
44 #include "content/browser/aura/software_output_device_x11.h" 44 #include "content/browser/compositor/software_output_device_x11.h"
45 #endif 45 #endif
46 46
47 using cc::ContextProvider; 47 using cc::ContextProvider;
48 using gpu::gles2::GLES2Interface; 48 using gpu::gles2::GLES2Interface;
49 49
50 namespace content { 50 namespace content {
51 51
52 struct GpuProcessTransportFactory::PerCompositorData { 52 struct GpuProcessTransportFactory::PerCompositorData {
53 int surface_id; 53 int surface_id;
54 #if defined(OS_WIN) 54 #if defined(OS_WIN)
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after
476 observer_list_, 476 observer_list_,
477 OnLostResources()); 477 OnLostResources());
478 478
479 // Kill things that use the shared context before killing the shared context. 479 // Kill things that use the shared context before killing the shared context.
480 lost_gl_helper.reset(); 480 lost_gl_helper.reset();
481 lost_offscreen_compositor_contexts = NULL; 481 lost_offscreen_compositor_contexts = NULL;
482 lost_shared_main_thread_contexts = NULL; 482 lost_shared_main_thread_contexts = NULL;
483 } 483 }
484 484
485 } // namespace content 485 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/compositor/gpu_process_transport_factory.h ('k') | content/browser/compositor/image_transport_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698