OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "cc/test/pixel_test.h" | 5 #include "cc/test/pixel_test.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/memory/ptr_util.h" |
8 #include "base/path_service.h" | 9 #include "base/path_service.h" |
9 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
10 #include "base/threading/thread_task_runner_handle.h" | 11 #include "base/threading/thread_task_runner_handle.h" |
11 #include "cc/base/switches.h" | 12 #include "cc/base/switches.h" |
12 #include "cc/output/compositor_frame_metadata.h" | 13 #include "cc/output/compositor_frame_metadata.h" |
13 #include "cc/output/copy_output_request.h" | 14 #include "cc/output/copy_output_request.h" |
14 #include "cc/output/copy_output_result.h" | 15 #include "cc/output/copy_output_result.h" |
15 #include "cc/output/gl_renderer.h" | 16 #include "cc/output/gl_renderer.h" |
16 #include "cc/output/output_surface_client.h" | 17 #include "cc/output/output_surface_client.h" |
17 #include "cc/output/software_output_device.h" | 18 #include "cc/output/software_output_device.h" |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 auto renderer = base::MakeUnique<SoftwareRenderer>( | 170 auto renderer = base::MakeUnique<SoftwareRenderer>( |
170 &settings_.renderer_settings, output_surface_.get(), | 171 &settings_.renderer_settings, output_surface_.get(), |
171 resource_provider_.get()); | 172 resource_provider_.get()); |
172 software_renderer_ = renderer.get(); | 173 software_renderer_ = renderer.get(); |
173 renderer_ = std::move(renderer); | 174 renderer_ = std::move(renderer); |
174 renderer_->Initialize(); | 175 renderer_->Initialize(); |
175 renderer_->SetVisible(true); | 176 renderer_->SetVisible(true); |
176 } | 177 } |
177 | 178 |
178 } // namespace cc | 179 } // namespace cc |
OLD | NEW |