| 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 507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 518 opaque_rect, | 518 opaque_rect, |
| 519 rect, | 519 rect, |
| 520 tex_coord_rect, | 520 tex_coord_rect, |
| 521 y_resource, | 521 y_resource, |
| 522 u_resource, | 522 u_resource, |
| 523 v_resource, | 523 v_resource, |
| 524 a_resource, | 524 a_resource, |
| 525 color_space); | 525 color_space); |
| 526 } | 526 } |
| 527 | 527 |
| 528 virtual void SetUp() OVERRIDE { | 528 virtual void SetUp() override { |
| 529 GLRendererPixelTest::SetUp(); | 529 GLRendererPixelTest::SetUp(); |
| 530 video_resource_updater_.reset(new VideoResourceUpdater( | 530 video_resource_updater_.reset(new VideoResourceUpdater( |
| 531 output_surface_->context_provider(), resource_provider_.get())); | 531 output_surface_->context_provider(), resource_provider_.get())); |
| 532 } | 532 } |
| 533 | 533 |
| 534 private: | 534 private: |
| 535 scoped_ptr<VideoResourceUpdater> video_resource_updater_; | 535 scoped_ptr<VideoResourceUpdater> video_resource_updater_; |
| 536 }; | 536 }; |
| 537 | 537 |
| 538 TEST_F(VideoGLRendererPixelTest, SimpleYUVRect) { | 538 TEST_F(VideoGLRendererPixelTest, SimpleYUVRect) { |
| (...skipping 1662 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2201 EXPECT_TRUE(this->RunPixelTest( | 2201 EXPECT_TRUE(this->RunPixelTest( |
| 2202 &pass_list, | 2202 &pass_list, |
| 2203 base::FilePath(FILE_PATH_LITERAL("wrap_mode_repeat.png")), | 2203 base::FilePath(FILE_PATH_LITERAL("wrap_mode_repeat.png")), |
| 2204 FuzzyPixelOffByOneComparator(true))); | 2204 FuzzyPixelOffByOneComparator(true))); |
| 2205 } | 2205 } |
| 2206 | 2206 |
| 2207 #endif // !defined(OS_ANDROID) | 2207 #endif // !defined(OS_ANDROID) |
| 2208 | 2208 |
| 2209 } // namespace | 2209 } // namespace |
| 2210 } // namespace cc | 2210 } // namespace cc |
| OLD | NEW |