| 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/path_service.h" | 8 #include "base/path_service.h" |
| 9 #include "base/run_loop.h" | 9 #include "base/run_loop.h" |
| 10 #include "base/thread_task_runner_handle.h" | 10 #include "base/thread_task_runner_handle.h" |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 disable_picture_quad_image_filtering_(false), | 37 disable_picture_quad_image_filtering_(false), |
| 38 output_surface_client_(new FakeOutputSurfaceClient), | 38 output_surface_client_(new FakeOutputSurfaceClient), |
| 39 main_thread_task_runner_( | 39 main_thread_task_runner_( |
| 40 BlockingTaskRunner::Create(base::ThreadTaskRunnerHandle::Get())) { | 40 BlockingTaskRunner::Create(base::ThreadTaskRunnerHandle::Get())) { |
| 41 } | 41 } |
| 42 PixelTest::~PixelTest() {} | 42 PixelTest::~PixelTest() {} |
| 43 | 43 |
| 44 bool PixelTest::RunPixelTest(RenderPassList* pass_list, | 44 bool PixelTest::RunPixelTest(RenderPassList* pass_list, |
| 45 const base::FilePath& ref_file, | 45 const base::FilePath& ref_file, |
| 46 const PixelComparator& comparator) { | 46 const PixelComparator& comparator) { |
| 47 return RunPixelTestWithReadbackTarget(pass_list, | 47 return RunPixelTestWithReadbackTarget(pass_list, pass_list->back().get(), |
| 48 pass_list->back(), | 48 ref_file, comparator); |
| 49 ref_file, | |
| 50 comparator); | |
| 51 } | 49 } |
| 52 | 50 |
| 53 bool PixelTest::RunPixelTestWithReadbackTarget( | 51 bool PixelTest::RunPixelTestWithReadbackTarget( |
| 54 RenderPassList* pass_list, | 52 RenderPassList* pass_list, |
| 55 RenderPass* target, | 53 RenderPass* target, |
| 56 const base::FilePath& ref_file, | 54 const base::FilePath& ref_file, |
| 57 const PixelComparator& comparator) { | 55 const PixelComparator& comparator) { |
| 58 return RunPixelTestWithReadbackTargetAndArea( | 56 return RunPixelTestWithReadbackTargetAndArea( |
| 59 pass_list, target, ref_file, comparator, nullptr); | 57 pass_list, target, ref_file, comparator, nullptr); |
| 60 } | 58 } |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 output_surface_.get(), shared_bitmap_manager_.get(), | 177 output_surface_.get(), shared_bitmap_manager_.get(), |
| 180 gpu_memory_buffer_manager_.get(), main_thread_task_runner_.get(), 0, 1, | 178 gpu_memory_buffer_manager_.get(), main_thread_task_runner_.get(), 0, 1, |
| 181 settings_.renderer_settings.use_gpu_memory_buffer_resources, | 179 settings_.renderer_settings.use_gpu_memory_buffer_resources, |
| 182 settings_.use_image_texture_targets); | 180 settings_.use_image_texture_targets); |
| 183 renderer_ = | 181 renderer_ = |
| 184 SoftwareRenderer::Create(this, &settings_.renderer_settings, | 182 SoftwareRenderer::Create(this, &settings_.renderer_settings, |
| 185 output_surface_.get(), resource_provider_.get()); | 183 output_surface_.get(), resource_provider_.get()); |
| 186 } | 184 } |
| 187 | 185 |
| 188 } // namespace cc | 186 } // namespace cc |
| OLD | NEW |