| OLD | NEW |
| 1 diff --git a/cc/BUILD.gn b/cc/BUILD.gn | 1 diff --git a/cc/BUILD.gn b/cc/BUILD.gn |
| 2 index 6fe0694..803b0f9 100644 | 2 index 9c4752d..e217b12 100644 |
| 3 --- a/cc/BUILD.gn | 3 --- a/cc/BUILD.gn |
| 4 +++ b/cc/BUILD.gn | 4 +++ b/cc/BUILD.gn |
| 5 @@ -222,13 +222,6 @@ component("cc") { | 5 @@ -222,13 +222,6 @@ component("cc") { |
| 6 "layers/ui_resource_layer.h", | 6 "layers/ui_resource_layer.h", |
| 7 "layers/ui_resource_layer_impl.cc", | 7 "layers/ui_resource_layer_impl.cc", |
| 8 "layers/ui_resource_layer_impl.h", | 8 "layers/ui_resource_layer_impl.h", |
| 9 - "layers/video_frame_provider.h", | 9 - "layers/video_frame_provider.h", |
| 10 - "layers/video_frame_provider_client_impl.cc", | 10 - "layers/video_frame_provider_client_impl.cc", |
| 11 - "layers/video_frame_provider_client_impl.h", | 11 - "layers/video_frame_provider_client_impl.h", |
| 12 - "layers/video_layer.cc", | 12 - "layers/video_layer.cc", |
| (...skipping 14 matching lines...) Expand all Loading... |
| 27 "scheduler/begin_frame_source.cc", | 27 "scheduler/begin_frame_source.cc", |
| 28 @@ -623,8 +614,6 @@ source_set("test_support") { | 28 @@ -623,8 +614,6 @@ source_set("test_support") { |
| 29 "test/fake_tile_manager_client.h", | 29 "test/fake_tile_manager_client.h", |
| 30 "test/fake_ui_resource_layer_tree_host_impl.cc", | 30 "test/fake_ui_resource_layer_tree_host_impl.cc", |
| 31 "test/fake_ui_resource_layer_tree_host_impl.h", | 31 "test/fake_ui_resource_layer_tree_host_impl.h", |
| 32 - "test/fake_video_frame_provider.cc", | 32 - "test/fake_video_frame_provider.cc", |
| 33 - "test/fake_video_frame_provider.h", | 33 - "test/fake_video_frame_provider.h", |
| 34 "test/geometry_test_utils.cc", | 34 "test/geometry_test_utils.cc", |
| 35 "test/geometry_test_utils.h", | 35 "test/geometry_test_utils.h", |
| 36 "test/impl_side_painting_settings.h", | 36 "test/impl_side_painting_settings.h", |
| 37 @@ -783,7 +772,6 @@ if (!is_win || link_chrome_on_windows) { | 37 @@ -782,7 +771,6 @@ test("cc_unittests") { |
| 38 "layers/tiled_layer_unittest.cc", | 38 "layers/tiled_layer_unittest.cc", |
| 39 "layers/ui_resource_layer_impl_unittest.cc", | 39 "layers/ui_resource_layer_impl_unittest.cc", |
| 40 "layers/ui_resource_layer_unittest.cc", | 40 "layers/ui_resource_layer_unittest.cc", |
| 41 - "layers/video_layer_impl_unittest.cc", | 41 - "layers/video_layer_impl_unittest.cc", |
| 42 "output/begin_frame_args_unittest.cc", | 42 "output/begin_frame_args_unittest.cc", |
| 43 "output/delegating_renderer_unittest.cc", | 43 "output/delegating_renderer_unittest.cc", |
| 44 "output/filter_operations_unittest.cc", | 44 "output/filter_operations_unittest.cc", |
| 45 @@ -816,7 +804,6 @@ if (!is_win || link_chrome_on_windows) { | 45 @@ -843,7 +831,6 @@ test("cc_unittests") { |
| 46 "resources/tile_manager_unittest.cc", | 46 "trees/layer_tree_host_unittest_picture.cc", |
| 47 "resources/tile_priority_unittest.cc", | 47 "trees/layer_tree_host_unittest_proxy.cc", |
| 48 "resources/tile_task_worker_pool_unittest.cc", | 48 "trees/layer_tree_host_unittest_scroll.cc", |
| 49 - "resources/video_resource_updater_unittest.cc", | 49 - "trees/layer_tree_host_unittest_video.cc", |
| 50 "scheduler/begin_frame_source_unittest.cc", | 50 "trees/layer_tree_impl_unittest.cc", |
| 51 "scheduler/delay_based_time_source_unittest.cc", | 51 "trees/occlusion_tracker_unittest.cc", |
| 52 "scheduler/scheduler_state_machine_unittest.cc", | 52 "trees/occlusion_unittest.cc", |
| 53 @@ -844,7 +831,6 @@ if (!is_win || link_chrome_on_windows) { | |
| 54 "trees/layer_tree_host_unittest_picture.cc", | |
| 55 "trees/layer_tree_host_unittest_proxy.cc", | |
| 56 "trees/layer_tree_host_unittest_scroll.cc", | |
| 57 - "trees/layer_tree_host_unittest_video.cc", | |
| 58 "trees/layer_tree_impl_unittest.cc", | |
| 59 "trees/occlusion_tracker_unittest.cc", | |
| 60 "trees/occlusion_unittest.cc", | |
| 61 diff --git a/cc/layers/video_frame_provider.h b/cc/layers/video_frame_provider.h | 53 diff --git a/cc/layers/video_frame_provider.h b/cc/layers/video_frame_provider.h |
| 62 deleted file mode 100644 | 54 deleted file mode 100644 |
| 63 index 784d951..0000000 | 55 index 784d951..0000000 |
| 64 --- a/cc/layers/video_frame_provider.h | 56 --- a/cc/layers/video_frame_provider.h |
| 65 +++ /dev/null | 57 +++ /dev/null |
| 66 @@ -1,63 +0,0 @@ | 58 @@ -1,63 +0,0 @@ |
| 67 -// Copyright (c) 2012 The Chromium Authors. All rights reserved. | 59 -// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 68 -// Use of this source code is governed by a BSD-style license that can be | 60 -// Use of this source code is governed by a BSD-style license that can be |
| 69 -// found in the LICENSE file. | 61 -// found in the LICENSE file. |
| 70 - | 62 - |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 - matrix[0], matrix[4], matrix[8], matrix[12], | 235 - matrix[0], matrix[4], matrix[8], matrix[12], |
| 244 - matrix[1], matrix[5], matrix[9], matrix[13], | 236 - matrix[1], matrix[5], matrix[9], matrix[13], |
| 245 - matrix[2], matrix[6], matrix[10], matrix[14], | 237 - matrix[2], matrix[6], matrix[10], matrix[14], |
| 246 - matrix[3], matrix[7], matrix[11], matrix[15]); | 238 - matrix[3], matrix[7], matrix[11], matrix[15]); |
| 247 - if (active_video_layer_) | 239 - if (active_video_layer_) |
| 248 - active_video_layer_->SetNeedsRedraw(); | 240 - active_video_layer_->SetNeedsRedraw(); |
| 249 -} | 241 -} |
| 250 - | 242 - |
| 251 -} // namespace cc | 243 -} // namespace cc |
| 252 diff --git a/cc/output/gl_renderer.cc b/cc/output/gl_renderer.cc | 244 diff --git a/cc/output/gl_renderer.cc b/cc/output/gl_renderer.cc |
| 253 index 6142d96..5c560dc 100644 | 245 index 2016447..578faa9 100644 |
| 254 --- a/cc/output/gl_renderer.cc | 246 --- a/cc/output/gl_renderer.cc |
| 255 +++ b/cc/output/gl_renderer.cc | 247 +++ b/cc/output/gl_renderer.cc |
| 256 @@ -13,7 +13,6 @@ | 248 @@ -13,7 +13,6 @@ |
| 257 #include "base/logging.h" | 249 #include "base/logging.h" |
| 258 #include "base/trace_event/trace_event.h" | 250 #include "base/trace_event/trace_event.h" |
| 259 #include "cc/base/math_util.h" | 251 #include "cc/base/math_util.h" |
| 260 -#include "cc/layers/video_layer_impl.h" | 252 -#include "cc/layers/video_layer_impl.h" |
| 261 #include "cc/output/compositor_frame.h" | 253 #include "cc/output/compositor_frame.h" |
| 262 #include "cc/output/compositor_frame_metadata.h" | 254 #include "cc/output/compositor_frame_metadata.h" |
| 263 #include "cc/output/context_provider.h" | 255 #include "cc/output/context_provider.h" |
| 264 diff --git a/cc/output/renderer_pixeltest.cc b/cc/output/renderer_pixeltest.cc | 256 diff --git a/cc/output/renderer_pixeltest.cc b/cc/output/renderer_pixeltest.cc |
| 265 index 743e1cf..9e9175e 100644 | 257 index b30b0a5..81ad842 100644 |
| 266 --- a/cc/output/renderer_pixeltest.cc | 258 --- a/cc/output/renderer_pixeltest.cc |
| 267 +++ b/cc/output/renderer_pixeltest.cc | 259 +++ b/cc/output/renderer_pixeltest.cc |
| 268 @@ -12,7 +12,6 @@ | 260 @@ -12,7 +12,6 @@ |
| 269 #include "cc/test/fake_picture_pile_impl.h" | 261 #include "cc/test/fake_picture_pile_impl.h" |
| 270 #include "cc/test/pixel_test.h" | 262 #include "cc/test/pixel_test.h" |
| 271 #include "gpu/command_buffer/client/gles2_interface.h" | 263 #include "gpu/command_buffer/client/gles2_interface.h" |
| 272 -#include "media/base/video_frame.h" | 264 -#include "media/base/video_frame.h" |
| 273 #include "third_party/skia/include/core/SkColorPriv.h" | 265 #include "third_party/skia/include/core/SkColorPriv.h" |
| 274 #include "third_party/skia/include/core/SkImageFilter.h" | 266 #include "third_party/skia/include/core/SkImageFilter.h" |
| 275 #include "third_party/skia/include/core/SkMatrix.h" | 267 #include "third_party/skia/include/core/SkMatrix.h" |
| 276 @@ -388,453 +387,6 @@ TEST_F(GLRendererPixelTest, NonPremultipliedTextureWithBac
kground) { | 268 @@ -388,453 +387,6 @@ TEST_F(GLRendererPixelTest, NonPremultipliedTextureWithBac
kground) { |
| 277 FuzzyPixelOffByOneComparator(true))); | 269 FuzzyPixelOffByOneComparator(true))); |
| 278 } | 270 } |
| 279 | 271 |
| 280 -class VideoGLRendererPixelTest : public GLRendererPixelTest { | 272 -class VideoGLRendererPixelTest : public GLRendererPixelTest { |
| 281 - protected: | 273 - protected: |
| 282 - void CreateTestYUVVideoDrawQuad_Striped(const SharedQuadState* shared_state, | 274 - void CreateTestYUVVideoDrawQuad_Striped(const SharedQuadState* shared_state, |
| 283 - media::VideoFrame::Format format, | 275 - media::VideoFrame::Format format, |
| 284 - bool is_transparent, | 276 - bool is_transparent, |
| 285 - const gfx::RectF& tex_coord_rect, | 277 - const gfx::RectF& tex_coord_rect, |
| 286 - RenderPass* render_pass) { | 278 - RenderPass* render_pass) { |
| 287 - const gfx::Rect rect(this->device_viewport_size_); | 279 - const gfx::Rect rect(this->device_viewport_size_); |
| 288 - | 280 - |
| 289 - scoped_refptr<media::VideoFrame> video_frame = | 281 - scoped_refptr<media::VideoFrame> video_frame = |
| (...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 719 - pass_list.push_back(pass.Pass()); | 711 - pass_list.push_back(pass.Pass()); |
| 720 - | 712 - |
| 721 - EXPECT_TRUE(this->RunPixelTest( | 713 - EXPECT_TRUE(this->RunPixelTest( |
| 722 - &pass_list, | 714 - &pass_list, |
| 723 - base::FilePath(FILE_PATH_LITERAL("black.png")), | 715 - base::FilePath(FILE_PATH_LITERAL("black.png")), |
| 724 - ExactPixelComparator(true))); | 716 - ExactPixelComparator(true))); |
| 725 -} | 717 -} |
| 726 - | 718 - |
| 727 TYPED_TEST(RendererPixelTest, FastPassColorFilterAlpha) { | 719 TYPED_TEST(RendererPixelTest, FastPassColorFilterAlpha) { |
| 728 gfx::Rect viewport_rect(this->device_viewport_size_); | 720 gfx::Rect viewport_rect(this->device_viewport_size_); |
| 729 | 721 |
| 730 diff --git a/cc/quads/yuv_video_draw_quad.h b/cc/quads/yuv_video_draw_quad.h | 722 diff --git a/cc/quads/yuv_video_draw_quad.h b/cc/quads/yuv_video_draw_quad.h |
| 731 index 358929e..15bce98 100644 | 723 index 358929e..15bce98 100644 |
| 732 --- a/cc/quads/yuv_video_draw_quad.h | 724 --- a/cc/quads/yuv_video_draw_quad.h |
| 733 +++ b/cc/quads/yuv_video_draw_quad.h | 725 +++ b/cc/quads/yuv_video_draw_quad.h |
| 734 @@ -8,7 +8,6 @@ | 726 @@ -8,7 +8,6 @@ |
| 735 #include "base/basictypes.h" | 727 #include "base/basictypes.h" |
| 736 #include "base/memory/scoped_ptr.h" | 728 #include "base/memory/scoped_ptr.h" |
| 737 #include "cc/base/cc_export.h" | 729 #include "cc/base/cc_export.h" |
| 738 -#include "cc/layers/video_layer_impl.h" | 730 -#include "cc/layers/video_layer_impl.h" |
| 739 #include "cc/quads/draw_quad.h" | 731 #include "cc/quads/draw_quad.h" |
| 740 | 732 |
| 741 namespace cc { | 733 namespace cc { |
| 742 diff --git a/cc/resources/drawing_display_item.cc b/cc/resources/drawing_display
_item.cc | 734 diff --git a/cc/resources/drawing_display_item.cc b/cc/resources/drawing_display
_item.cc |
| 743 index 648f9de..6dffad9 100644 | 735 index 648f9de..6dffad9 100644 |
| 744 --- a/cc/resources/drawing_display_item.cc | 736 --- a/cc/resources/drawing_display_item.cc |
| 745 +++ b/cc/resources/drawing_display_item.cc | 737 +++ b/cc/resources/drawing_display_item.cc |
| 746 @@ -6,6 +6,7 @@ | 738 @@ -6,6 +6,7 @@ |
| 747 | 739 |
| 748 #include <string> | 740 #include <string> |
| 749 | 741 |
| 750 +#include "base/logging.h" | 742 +#include "base/logging.h" |
| 751 #include "base/strings/stringprintf.h" | 743 #include "base/strings/stringprintf.h" |
| 752 #include "base/trace_event/trace_event_argument.h" | 744 #include "base/trace_event/trace_event_argument.h" |
| 753 #include "cc/debug/picture_debug_util.h" | 745 #include "cc/debug/picture_debug_util.h" |
| 754 diff --git a/cc/trees/layer_tree_host_impl_unittest.cc b/cc/trees/layer_tree_hos
t_impl_unittest.cc | 746 diff --git a/cc/trees/layer_tree_host_impl_unittest.cc b/cc/trees/layer_tree_hos
t_impl_unittest.cc |
| 755 index 70fa92b..38b2d66 100644 | 747 index 4b2bc75..7ffa683 100644 |
| 756 --- a/cc/trees/layer_tree_host_impl_unittest.cc | 748 --- a/cc/trees/layer_tree_host_impl_unittest.cc |
| 757 +++ b/cc/trees/layer_tree_host_impl_unittest.cc | 749 +++ b/cc/trees/layer_tree_host_impl_unittest.cc |
| 758 @@ -27,7 +27,6 @@ | 750 @@ -27,7 +27,6 @@ |
| 759 #include "cc/layers/solid_color_scrollbar_layer_impl.h" | 751 #include "cc/layers/solid_color_scrollbar_layer_impl.h" |
| 760 #include "cc/layers/texture_layer_impl.h" | 752 #include "cc/layers/texture_layer_impl.h" |
| 761 #include "cc/layers/tiled_layer_impl.h" | 753 #include "cc/layers/tiled_layer_impl.h" |
| 762 -#include "cc/layers/video_layer_impl.h" | 754 -#include "cc/layers/video_layer_impl.h" |
| 763 #include "cc/output/begin_frame_args.h" | 755 #include "cc/output/begin_frame_args.h" |
| 764 #include "cc/output/compositor_frame_ack.h" | 756 #include "cc/output/compositor_frame_ack.h" |
| 765 #include "cc/output/compositor_frame_metadata.h" | 757 #include "cc/output/compositor_frame_metadata.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 777 #include "cc/trees/single_thread_proxy.h" | 769 #include "cc/trees/single_thread_proxy.h" |
| 778 -#include "media/base/media.h" | 770 -#include "media/base/media.h" |
| 779 #include "testing/gmock/include/gmock/gmock.h" | 771 #include "testing/gmock/include/gmock/gmock.h" |
| 780 #include "testing/gtest/include/gtest/gtest.h" | 772 #include "testing/gtest/include/gtest/gtest.h" |
| 781 #include "third_party/skia/include/core/SkMallocPixelRef.h" | 773 #include "third_party/skia/include/core/SkMallocPixelRef.h" |
| 782 @@ -71,7 +68,6 @@ using ::testing::Return; | 774 @@ -71,7 +68,6 @@ using ::testing::Return; |
| 783 using ::testing::AnyNumber; | 775 using ::testing::AnyNumber; |
| 784 using ::testing::AtLeast; | 776 using ::testing::AtLeast; |
| 785 using ::testing::_; | 777 using ::testing::_; |
| 786 -using media::VideoFrame; | 778 -using media::VideoFrame; |
| 787 | 779 |
| 788 namespace cc { | 780 namespace cc { |
| 789 namespace { | 781 namespace { |
| 790 @@ -96,7 +92,6 @@ class LayerTreeHostImplTest : public testing::Test, | 782 @@ -96,7 +92,6 @@ class LayerTreeHostImplTest : public testing::Test, |
| 791 reduce_memory_result_(true), | 783 reduce_memory_result_(true), |
| 792 current_limit_bytes_(0), | 784 current_limit_bytes_(0), |
| 793 current_priority_cutoff_value_(0) { | 785 current_priority_cutoff_value_(0) { |
| 794 - media::InitializeMediaLibraryForTesting(); | 786 - media::InitializeMediaLibraryForTesting(); |
| 795 } | 787 } |
| 796 | 788 |
| 797 LayerTreeSettings DefaultSettings() { | 789 LayerTreeSettings DefaultSettings() { |
| 798 @@ -5463,18 +5458,6 @@ TEST_F(LayerTreeHostImplTest, LayersFreeTextures) { | 790 @@ -5486,18 +5481,6 @@ TEST_F(LayerTreeHostImplTest, LayersFreeTextures) { |
| 799 root_layer->SetBounds(gfx::Size(10, 10)); | 791 root_layer->SetBounds(gfx::Size(10, 10)); |
| 800 root_layer->SetHasRenderSurface(true); | 792 root_layer->SetHasRenderSurface(true); |
| 801 | 793 |
| 802 - scoped_refptr<VideoFrame> softwareFrame = | 794 - scoped_refptr<VideoFrame> softwareFrame = |
| 803 - media::VideoFrame::CreateColorFrame( | 795 - media::VideoFrame::CreateColorFrame( |
| 804 - gfx::Size(4, 4), 0x80, 0x80, 0x80, base::TimeDelta()); | 796 - gfx::Size(4, 4), 0x80, 0x80, 0x80, base::TimeDelta()); |
| 805 - FakeVideoFrameProvider provider; | 797 - FakeVideoFrameProvider provider; |
| 806 - provider.set_frame(softwareFrame); | 798 - provider.set_frame(softwareFrame); |
| 807 - scoped_ptr<VideoLayerImpl> video_layer = VideoLayerImpl::Create( | 799 - scoped_ptr<VideoLayerImpl> video_layer = VideoLayerImpl::Create( |
| 808 - host_impl_->active_tree(), 4, &provider, media::VIDEO_ROTATION_0); | 800 - host_impl_->active_tree(), 4, &provider, media::VIDEO_ROTATION_0); |
| 809 - video_layer->SetBounds(gfx::Size(10, 10)); | 801 - video_layer->SetBounds(gfx::Size(10, 10)); |
| 810 - video_layer->SetContentBounds(gfx::Size(10, 10)); | 802 - video_layer->SetContentBounds(gfx::Size(10, 10)); |
| 811 - video_layer->SetDrawsContent(true); | 803 - video_layer->SetDrawsContent(true); |
| 812 - root_layer->AddChild(video_layer.Pass()); | 804 - root_layer->AddChild(video_layer.Pass()); |
| 813 - | 805 - |
| 814 scoped_ptr<IOSurfaceLayerImpl> io_surface_layer = | 806 scoped_ptr<IOSurfaceLayerImpl> io_surface_layer = |
| 815 IOSurfaceLayerImpl::Create(host_impl_->active_tree(), 5); | 807 IOSurfaceLayerImpl::Create(host_impl_->active_tree(), 5); |
| 816 io_surface_layer->SetBounds(gfx::Size(10, 10)); | 808 io_surface_layer->SetBounds(gfx::Size(10, 10)); |
| 817 @@ -6555,16 +6538,6 @@ TEST_F(LayerTreeHostImplTest, | 809 @@ -6578,16 +6561,6 @@ TEST_F(LayerTreeHostImplTest, |
| 818 scoped_ptr<SolidColorLayerImpl> root_layer = | 810 scoped_ptr<SolidColorLayerImpl> root_layer = |
| 819 SolidColorLayerImpl::Create(host_impl_->active_tree(), 1); | 811 SolidColorLayerImpl::Create(host_impl_->active_tree(), 1); |
| 820 | 812 |
| 821 - // VideoLayerImpl will not be drawn. | 813 - // VideoLayerImpl will not be drawn. |
| 822 - FakeVideoFrameProvider provider; | 814 - FakeVideoFrameProvider provider; |
| 823 - scoped_ptr<VideoLayerImpl> video_layer = VideoLayerImpl::Create( | 815 - scoped_ptr<VideoLayerImpl> video_layer = VideoLayerImpl::Create( |
| 824 - host_impl_->active_tree(), 2, &provider, media::VIDEO_ROTATION_0); | 816 - host_impl_->active_tree(), 2, &provider, media::VIDEO_ROTATION_0); |
| 825 - video_layer->SetBounds(gfx::Size(10, 10)); | 817 - video_layer->SetBounds(gfx::Size(10, 10)); |
| 826 - video_layer->SetContentBounds(gfx::Size(10, 10)); | 818 - video_layer->SetContentBounds(gfx::Size(10, 10)); |
| 827 - video_layer->SetDrawsContent(true); | 819 - video_layer->SetDrawsContent(true); |
| 828 - root_layer->AddChild(video_layer.Pass()); | 820 - root_layer->AddChild(video_layer.Pass()); |
| 829 - SetupRootLayerImpl(root_layer.Pass()); | 821 - SetupRootLayerImpl(root_layer.Pass()); |
| 830 - | 822 - |
| 831 LayerTreeHostImpl::FrameData frame; | 823 LayerTreeHostImpl::FrameData frame; |
| 832 EXPECT_EQ(DRAW_SUCCESS, host_impl_->PrepareToDraw(&frame)); | 824 EXPECT_EQ(DRAW_SUCCESS, host_impl_->PrepareToDraw(&frame)); |
| 833 host_impl_->DrawLayers(&frame, gfx::FrameTime::Now()); | 825 host_impl_->DrawLayers(&frame, gfx::FrameTime::Now()); |
| 834 diff --git a/cc/trees/layer_tree_host_unittest.cc b/cc/trees/layer_tree_host_uni
ttest.cc | 826 diff --git a/cc/trees/layer_tree_host_unittest.cc b/cc/trees/layer_tree_host_uni
ttest.cc |
| 835 index 48be5b8..f9b690d 100644 | 827 index c52132e..1be61a5 100644 |
| 836 --- a/cc/trees/layer_tree_host_unittest.cc | 828 --- a/cc/trees/layer_tree_host_unittest.cc |
| 837 +++ b/cc/trees/layer_tree_host_unittest.cc | 829 +++ b/cc/trees/layer_tree_host_unittest.cc |
| 838 @@ -18,7 +18,6 @@ | 830 @@ -18,7 +18,6 @@ |
| 839 #include "cc/layers/painted_scrollbar_layer.h" | 831 #include "cc/layers/painted_scrollbar_layer.h" |
| 840 #include "cc/layers/picture_layer.h" | 832 #include "cc/layers/picture_layer.h" |
| 841 #include "cc/layers/solid_color_layer.h" | 833 #include "cc/layers/solid_color_layer.h" |
| 842 -#include "cc/layers/video_layer.h" | 834 -#include "cc/layers/video_layer.h" |
| 843 #include "cc/output/begin_frame_args.h" | 835 #include "cc/output/begin_frame_args.h" |
| 844 #include "cc/output/compositor_frame_ack.h" | 836 #include "cc/output/compositor_frame_ack.h" |
| 845 #include "cc/output/copy_output_request.h" | 837 #include "cc/output/copy_output_request.h" |
| 846 @@ -41,7 +40,6 @@ | 838 @@ -41,7 +40,6 @@ |
| 847 #include "cc/test/fake_picture_pile.h" | 839 #include "cc/test/fake_picture_pile.h" |
| 848 #include "cc/test/fake_proxy.h" | 840 #include "cc/test/fake_proxy.h" |
| 849 #include "cc/test/fake_scoped_ui_resource.h" | 841 #include "cc/test/fake_scoped_ui_resource.h" |
| 850 -#include "cc/test/fake_video_frame_provider.h" | 842 -#include "cc/test/fake_video_frame_provider.h" |
| 851 #include "cc/test/geometry_test_utils.h" | 843 #include "cc/test/geometry_test_utils.h" |
| 852 #include "cc/test/impl_side_painting_settings.h" | 844 #include "cc/test/impl_side_painting_settings.h" |
| 853 #include "cc/test/layer_tree_test.h" | 845 #include "cc/test/layer_tree_test.h" |
| 854 @@ -4167,28 +4165,6 @@ class LayerInvalidateCausesDraw : public LayerTreeHostTes
t { | 846 @@ -4163,28 +4161,6 @@ class LayerInvalidateCausesDraw : public LayerTreeHostTes
t { |
| 855 int num_draws_; | 847 int num_draws_; |
| 856 }; | 848 }; |
| 857 | 849 |
| 858 -// VideoLayer must support being invalidated and then passing that along | 850 -// VideoLayer must support being invalidated and then passing that along |
| 859 -// to the compositor thread, even though no resources are updated in | 851 -// to the compositor thread, even though no resources are updated in |
| 860 -// response to that invalidation. | 852 -// response to that invalidation. |
| 861 -class LayerTreeHostTestVideoLayerInvalidate : public LayerInvalidateCausesDraw
{ | 853 -class LayerTreeHostTestVideoLayerInvalidate : public LayerInvalidateCausesDraw
{ |
| 862 - public: | 854 - public: |
| 863 - void SetupTree() override { | 855 - void SetupTree() override { |
| 864 - LayerTreeHostTest::SetupTree(); | 856 - LayerTreeHostTest::SetupTree(); |
| 865 - scoped_refptr<VideoLayer> video_layer = | 857 - scoped_refptr<VideoLayer> video_layer = |
| 866 - VideoLayer::Create(&provider_, media::VIDEO_ROTATION_0); | 858 - VideoLayer::Create(&provider_, media::VIDEO_ROTATION_0); |
| 867 - video_layer->SetBounds(gfx::Size(10, 10)); | 859 - video_layer->SetBounds(gfx::Size(10, 10)); |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 901 #include "cc/test/layer_tree_test.h" | 893 #include "cc/test/layer_tree_test.h" |
| 902 #include "cc/test/render_pass_test_common.h" | 894 #include "cc/test/render_pass_test_common.h" |
| 903 #include "cc/test/test_context_provider.h" | 895 #include "cc/test/test_context_provider.h" |
| 904 @@ -43,9 +40,6 @@ | 896 @@ -43,9 +40,6 @@ |
| 905 #include "cc/trees/layer_tree_impl.h" | 897 #include "cc/trees/layer_tree_impl.h" |
| 906 #include "cc/trees/single_thread_proxy.h" | 898 #include "cc/trees/single_thread_proxy.h" |
| 907 #include "gpu/GLES2/gl2extchromium.h" | 899 #include "gpu/GLES2/gl2extchromium.h" |
| 908 -#include "media/base/media.h" | 900 -#include "media/base/media.h" |
| 909 - | 901 - |
| 910 -using media::VideoFrame; | 902 -using media::VideoFrame; |
| 911 | 903 |
| 912 namespace cc { | 904 namespace cc { |
| 913 namespace { | 905 namespace { |
| 914 @@ -66,7 +60,6 @@ class LayerTreeHostContextTest : public LayerTreeTest { | 906 @@ -66,7 +60,6 @@ class LayerTreeHostContextTest : public LayerTreeTest { |
| 915 context_should_support_io_surface_(false), | 907 context_should_support_io_surface_(false), |
| 916 fallback_context_works_(false), | 908 fallback_context_works_(false), |
| 917 async_output_surface_creation_(false) { | 909 async_output_surface_creation_(false) { |
| 918 - media::InitializeMediaLibraryForTesting(); | 910 - media::InitializeMediaLibraryForTesting(); |
| 919 } | 911 } |
| 920 | 912 |
| 921 void LoseContext() { | 913 void LoseContext() { |
| 922 @@ -1055,41 +1048,6 @@ class LayerTreeHostContextTestDontUseLostResources | 914 @@ -1055,41 +1048,6 @@ class LayerTreeHostContextTestDontUseLostResources |
| 923 layer_with_mask->SetMaskLayer(mask.get()); | 915 layer_with_mask->SetMaskLayer(mask.get()); |
| 924 root->AddChild(layer_with_mask); | 916 root->AddChild(layer_with_mask); |
| 925 | 917 |
| 926 - scoped_refptr<VideoLayer> video_color = | 918 - scoped_refptr<VideoLayer> video_color = |
| 927 - VideoLayer::Create(&color_frame_provider_, media::VIDEO_ROTATION_0); | 919 - VideoLayer::Create(&color_frame_provider_, media::VIDEO_ROTATION_0); |
| 928 - video_color->SetBounds(gfx::Size(10, 10)); | 920 - video_color->SetBounds(gfx::Size(10, 10)); |
| 929 - video_color->SetIsDrawable(true); | 921 - video_color->SetIsDrawable(true); |
| 930 - root->AddChild(video_color); | 922 - root->AddChild(video_color); |
| 931 - | 923 - |
| 932 - scoped_refptr<VideoLayer> video_hw = | 924 - scoped_refptr<VideoLayer> video_hw = |
| 933 - VideoLayer::Create(&hw_frame_provider_, media::VIDEO_ROTATION_0); | 925 - VideoLayer::Create(&hw_frame_provider_, media::VIDEO_ROTATION_0); |
| 934 - video_hw->SetBounds(gfx::Size(10, 10)); | 926 - video_hw->SetBounds(gfx::Size(10, 10)); |
| 935 - video_hw->SetIsDrawable(true); | 927 - video_hw->SetIsDrawable(true); |
| (...skipping 19 matching lines...) Expand all Loading... |
| 955 - gfx::Rect(0, 0, 3, 2), gfx::Size(4, 4), base::TimeDelta(), false); | 947 - gfx::Rect(0, 0, 3, 2), gfx::Size(4, 4), base::TimeDelta(), false); |
| 956 - | 948 - |
| 957 - color_frame_provider_.set_frame(color_video_frame_); | 949 - color_frame_provider_.set_frame(color_video_frame_); |
| 958 - hw_frame_provider_.set_frame(hw_video_frame_); | 950 - hw_frame_provider_.set_frame(hw_video_frame_); |
| 959 - scaled_hw_frame_provider_.set_frame(scaled_hw_video_frame_); | 951 - scaled_hw_frame_provider_.set_frame(scaled_hw_video_frame_); |
| 960 - | 952 - |
| 961 if (!delegating_renderer()) { | 953 if (!delegating_renderer()) { |
| 962 // TODO(danakj): IOSurface layer can not be transported. crbug.com/239335 | 954 // TODO(danakj): IOSurface layer can not be transported. crbug.com/239335 |
| 963 scoped_refptr<IOSurfaceLayer> io_surface = IOSurfaceLayer::Create(); | 955 scoped_refptr<IOSurfaceLayer> io_surface = IOSurfaceLayer::Create(); |
| 964 @@ -1119,14 +1077,6 @@ class LayerTreeHostContextTestDontUseLostResources | 956 @@ -1119,14 +1077,6 @@ class LayerTreeHostContextTestDontUseLostResources |
| 965 | 957 |
| 966 void CommitCompleteOnThread(LayerTreeHostImpl* host_impl) override { | 958 void CommitCompleteOnThread(LayerTreeHostImpl* host_impl) override { |
| 967 LayerTreeHostContextTest::CommitCompleteOnThread(host_impl); | 959 LayerTreeHostContextTest::CommitCompleteOnThread(host_impl); |
| 968 - | 960 - |
| 969 - if (host_impl->active_tree()->source_frame_number() == 3) { | 961 - if (host_impl->active_tree()->source_frame_number() == 3) { |
| 970 - // On the third commit we're recovering from context loss. Hardware | 962 - // On the third commit we're recovering from context loss. Hardware |
| 971 - // video frames should not be reused by the VideoFrameProvider, but | 963 - // video frames should not be reused by the VideoFrameProvider, but |
| 972 - // software frames can be. | 964 - // software frames can be. |
| 973 - hw_frame_provider_.set_frame(NULL); | 965 - hw_frame_provider_.set_frame(NULL); |
| 974 - scaled_hw_frame_provider_.set_frame(NULL); | 966 - scaled_hw_frame_provider_.set_frame(NULL); |
| 975 - } | 967 - } |
| 976 } | 968 } |
| 977 | 969 |
| 978 DrawResult PrepareToDrawOnThread(LayerTreeHostImpl* host_impl, | 970 DrawResult PrepareToDrawOnThread(LayerTreeHostImpl* host_impl, |
| 979 @@ -1175,14 +1125,6 @@ class LayerTreeHostContextTestDontUseLostResources | 971 @@ -1175,14 +1125,6 @@ class LayerTreeHostContextTestDontUseLostResources |
| 980 scoped_refptr<DelegatedFrameResourceCollection> | 972 scoped_refptr<DelegatedFrameResourceCollection> |
| 981 delegated_resource_collection_; | 973 delegated_resource_collection_; |
| 982 scoped_refptr<DelegatedFrameProvider> delegated_frame_provider_; | 974 scoped_refptr<DelegatedFrameProvider> delegated_frame_provider_; |
| 983 - | 975 - |
| 984 - scoped_refptr<VideoFrame> color_video_frame_; | 976 - scoped_refptr<VideoFrame> color_video_frame_; |
| 985 - scoped_refptr<VideoFrame> hw_video_frame_; | 977 - scoped_refptr<VideoFrame> hw_video_frame_; |
| 986 - scoped_refptr<VideoFrame> scaled_hw_video_frame_; | 978 - scoped_refptr<VideoFrame> scaled_hw_video_frame_; |
| 987 - | 979 - |
| 988 - FakeVideoFrameProvider color_frame_provider_; | 980 - FakeVideoFrameProvider color_frame_provider_; |
| 989 - FakeVideoFrameProvider hw_frame_provider_; | 981 - FakeVideoFrameProvider hw_frame_provider_; |
| 990 - FakeVideoFrameProvider scaled_hw_frame_provider_; | 982 - FakeVideoFrameProvider scaled_hw_frame_provider_; |
| 991 }; | 983 }; |
| 992 | 984 |
| 993 SINGLE_AND_MULTI_THREAD_TEST_F(LayerTreeHostContextTestDontUseLostResources); | 985 SINGLE_AND_MULTI_THREAD_TEST_F(LayerTreeHostContextTestDontUseLostResources); |
| OLD | NEW |