| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "content/browser/media/capture/web_contents_video_capture_device.h" | 5 #include "content/browser/media/capture/web_contents_video_capture_device.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 #include "content/browser/web_contents/web_contents_impl.h" | 26 #include "content/browser/web_contents/web_contents_impl.h" |
| 27 #include "content/public/browser/render_widget_host_view_frame_subscriber.h" | 27 #include "content/public/browser/render_widget_host_view_frame_subscriber.h" |
| 28 #include "content/public/browser/web_contents_media_capture_id.h" | 28 #include "content/public/browser/web_contents_media_capture_id.h" |
| 29 #include "content/public/test/mock_render_process_host.h" | 29 #include "content/public/test/mock_render_process_host.h" |
| 30 #include "content/public/test/test_browser_context.h" | 30 #include "content/public/test/test_browser_context.h" |
| 31 #include "content/public/test/test_browser_thread_bundle.h" | 31 #include "content/public/test/test_browser_thread_bundle.h" |
| 32 #include "content/public/test/test_utils.h" | 32 #include "content/public/test/test_utils.h" |
| 33 #include "content/test/test_render_frame_host_factory.h" | 33 #include "content/test/test_render_frame_host_factory.h" |
| 34 #include "content/test/test_render_view_host.h" | 34 #include "content/test/test_render_view_host.h" |
| 35 #include "content/test/test_web_contents.h" | 35 #include "content/test/test_web_contents.h" |
| 36 #include "media/base/video_capture_types.h" | |
| 37 #include "media/base/video_frame.h" | 36 #include "media/base/video_frame.h" |
| 38 #include "media/base/video_util.h" | 37 #include "media/base/video_util.h" |
| 39 #include "media/base/yuv_convert.h" | 38 #include "media/base/yuv_convert.h" |
| 40 #include "media/capture/video/video_capture_buffer_pool_impl.h" | 39 #include "media/capture/video/video_capture_buffer_pool_impl.h" |
| 40 #include "media/capture/video_capture_types.h" |
| 41 #include "skia/ext/platform_canvas.h" | 41 #include "skia/ext/platform_canvas.h" |
| 42 #include "testing/gmock/include/gmock/gmock.h" | 42 #include "testing/gmock/include/gmock/gmock.h" |
| 43 #include "testing/gtest/include/gtest/gtest.h" | 43 #include "testing/gtest/include/gtest/gtest.h" |
| 44 #include "third_party/skia/include/core/SkColor.h" | 44 #include "third_party/skia/include/core/SkColor.h" |
| 45 #include "ui/base/layout.h" | 45 #include "ui/base/layout.h" |
| 46 #include "ui/display/display.h" | 46 #include "ui/display/display.h" |
| 47 #include "ui/display/screen.h" | 47 #include "ui/display/screen.h" |
| 48 #include "ui/display/test/test_screen.h" | 48 #include "ui/display/test/test_screen.h" |
| 49 #include "ui/gfx/geometry/dip_util.h" | 49 #include "ui/gfx/geometry/dip_util.h" |
| 50 #include "ui/gfx/geometry/size_conversions.h" | 50 #include "ui/gfx/geometry/size_conversions.h" |
| (...skipping 1208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1259 for (int i = 0; i < 3; ++i) { | 1259 for (int i = 0; i < 3; ++i) { |
| 1260 SimulateRefreshFrameRequest(); | 1260 SimulateRefreshFrameRequest(); |
| 1261 ASSERT_NO_FATAL_FAILURE(client_observer()->WaitForNextColor(SK_ColorGREEN)); | 1261 ASSERT_NO_FATAL_FAILURE(client_observer()->WaitForNextColor(SK_ColorGREEN)); |
| 1262 } | 1262 } |
| 1263 | 1263 |
| 1264 device()->StopAndDeAllocate(); | 1264 device()->StopAndDeAllocate(); |
| 1265 } | 1265 } |
| 1266 | 1266 |
| 1267 } // namespace | 1267 } // namespace |
| 1268 } // namespace content | 1268 } // namespace content |
| OLD | NEW |