| 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/layer_tree_pixel_test.h" | 5 #include "cc/test/layer_tree_pixel_test.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 scoped_refptr<ContextProvider>) { | 43 scoped_refptr<ContextProvider>) { |
| 44 scoped_refptr<TestInProcessContextProvider> compositor_context_provider; | 44 scoped_refptr<TestInProcessContextProvider> compositor_context_provider; |
| 45 scoped_refptr<TestInProcessContextProvider> worker_context_provider; | 45 scoped_refptr<TestInProcessContextProvider> worker_context_provider; |
| 46 if (test_type_ == PIXEL_TEST_GL) { | 46 if (test_type_ == PIXEL_TEST_GL) { |
| 47 compositor_context_provider = new TestInProcessContextProvider(nullptr); | 47 compositor_context_provider = new TestInProcessContextProvider(nullptr); |
| 48 worker_context_provider = | 48 worker_context_provider = |
| 49 new TestInProcessContextProvider(compositor_context_provider.get()); | 49 new TestInProcessContextProvider(compositor_context_provider.get()); |
| 50 } | 50 } |
| 51 bool synchronous_composite = | 51 bool synchronous_composite = |
| 52 !HasImplThread() && | 52 !HasImplThread() && |
| 53 !layer_tree_host()->settings().single_thread_proxy_scheduler; | 53 !layer_tree_host()->GetSettings().single_thread_proxy_scheduler; |
| 54 // Allow resource reclaiming for partial raster tests to get back | 54 // Allow resource reclaiming for partial raster tests to get back |
| 55 // resources from the Display. | 55 // resources from the Display. |
| 56 bool force_disable_reclaim_resources = false; | 56 bool force_disable_reclaim_resources = false; |
| 57 auto delegating_output_surface = | 57 auto delegating_output_surface = |
| 58 base::MakeUnique<TestDelegatingOutputSurface>( | 58 base::MakeUnique<TestDelegatingOutputSurface>( |
| 59 compositor_context_provider, std::move(worker_context_provider), | 59 compositor_context_provider, std::move(worker_context_provider), |
| 60 CreateDisplayOutputSurface(compositor_context_provider), | 60 CreateDisplayOutputSurface(compositor_context_provider), |
| 61 shared_bitmap_manager(), gpu_memory_buffer_manager(), | 61 shared_bitmap_manager(), gpu_memory_buffer_manager(), |
| 62 RendererSettings(), ImplThreadTaskRunner(), synchronous_composite, | 62 RendererSettings(), ImplThreadTaskRunner(), synchronous_composite, |
| 63 force_disable_reclaim_resources); | 63 force_disable_reclaim_resources); |
| (...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 } | 290 } |
| 291 | 291 |
| 292 void LayerTreePixelTest::Finish() { | 292 void LayerTreePixelTest::Finish() { |
| 293 std::unique_ptr<gpu::GLInProcessContext> context = | 293 std::unique_ptr<gpu::GLInProcessContext> context = |
| 294 CreateTestInProcessContext(); | 294 CreateTestInProcessContext(); |
| 295 GLES2Interface* gl = context->GetImplementation(); | 295 GLES2Interface* gl = context->GetImplementation(); |
| 296 gl->Finish(); | 296 gl->Finish(); |
| 297 } | 297 } |
| 298 | 298 |
| 299 } // namespace cc | 299 } // namespace cc |
| OLD | NEW |