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 "cc/output/gl_renderer.h" | 5 #include "cc/output/gl_renderer.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 | 8 |
9 #include "cc/base/math_util.h" | 9 #include "cc/base/math_util.h" |
10 #include "cc/output/compositor_frame_metadata.h" | 10 #include "cc/output/compositor_frame_metadata.h" |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 EXPECT_PROGRAM_VALID( | 89 EXPECT_PROGRAM_VALID( |
90 renderer()->GetRenderPassMaskColorMatrixProgramAA(precision)); | 90 renderer()->GetRenderPassMaskColorMatrixProgramAA(precision)); |
91 EXPECT_PROGRAM_VALID( | 91 EXPECT_PROGRAM_VALID( |
92 renderer()->GetRenderPassColorMatrixProgramAA(precision)); | 92 renderer()->GetRenderPassColorMatrixProgramAA(precision)); |
93 EXPECT_PROGRAM_VALID( | 93 EXPECT_PROGRAM_VALID( |
94 renderer()->GetRenderPassMaskColorMatrixProgram(precision)); | 94 renderer()->GetRenderPassMaskColorMatrixProgram(precision)); |
95 EXPECT_PROGRAM_VALID(renderer()->GetTextureProgram(precision)); | 95 EXPECT_PROGRAM_VALID(renderer()->GetTextureProgram(precision)); |
96 EXPECT_PROGRAM_VALID(renderer()->GetTextureProgramFlip(precision)); | 96 EXPECT_PROGRAM_VALID(renderer()->GetTextureProgramFlip(precision)); |
97 EXPECT_PROGRAM_VALID(renderer()->GetTextureIOSurfaceProgram(precision)); | 97 EXPECT_PROGRAM_VALID(renderer()->GetTextureIOSurfaceProgram(precision)); |
98 EXPECT_PROGRAM_VALID(renderer()->GetVideoYUVProgram(precision)); | 98 EXPECT_PROGRAM_VALID(renderer()->GetVideoYUVProgram(precision)); |
| 99 EXPECT_PROGRAM_VALID(renderer()->GetVideoYUVAProgram(precision)); |
99 // This is unlikely to be ever true in tests due to usage of osmesa. | 100 // This is unlikely to be ever true in tests due to usage of osmesa. |
100 if (renderer()->Capabilities().using_egl_image) | 101 if (renderer()->Capabilities().using_egl_image) |
101 EXPECT_PROGRAM_VALID(renderer()->GetVideoStreamTextureProgram(precision)); | 102 EXPECT_PROGRAM_VALID(renderer()->GetVideoStreamTextureProgram(precision)); |
102 else | 103 else |
103 EXPECT_FALSE(renderer()->GetVideoStreamTextureProgram(precision)); | 104 EXPECT_FALSE(renderer()->GetVideoStreamTextureProgram(precision)); |
104 } | 105 } |
105 }; | 106 }; |
106 | 107 |
107 namespace { | 108 namespace { |
108 | 109 |
(...skipping 1550 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1659 base::MessageLoop::current()->Run(); | 1660 base::MessageLoop::current()->Run(); |
1660 | 1661 |
1661 // The sync point should have happened. | 1662 // The sync point should have happened. |
1662 EXPECT_EQ(1, sync_point_callback_count); | 1663 EXPECT_EQ(1, sync_point_callback_count); |
1663 EXPECT_EQ(1, other_callback_count); | 1664 EXPECT_EQ(1, other_callback_count); |
1664 } | 1665 } |
1665 #endif // OS_ANDROID | 1666 #endif // OS_ANDROID |
1666 | 1667 |
1667 } // namespace | 1668 } // namespace |
1668 } // namespace cc | 1669 } // namespace cc |
OLD | NEW |