Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(611)

Side by Side Diff: mojo/tools/roll/cc_strip_video.patch

Issue 706203003: Update from https://crrev.com/303153 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 diff --git a/cc/BUILD.gn b/cc/BUILD.gn 1 diff --git a/cc/BUILD.gn b/cc/BUILD.gn
2 index 24c5833..8cb8e8a 100644 2 index 9b417f0..f753895 100644
3 --- a/cc/BUILD.gn 3 --- a/cc/BUILD.gn
4 +++ b/cc/BUILD.gn 4 +++ b/cc/BUILD.gn
5 @@ -208,13 +208,6 @@ component("cc") { 5 @@ -208,13 +208,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",
13 - "layers/video_layer.h", 13 - "layers/video_layer.h",
14 - "layers/video_layer_impl.cc", 14 - "layers/video_layer_impl.cc",
15 - "layers/video_layer_impl.h", 15 - "layers/video_layer_impl.h",
16 "output/begin_frame_args.cc", 16 "output/begin_frame_args.cc",
17 "output/begin_frame_args.h", 17 "output/begin_frame_args.h",
18 "output/bsp_tree.cc", 18 "output/bsp_tree.cc",
19 @@ -426,8 +419,6 @@ component("cc") { 19 @@ -427,8 +420,6 @@ component("cc") {
20 "resources/ui_resource_client.h", 20 "resources/ui_resource_client.h",
21 "resources/ui_resource_request.cc", 21 "resources/ui_resource_request.cc",
22 "resources/ui_resource_request.h", 22 "resources/ui_resource_request.h",
23 - "resources/video_resource_updater.cc", 23 - "resources/video_resource_updater.cc",
24 - "resources/video_resource_updater.h", 24 - "resources/video_resource_updater.h",
25 "resources/zero_copy_raster_worker_pool.cc", 25 "resources/zero_copy_raster_worker_pool.cc",
26 "resources/zero_copy_raster_worker_pool.h", 26 "resources/zero_copy_raster_worker_pool.h",
27 "scheduler/begin_frame_source.cc", 27 "scheduler/begin_frame_source.cc",
28 @@ -489,7 +480,6 @@ component("cc") { 28 @@ -490,7 +481,6 @@ component("cc") {
29 "//gpu", 29 "//gpu",
30 "//gpu/command_buffer/client:gles2_interface", 30 "//gpu/command_buffer/client:gles2_interface",
31 "//gpu/command_buffer/client:gpu_memory_buffer_manager", 31 "//gpu/command_buffer/client:gpu_memory_buffer_manager",
32 - "//media", 32 - "//media",
33 "//ui/events:events_base", 33 "//ui/events:events_base",
34 "//ui/gfx", 34 "//ui/gfx",
35 "//ui/gfx/geometry", 35 "//ui/gfx/geometry",
36 @@ -558,8 +548,6 @@ source_set("test_support") { 36 @@ -559,8 +549,6 @@ source_set("test_support") {
37 "test/fake_tile_manager_client.h", 37 "test/fake_tile_manager_client.h",
38 "test/fake_ui_resource_layer_tree_host_impl.cc", 38 "test/fake_ui_resource_layer_tree_host_impl.cc",
39 "test/fake_ui_resource_layer_tree_host_impl.h", 39 "test/fake_ui_resource_layer_tree_host_impl.h",
40 - "test/fake_video_frame_provider.cc", 40 - "test/fake_video_frame_provider.cc",
41 - "test/fake_video_frame_provider.h", 41 - "test/fake_video_frame_provider.h",
42 "test/geometry_test_utils.cc", 42 "test/geometry_test_utils.cc",
43 "test/geometry_test_utils.h", 43 "test/geometry_test_utils.h",
44 "test/test_in_process_context_provider.cc", 44 "test/test_in_process_context_provider.cc",
45 @@ -707,7 +695,6 @@ test("cc_unittests") { 45 @@ -713,7 +701,6 @@ test("cc_unittests") {
46 "layers/tiled_layer_unittest.cc", 46 "layers/tiled_layer_unittest.cc",
47 "layers/ui_resource_layer_impl_unittest.cc", 47 "layers/ui_resource_layer_impl_unittest.cc",
48 "layers/ui_resource_layer_unittest.cc", 48 "layers/ui_resource_layer_unittest.cc",
49 - "layers/video_layer_impl_unittest.cc", 49 - "layers/video_layer_impl_unittest.cc",
50 "output/begin_frame_args_unittest.cc", 50 "output/begin_frame_args_unittest.cc",
51 "output/delegating_renderer_unittest.cc", 51 "output/delegating_renderer_unittest.cc",
52 "output/filter_operations_unittest.cc", 52 "output/filter_operations_unittest.cc",
53 @@ -737,7 +724,6 @@ test("cc_unittests") { 53 @@ -743,7 +730,6 @@ test("cc_unittests") {
54 "resources/texture_uploader_unittest.cc", 54 "resources/texture_uploader_unittest.cc",
55 "resources/tile_manager_unittest.cc", 55 "resources/tile_manager_unittest.cc",
56 "resources/tile_priority_unittest.cc", 56 "resources/tile_priority_unittest.cc",
57 - "resources/video_resource_updater_unittest.cc", 57 - "resources/video_resource_updater_unittest.cc",
58 "scheduler/begin_frame_source_unittest.cc", 58 "scheduler/begin_frame_source_unittest.cc",
59 "scheduler/delay_based_time_source_unittest.cc", 59 "scheduler/delay_based_time_source_unittest.cc",
60 "scheduler/scheduler_state_machine_unittest.cc", 60 "scheduler/scheduler_state_machine_unittest.cc",
61 @@ -765,7 +751,6 @@ test("cc_unittests") { 61 @@ -772,7 +758,6 @@ test("cc_unittests") {
62 "trees/layer_tree_host_unittest_picture.cc", 62 "trees/layer_tree_host_unittest_picture.cc",
63 "trees/layer_tree_host_unittest_proxy.cc", 63 "trees/layer_tree_host_unittest_proxy.cc",
64 "trees/layer_tree_host_unittest_scroll.cc", 64 "trees/layer_tree_host_unittest_scroll.cc",
65 - "trees/layer_tree_host_unittest_video.cc", 65 - "trees/layer_tree_host_unittest_video.cc",
66 "trees/layer_tree_impl_unittest.cc", 66 "trees/layer_tree_impl_unittest.cc",
67 "trees/occlusion_tracker_unittest.cc", 67 "trees/occlusion_tracker_unittest.cc",
68 "trees/occlusion_unittest.cc", 68 "trees/occlusion_unittest.cc",
69 @@ -792,7 +777,6 @@ test("cc_unittests") { 69 @@ -799,7 +784,6 @@ test("cc_unittests") {
70 "//gpu:test_support", 70 "//gpu:test_support",
71 "//gpu/command_buffer/client:gles2_interface", 71 "//gpu/command_buffer/client:gles2_interface",
72 "//gpu/command_buffer/common:gles2_utils", 72 "//gpu/command_buffer/common:gles2_utils",
73 - "//media", 73 - "//media",
74 "//testing/gmock", 74 "//testing/gmock",
75 "//testing/gtest", 75 "//testing/gtest",
76 "//ui/events:events_base", 76 "//ui/events:events_base",
77 @@ -824,7 +808,6 @@ test("cc_perftests") { 77 @@ -831,7 +815,6 @@ test("cc_perftests") {
78 "//gpu", 78 "//gpu",
79 "//gpu:test_support", 79 "//gpu:test_support",
80 "//gpu/command_buffer/common:gles2_utils", 80 "//gpu/command_buffer/common:gles2_utils",
81 - "//media", 81 - "//media",
82 "//skia", 82 "//skia",
83 "//testing/gmock", 83 "//testing/gmock",
84 "//testing/gtest", 84 "//testing/gtest",
85 diff --git a/cc/layers/video_frame_provider.h b/cc/layers/video_frame_provider.h 85 diff --git a/cc/layers/video_frame_provider.h b/cc/layers/video_frame_provider.h
86 deleted file mode 100644 86 deleted file mode 100644
87 index 784d951..0000000 87 index 784d951..0000000
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 - matrix[0], matrix[4], matrix[8], matrix[12], 246 - matrix[0], matrix[4], matrix[8], matrix[12],
247 - matrix[1], matrix[5], matrix[9], matrix[13], 247 - matrix[1], matrix[5], matrix[9], matrix[13],
248 - matrix[2], matrix[6], matrix[10], matrix[14], 248 - matrix[2], matrix[6], matrix[10], matrix[14],
249 - matrix[3], matrix[7], matrix[11], matrix[15]); 249 - matrix[3], matrix[7], matrix[11], matrix[15]);
250 - if (active_video_layer_) 250 - if (active_video_layer_)
251 - active_video_layer_->SetNeedsRedraw(); 251 - active_video_layer_->SetNeedsRedraw();
252 -} 252 -}
253 - 253 -
254 -} // namespace cc 254 -} // namespace cc
255 diff --git a/cc/output/gl_renderer.cc b/cc/output/gl_renderer.cc 255 diff --git a/cc/output/gl_renderer.cc b/cc/output/gl_renderer.cc
256 index a302f7e..b93ddcf 100644 256 index a472475..4eb1324 100644
257 --- a/cc/output/gl_renderer.cc 257 --- a/cc/output/gl_renderer.cc
258 +++ b/cc/output/gl_renderer.cc 258 +++ b/cc/output/gl_renderer.cc
259 @@ -13,7 +13,6 @@ 259 @@ -13,7 +13,6 @@
260 #include "base/debug/trace_event.h" 260 #include "base/debug/trace_event.h"
261 #include "base/logging.h" 261 #include "base/logging.h"
262 #include "cc/base/math_util.h" 262 #include "cc/base/math_util.h"
263 -#include "cc/layers/video_layer_impl.h" 263 -#include "cc/layers/video_layer_impl.h"
264 #include "cc/output/compositor_frame.h" 264 #include "cc/output/compositor_frame.h"
265 #include "cc/output/compositor_frame_metadata.h" 265 #include "cc/output/compositor_frame_metadata.h"
266 #include "cc/output/context_provider.h" 266 #include "cc/output/context_provider.h"
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after
629 +++ b/cc/quads/yuv_video_draw_quad.h 629 +++ b/cc/quads/yuv_video_draw_quad.h
630 @@ -8,7 +8,6 @@ 630 @@ -8,7 +8,6 @@
631 #include "base/basictypes.h" 631 #include "base/basictypes.h"
632 #include "base/memory/scoped_ptr.h" 632 #include "base/memory/scoped_ptr.h"
633 #include "cc/base/cc_export.h" 633 #include "cc/base/cc_export.h"
634 -#include "cc/layers/video_layer_impl.h" 634 -#include "cc/layers/video_layer_impl.h"
635 #include "cc/quads/draw_quad.h" 635 #include "cc/quads/draw_quad.h"
636 636
637 namespace cc { 637 namespace cc {
638 diff --git a/cc/trees/layer_tree_host_impl_unittest.cc b/cc/trees/layer_tree_hos t_impl_unittest.cc 638 diff --git a/cc/trees/layer_tree_host_impl_unittest.cc b/cc/trees/layer_tree_hos t_impl_unittest.cc
639 index fb23ba6..8e7fa0f 100644 639 index 9395639..5d2d939 100644
640 --- a/cc/trees/layer_tree_host_impl_unittest.cc 640 --- a/cc/trees/layer_tree_host_impl_unittest.cc
641 +++ b/cc/trees/layer_tree_host_impl_unittest.cc 641 +++ b/cc/trees/layer_tree_host_impl_unittest.cc
642 @@ -27,7 +27,6 @@ 642 @@ -27,7 +27,6 @@
643 #include "cc/layers/solid_color_scrollbar_layer_impl.h" 643 #include "cc/layers/solid_color_scrollbar_layer_impl.h"
644 #include "cc/layers/texture_layer_impl.h" 644 #include "cc/layers/texture_layer_impl.h"
645 #include "cc/layers/tiled_layer_impl.h" 645 #include "cc/layers/tiled_layer_impl.h"
646 -#include "cc/layers/video_layer_impl.h" 646 -#include "cc/layers/video_layer_impl.h"
647 #include "cc/output/begin_frame_args.h" 647 #include "cc/output/begin_frame_args.h"
648 #include "cc/output/compositor_frame_ack.h" 648 #include "cc/output/compositor_frame_ack.h"
649 #include "cc/output/compositor_frame_metadata.h" 649 #include "cc/output/compositor_frame_metadata.h"
650 @@ -48,7 +47,6 @@ 650 @@ -47,7 +46,6 @@
651 #include "cc/test/fake_picture_layer_impl.h"
651 #include "cc/test/fake_picture_pile_impl.h" 652 #include "cc/test/fake_picture_pile_impl.h"
652 #include "cc/test/fake_proxy.h" 653 #include "cc/test/fake_proxy.h"
653 #include "cc/test/fake_rendering_stats_instrumentation.h"
654 -#include "cc/test/fake_video_frame_provider.h" 654 -#include "cc/test/fake_video_frame_provider.h"
655 #include "cc/test/geometry_test_utils.h" 655 #include "cc/test/geometry_test_utils.h"
656 #include "cc/test/layer_test_common.h" 656 #include "cc/test/layer_test_common.h"
657 #include "cc/test/render_pass_test_common.h" 657 #include "cc/test/render_pass_test_common.h"
658 @@ -57,7 +55,6 @@ 658 @@ -56,7 +54,6 @@
659 #include "cc/test/test_web_graphics_context_3d.h" 659 #include "cc/test/test_web_graphics_context_3d.h"
660 #include "cc/trees/layer_tree_impl.h" 660 #include "cc/trees/layer_tree_impl.h"
661 #include "cc/trees/single_thread_proxy.h" 661 #include "cc/trees/single_thread_proxy.h"
662 -#include "media/base/media.h" 662 -#include "media/base/media.h"
663 #include "testing/gmock/include/gmock/gmock.h" 663 #include "testing/gmock/include/gmock/gmock.h"
664 #include "testing/gtest/include/gtest/gtest.h" 664 #include "testing/gtest/include/gtest/gtest.h"
665 #include "third_party/skia/include/core/SkMallocPixelRef.h" 665 #include "third_party/skia/include/core/SkMallocPixelRef.h"
666 @@ -71,7 +68,6 @@ using ::testing::Return; 666 @@ -70,7 +67,6 @@ using ::testing::Return;
667 using ::testing::AnyNumber; 667 using ::testing::AnyNumber;
668 using ::testing::AtLeast; 668 using ::testing::AtLeast;
669 using ::testing::_; 669 using ::testing::_;
670 -using media::VideoFrame; 670 -using media::VideoFrame;
671 671
672 namespace cc { 672 namespace cc {
673 namespace { 673 namespace {
674 @@ -96,7 +92,6 @@ class LayerTreeHostImplTest : public testing::Test, 674 @@ -95,7 +91,6 @@ class LayerTreeHostImplTest : public testing::Test,
675 reduce_memory_result_(true), 675 reduce_memory_result_(true),
676 current_limit_bytes_(0), 676 current_limit_bytes_(0),
677 current_priority_cutoff_value_(0) { 677 current_priority_cutoff_value_(0) {
678 - media::InitializeMediaLibraryForTesting(); 678 - media::InitializeMediaLibraryForTesting();
679 } 679 }
680 680
681 LayerTreeSettings DefaultSettings() { 681 LayerTreeSettings DefaultSettings() {
682 @@ -5090,18 +5085,6 @@ TEST_F(LayerTreeHostImplTest, LayersFreeTextures) { 682 @@ -5066,18 +5061,6 @@ TEST_F(LayerTreeHostImplTest, LayersFreeTextures) {
683 LayerImpl::Create(host_impl_->active_tree(), 1); 683 LayerImpl::Create(host_impl_->active_tree(), 1);
684 root_layer->SetBounds(gfx::Size(10, 10)); 684 root_layer->SetBounds(gfx::Size(10, 10));
685 685
686 - scoped_refptr<VideoFrame> softwareFrame = 686 - scoped_refptr<VideoFrame> softwareFrame =
687 - media::VideoFrame::CreateColorFrame( 687 - media::VideoFrame::CreateColorFrame(
688 - gfx::Size(4, 4), 0x80, 0x80, 0x80, base::TimeDelta()); 688 - gfx::Size(4, 4), 0x80, 0x80, 0x80, base::TimeDelta());
689 - FakeVideoFrameProvider provider; 689 - FakeVideoFrameProvider provider;
690 - provider.set_frame(softwareFrame); 690 - provider.set_frame(softwareFrame);
691 - scoped_ptr<VideoLayerImpl> video_layer = VideoLayerImpl::Create( 691 - scoped_ptr<VideoLayerImpl> video_layer = VideoLayerImpl::Create(
692 - host_impl_->active_tree(), 4, &provider, media::VIDEO_ROTATION_0); 692 - host_impl_->active_tree(), 4, &provider, media::VIDEO_ROTATION_0);
693 - video_layer->SetBounds(gfx::Size(10, 10)); 693 - video_layer->SetBounds(gfx::Size(10, 10));
694 - video_layer->SetContentBounds(gfx::Size(10, 10)); 694 - video_layer->SetContentBounds(gfx::Size(10, 10));
695 - video_layer->SetDrawsContent(true); 695 - video_layer->SetDrawsContent(true);
696 - root_layer->AddChild(video_layer.Pass()); 696 - root_layer->AddChild(video_layer.Pass());
697 - 697 -
698 scoped_ptr<IOSurfaceLayerImpl> io_surface_layer = 698 scoped_ptr<IOSurfaceLayerImpl> io_surface_layer =
699 IOSurfaceLayerImpl::Create(host_impl_->active_tree(), 5); 699 IOSurfaceLayerImpl::Create(host_impl_->active_tree(), 5);
700 io_surface_layer->SetBounds(gfx::Size(10, 10)); 700 io_surface_layer->SetBounds(gfx::Size(10, 10));
701 @@ -6165,16 +6148,6 @@ TEST_F(LayerTreeHostImplTest, 701 @@ -6139,16 +6122,6 @@ TEST_F(LayerTreeHostImplTest,
702 scoped_ptr<SolidColorLayerImpl> root_layer = 702 scoped_ptr<SolidColorLayerImpl> root_layer =
703 SolidColorLayerImpl::Create(host_impl_->active_tree(), 1); 703 SolidColorLayerImpl::Create(host_impl_->active_tree(), 1);
704 704
705 - // VideoLayerImpl will not be drawn. 705 - // VideoLayerImpl will not be drawn.
706 - FakeVideoFrameProvider provider; 706 - FakeVideoFrameProvider provider;
707 - scoped_ptr<VideoLayerImpl> video_layer = VideoLayerImpl::Create( 707 - scoped_ptr<VideoLayerImpl> video_layer = VideoLayerImpl::Create(
708 - host_impl_->active_tree(), 2, &provider, media::VIDEO_ROTATION_0); 708 - host_impl_->active_tree(), 2, &provider, media::VIDEO_ROTATION_0);
709 - video_layer->SetBounds(gfx::Size(10, 10)); 709 - video_layer->SetBounds(gfx::Size(10, 10));
710 - video_layer->SetContentBounds(gfx::Size(10, 10)); 710 - video_layer->SetContentBounds(gfx::Size(10, 10));
711 - video_layer->SetDrawsContent(true); 711 - video_layer->SetDrawsContent(true);
712 - root_layer->AddChild(video_layer.Pass()); 712 - root_layer->AddChild(video_layer.Pass());
713 - SetupRootLayerImpl(root_layer.Pass()); 713 - SetupRootLayerImpl(root_layer.Pass());
714 - 714 -
715 LayerTreeHostImpl::FrameData frame; 715 LayerTreeHostImpl::FrameData frame;
716 EXPECT_EQ(DRAW_SUCCESS, host_impl_->PrepareToDraw(&frame)); 716 EXPECT_EQ(DRAW_SUCCESS, host_impl_->PrepareToDraw(&frame));
717 host_impl_->DrawLayers(&frame, gfx::FrameTime::Now()); 717 host_impl_->DrawLayers(&frame, gfx::FrameTime::Now());
718 diff --git a/cc/trees/layer_tree_host_unittest.cc b/cc/trees/layer_tree_host_uni ttest.cc 718 diff --git a/cc/trees/layer_tree_host_unittest.cc b/cc/trees/layer_tree_host_uni ttest.cc
719 index 8d554dc..d15c6a3 100644 719 index aedd0d9..0859d86 100644
720 --- a/cc/trees/layer_tree_host_unittest.cc 720 --- a/cc/trees/layer_tree_host_unittest.cc
721 +++ b/cc/trees/layer_tree_host_unittest.cc 721 +++ b/cc/trees/layer_tree_host_unittest.cc
722 @@ -18,7 +18,6 @@ 722 @@ -18,7 +18,6 @@
723 #include "cc/layers/painted_scrollbar_layer.h" 723 #include "cc/layers/painted_scrollbar_layer.h"
724 #include "cc/layers/picture_layer.h" 724 #include "cc/layers/picture_layer.h"
725 #include "cc/layers/solid_color_layer.h" 725 #include "cc/layers/solid_color_layer.h"
726 -#include "cc/layers/video_layer.h" 726 -#include "cc/layers/video_layer.h"
727 #include "cc/output/begin_frame_args.h" 727 #include "cc/output/begin_frame_args.h"
728 #include "cc/output/compositor_frame_ack.h" 728 #include "cc/output/compositor_frame_ack.h"
729 #include "cc/output/copy_output_request.h" 729 #include "cc/output/copy_output_request.h"
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
876 - scoped_refptr<VideoFrame> color_video_frame_; 876 - scoped_refptr<VideoFrame> color_video_frame_;
877 - scoped_refptr<VideoFrame> hw_video_frame_; 877 - scoped_refptr<VideoFrame> hw_video_frame_;
878 - scoped_refptr<VideoFrame> scaled_hw_video_frame_; 878 - scoped_refptr<VideoFrame> scaled_hw_video_frame_;
879 - 879 -
880 - FakeVideoFrameProvider color_frame_provider_; 880 - FakeVideoFrameProvider color_frame_provider_;
881 - FakeVideoFrameProvider hw_frame_provider_; 881 - FakeVideoFrameProvider hw_frame_provider_;
882 - FakeVideoFrameProvider scaled_hw_frame_provider_; 882 - FakeVideoFrameProvider scaled_hw_frame_provider_;
883 }; 883 };
884 884
885 SINGLE_AND_MULTI_THREAD_TEST_F(LayerTreeHostContextTestDontUseLostResources); 885 SINGLE_AND_MULTI_THREAD_TEST_F(LayerTreeHostContextTestDontUseLostResources);
OLDNEW
« no previous file with comments | « mojo/services/gles2/command_buffer_type_conversions.cc ('k') | mojo/tools/roll/skia_build.patch » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698