OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 "base/message_loop/message_loop.h" | 5 #include "base/message_loop/message_loop.h" |
6 #include "cc/layers/append_quads_data.h" | 6 #include "cc/layers/append_quads_data.h" |
7 #include "cc/output/gl_renderer.h" | 7 #include "cc/output/gl_renderer.h" |
8 #include "cc/quads/draw_quad.h" | 8 #include "cc/quads/draw_quad.h" |
9 #include "cc/quads/picture_draw_quad.h" | 9 #include "cc/quads/picture_draw_quad.h" |
10 #include "cc/quads/texture_draw_quad.h" | 10 #include "cc/quads/texture_draw_quad.h" |
(...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
529 y_resource, | 529 y_resource, |
530 u_resource, | 530 u_resource, |
531 v_resource, | 531 v_resource, |
532 a_resource, | 532 a_resource, |
533 color_space); | 533 color_space); |
534 } | 534 } |
535 | 535 |
536 virtual void SetUp() OVERRIDE { | 536 virtual void SetUp() OVERRIDE { |
537 GLRendererPixelTest::SetUp(); | 537 GLRendererPixelTest::SetUp(); |
538 video_resource_updater_.reset(new VideoResourceUpdater( | 538 video_resource_updater_.reset(new VideoResourceUpdater( |
539 output_surface_->context_provider().get(), resource_provider_.get())); | 539 output_surface_->context_provider(), resource_provider_.get())); |
540 } | 540 } |
541 | 541 |
542 private: | 542 private: |
543 scoped_ptr<VideoResourceUpdater> video_resource_updater_; | 543 scoped_ptr<VideoResourceUpdater> video_resource_updater_; |
544 }; | 544 }; |
545 | 545 |
546 TEST_F(VideoGLRendererPixelTest, SimpleYUVRect) { | 546 TEST_F(VideoGLRendererPixelTest, SimpleYUVRect) { |
547 gfx::Rect rect(this->device_viewport_size_); | 547 gfx::Rect rect(this->device_viewport_size_); |
548 | 548 |
549 RenderPassId id(1, 1); | 549 RenderPassId id(1, 1); |
(...skipping 1659 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2209 EXPECT_TRUE(this->RunPixelTest( | 2209 EXPECT_TRUE(this->RunPixelTest( |
2210 &pass_list, | 2210 &pass_list, |
2211 base::FilePath(FILE_PATH_LITERAL("wrap_mode_repeat.png")), | 2211 base::FilePath(FILE_PATH_LITERAL("wrap_mode_repeat.png")), |
2212 FuzzyPixelOffByOneComparator(true))); | 2212 FuzzyPixelOffByOneComparator(true))); |
2213 } | 2213 } |
2214 | 2214 |
2215 #endif // !defined(OS_ANDROID) | 2215 #endif // !defined(OS_ANDROID) |
2216 | 2216 |
2217 } // namespace | 2217 } // namespace |
2218 } // namespace cc | 2218 } // namespace cc |
OLD | NEW |