OLD | NEW |
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 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 25 matching lines...) Expand all Loading... |
36 #include "content/common/gpu/gpu_process_launch_causes.h" | 36 #include "content/common/gpu/gpu_process_launch_causes.h" |
37 #include "content/common/host_shared_bitmap_manager.h" | 37 #include "content/common/host_shared_bitmap_manager.h" |
38 #include "content/public/common/content_switches.h" | 38 #include "content/public/common/content_switches.h" |
39 #include "gpu/GLES2/gl2extchromium.h" | 39 #include "gpu/GLES2/gl2extchromium.h" |
40 #include "gpu/command_buffer/client/gles2_interface.h" | 40 #include "gpu/command_buffer/client/gles2_interface.h" |
41 #include "gpu/command_buffer/common/mailbox.h" | 41 #include "gpu/command_buffer/common/mailbox.h" |
42 #include "third_party/khronos/GLES2/gl2.h" | 42 #include "third_party/khronos/GLES2/gl2.h" |
43 #include "ui/compositor/compositor.h" | 43 #include "ui/compositor/compositor.h" |
44 #include "ui/compositor/compositor_constants.h" | 44 #include "ui/compositor/compositor_constants.h" |
45 #include "ui/compositor/compositor_switches.h" | 45 #include "ui/compositor/compositor_switches.h" |
| 46 #include "ui/gfx/geometry/size.h" |
46 #include "ui/gfx/native_widget_types.h" | 47 #include "ui/gfx/native_widget_types.h" |
47 #include "ui/gfx/size.h" | |
48 | 48 |
49 #if defined(OS_WIN) | 49 #if defined(OS_WIN) |
50 #include "content/browser/compositor/software_output_device_win.h" | 50 #include "content/browser/compositor/software_output_device_win.h" |
51 #elif defined(USE_OZONE) | 51 #elif defined(USE_OZONE) |
52 #include "content/browser/compositor/overlay_candidate_validator_ozone.h" | 52 #include "content/browser/compositor/overlay_candidate_validator_ozone.h" |
53 #include "content/browser/compositor/software_output_device_ozone.h" | 53 #include "content/browser/compositor/software_output_device_ozone.h" |
54 #include "ui/ozone/public/surface_factory_ozone.h" | 54 #include "ui/ozone/public/surface_factory_ozone.h" |
55 #elif defined(USE_X11) | 55 #elif defined(USE_X11) |
56 #include "content/browser/compositor/software_output_device_x11.h" | 56 #include "content/browser/compositor/software_output_device_x11.h" |
57 #elif defined(OS_MACOSX) | 57 #elif defined(OS_MACOSX) |
(...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
537 FOR_EACH_OBSERVER(ImageTransportFactoryObserver, | 537 FOR_EACH_OBSERVER(ImageTransportFactoryObserver, |
538 observer_list_, | 538 observer_list_, |
539 OnLostResources()); | 539 OnLostResources()); |
540 | 540 |
541 // Kill things that use the shared context before killing the shared context. | 541 // Kill things that use the shared context before killing the shared context. |
542 lost_gl_helper.reset(); | 542 lost_gl_helper.reset(); |
543 lost_shared_main_thread_contexts = NULL; | 543 lost_shared_main_thread_contexts = NULL; |
544 } | 544 } |
545 | 545 |
546 } // namespace content | 546 } // namespace content |
OLD | NEW |