| 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" |
| 11 #include "base/path_service.h" | 11 #include "base/path_service.h" |
| 12 #include "cc/base/switches.h" | 12 #include "cc/base/switches.h" |
| 13 #include "cc/layers/solid_color_layer.h" | 13 #include "cc/layers/solid_color_layer.h" |
| 14 #include "cc/layers/texture_layer.h" | 14 #include "cc/layers/texture_layer.h" |
| 15 #include "cc/output/copy_output_request.h" | 15 #include "cc/output/copy_output_request.h" |
| 16 #include "cc/output/copy_output_result.h" | 16 #include "cc/output/copy_output_result.h" |
| 17 #include "cc/output/software_output_device.h" | 17 #include "cc/output/software_output_device.h" |
| 18 #include "cc/resources/texture_mailbox.h" | 18 #include "cc/resources/texture_mailbox.h" |
| 19 #include "cc/test/paths.h" | 19 #include "cc/test/paths.h" |
| 20 #include "cc/test/pixel_comparator.h" | 20 #include "cc/test/pixel_comparator.h" |
| 21 #include "cc/test/pixel_test_output_surface.h" | 21 #include "cc/test/pixel_test_output_surface.h" |
| 22 #include "cc/test/pixel_test_utils.h" | 22 #include "cc/test/pixel_test_utils.h" |
| 23 #include "cc/test/test_compositor_frame_sink.h" | 23 #include "cc/test/test_compositor_frame_sink.h" |
| 24 #include "cc/test/test_in_process_context_provider.h" | 24 #include "cc/test/test_in_process_context_provider.h" |
| 25 #include "cc/trees/layer_tree_impl.h" | 25 #include "cc/trees/layer_tree_impl.h" |
| 26 #include "gpu/command_buffer/client/gl_in_process_context.h" | |
| 27 #include "gpu/command_buffer/client/gles2_implementation.h" | 26 #include "gpu/command_buffer/client/gles2_implementation.h" |
| 27 #include "gpu/ipc/gl_in_process_context.h" |
| 28 | 28 |
| 29 using gpu::gles2::GLES2Interface; | 29 using gpu::gles2::GLES2Interface; |
| 30 | 30 |
| 31 namespace cc { | 31 namespace cc { |
| 32 | 32 |
| 33 LayerTreePixelTest::LayerTreePixelTest() | 33 LayerTreePixelTest::LayerTreePixelTest() |
| 34 : pixel_comparator_(new ExactPixelComparator(true)), | 34 : pixel_comparator_(new ExactPixelComparator(true)), |
| 35 test_type_(PIXEL_TEST_GL), | 35 test_type_(PIXEL_TEST_GL), |
| 36 pending_texture_mailbox_callbacks_(0) {} | 36 pending_texture_mailbox_callbacks_(0) {} |
| 37 | 37 |
| (...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 285 } | 285 } |
| 286 | 286 |
| 287 void LayerTreePixelTest::Finish() { | 287 void LayerTreePixelTest::Finish() { |
| 288 std::unique_ptr<gpu::GLInProcessContext> context = | 288 std::unique_ptr<gpu::GLInProcessContext> context = |
| 289 CreateTestInProcessContext(); | 289 CreateTestInProcessContext(); |
| 290 GLES2Interface* gl = context->GetImplementation(); | 290 GLES2Interface* gl = context->GetImplementation(); |
| 291 gl->Finish(); | 291 gl->Finish(); |
| 292 } | 292 } |
| 293 | 293 |
| 294 } // namespace cc | 294 } // namespace cc |
| OLD | NEW |