| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "base/json/json_reader.h" | 5 #include "base/json/json_reader.h" |
| 6 #include "base/memory/ref_counted_memory.h" | 6 #include "base/memory/ref_counted_memory.h" |
| 7 #include "base/run_loop.h" | 7 #include "base/run_loop.h" |
| 8 #include "base/strings/stringprintf.h" | 8 #include "base/strings/stringprintf.h" |
| 9 #include "base/test/launcher/unit_test_launcher.h" | 9 #include "base/test/launcher/unit_test_launcher.h" |
| 10 #include "base/test/test_suite.h" | 10 #include "base/test/test_suite.h" |
| 11 #include "base/threading/thread_task_runner_handle.h" | 11 #include "base/threading/thread_task_runner_handle.h" |
| 12 #include "base/trace_event/trace_event.h" | 12 #include "base/trace_event/trace_event.h" |
| 13 #include "components/display_compositor/gl_helper.h" | 13 #include "components/display_compositor/gl_helper.h" |
| 14 #include "gpu/command_buffer/client/gl_in_process_context.h" | |
| 15 #include "gpu/command_buffer/client/gles2_implementation.h" | 14 #include "gpu/command_buffer/client/gles2_implementation.h" |
| 16 #include "gpu/command_buffer/client/shared_memory_limits.h" | 15 #include "gpu/command_buffer/client/shared_memory_limits.h" |
| 16 #include "gpu/ipc/gl_in_process_context.h" |
| 17 #include "media/base/video_frame.h" | 17 #include "media/base/video_frame.h" |
| 18 #include "media/base/video_util.h" | 18 #include "media/base/video_util.h" |
| 19 #include "testing/gtest/include/gtest/gtest.h" | 19 #include "testing/gtest/include/gtest/gtest.h" |
| 20 #include "third_party/skia/include/core/SkBitmap.h" | 20 #include "third_party/skia/include/core/SkBitmap.h" |
| 21 #include "ui/gl/gl_implementation.h" | 21 #include "ui/gl/gl_implementation.h" |
| 22 | 22 |
| 23 namespace display_compositor { | 23 namespace display_compositor { |
| 24 | 24 |
| 25 namespace { | 25 namespace { |
| 26 int kYUVReadbackSizes[] = {2, 4, 14}; | 26 int kYUVReadbackSizes[] = {2, 4, 14}; |
| (...skipping 521 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 548 INSTANTIATE_TEST_CASE_P( | 548 INSTANTIATE_TEST_CASE_P( |
| 549 , | 549 , |
| 550 YUVReadbackPixelTest, | 550 YUVReadbackPixelTest, |
| 551 ::testing::Combine( | 551 ::testing::Combine( |
| 552 ::testing::Bool(), | 552 ::testing::Bool(), |
| 553 ::testing::Bool(), | 553 ::testing::Bool(), |
| 554 ::testing::Range<unsigned int>(0, arraysize(kYUVReadbackSizes)), | 554 ::testing::Range<unsigned int>(0, arraysize(kYUVReadbackSizes)), |
| 555 ::testing::Range<unsigned int>(0, arraysize(kYUVReadbackSizes)))); | 555 ::testing::Range<unsigned int>(0, arraysize(kYUVReadbackSizes)))); |
| 556 | 556 |
| 557 } // namespace display_compositor | 557 } // namespace display_compositor |
| OLD | NEW |