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 "ui/compositor/test/in_process_context_factory.h" | 5 #include "ui/compositor/test/in_process_context_factory.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
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/macros.h" | 11 #include "base/macros.h" |
12 #include "base/memory/ptr_util.h" | 12 #include "base/memory/ptr_util.h" |
13 #include "base/threading/thread.h" | 13 #include "base/threading/thread.h" |
14 #include "cc/output/context_provider.h" | 14 #include "cc/output/context_provider.h" |
15 #include "cc/output/output_surface_client.h" | 15 #include "cc/output/output_surface_client.h" |
16 #include "cc/output/output_surface_frame.h" | 16 #include "cc/output/output_surface_frame.h" |
17 #include "cc/output/texture_mailbox_deleter.h" | 17 #include "cc/output/texture_mailbox_deleter.h" |
18 #include "cc/scheduler/begin_frame_source.h" | 18 #include "cc/scheduler/begin_frame_source.h" |
19 #include "cc/scheduler/delay_based_time_source.h" | 19 #include "cc/scheduler/delay_based_time_source.h" |
20 #include "cc/surfaces/direct_compositor_frame_sink.h" | 20 #include "cc/surfaces/direct_compositor_frame_sink.h" |
21 #include "cc/surfaces/display.h" | 21 #include "cc/surfaces/display.h" |
22 #include "cc/surfaces/display_scheduler.h" | 22 #include "cc/surfaces/display_scheduler.h" |
23 #include "cc/surfaces/surface_id_allocator.h" | 23 #include "cc/surfaces/local_surface_id_allocator.h" |
24 #include "cc/test/pixel_test_output_surface.h" | 24 #include "cc/test/pixel_test_output_surface.h" |
25 #include "gpu/command_buffer/client/context_support.h" | 25 #include "gpu/command_buffer/client/context_support.h" |
26 #include "gpu/command_buffer/client/gles2_interface.h" | 26 #include "gpu/command_buffer/client/gles2_interface.h" |
27 #include "gpu/command_buffer/common/gles2_cmd_utils.h" | 27 #include "gpu/command_buffer/common/gles2_cmd_utils.h" |
28 #include "ui/compositor/compositor_switches.h" | 28 #include "ui/compositor/compositor_switches.h" |
29 #include "ui/compositor/layer.h" | 29 #include "ui/compositor/layer.h" |
30 #include "ui/compositor/reflector.h" | 30 #include "ui/compositor/reflector.h" |
31 #include "ui/compositor/test/in_process_context_provider.h" | 31 #include "ui/compositor/test/in_process_context_provider.h" |
32 #include "ui/gl/gl_implementation.h" | 32 #include "ui/gl/gl_implementation.h" |
33 #include "ui/gl/test/gl_surface_test_support.h" | 33 #include "ui/gl/test/gl_surface_test_support.h" |
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
336 data->surface_handle = tracker->AddSurfaceForNativeWidget(widget); | 336 data->surface_handle = tracker->AddSurfaceForNativeWidget(widget); |
337 #endif | 337 #endif |
338 } | 338 } |
339 | 339 |
340 PerCompositorData* return_ptr = data.get(); | 340 PerCompositorData* return_ptr = data.get(); |
341 per_compositor_data_[compositor] = std::move(data); | 341 per_compositor_data_[compositor] = std::move(data); |
342 return return_ptr; | 342 return return_ptr; |
343 } | 343 } |
344 | 344 |
345 } // namespace ui | 345 } // namespace ui |
OLD | NEW |