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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 renderer()->GetRenderPassColorMatrixProgram(precision)); | 87 renderer()->GetRenderPassColorMatrixProgram(precision)); |
88 EXPECT_PROGRAM_VALID( | 88 EXPECT_PROGRAM_VALID( |
89 renderer()->GetRenderPassMaskColorMatrixProgramAA(precision)); | 89 renderer()->GetRenderPassMaskColorMatrixProgramAA(precision)); |
90 EXPECT_PROGRAM_VALID( | 90 EXPECT_PROGRAM_VALID( |
91 renderer()->GetRenderPassColorMatrixProgramAA(precision)); | 91 renderer()->GetRenderPassColorMatrixProgramAA(precision)); |
92 EXPECT_PROGRAM_VALID( | 92 EXPECT_PROGRAM_VALID( |
93 renderer()->GetRenderPassMaskColorMatrixProgram(precision)); | 93 renderer()->GetRenderPassMaskColorMatrixProgram(precision)); |
94 EXPECT_PROGRAM_VALID(renderer()->GetTextureProgram(precision)); | 94 EXPECT_PROGRAM_VALID(renderer()->GetTextureProgram(precision)); |
95 EXPECT_PROGRAM_VALID( | 95 EXPECT_PROGRAM_VALID( |
96 renderer()->GetNonPremultipliedTextureProgram(precision)); | 96 renderer()->GetNonPremultipliedTextureProgram(precision)); |
| 97 EXPECT_PROGRAM_VALID(renderer()->GetTextureBackgroundProgram(precision)); |
| 98 EXPECT_PROGRAM_VALID( |
| 99 renderer()->GetNonPremultipliedTextureBackgroundProgram(precision)); |
97 EXPECT_PROGRAM_VALID(renderer()->GetTextureIOSurfaceProgram(precision)); | 100 EXPECT_PROGRAM_VALID(renderer()->GetTextureIOSurfaceProgram(precision)); |
98 EXPECT_PROGRAM_VALID(renderer()->GetVideoYUVProgram(precision)); | 101 EXPECT_PROGRAM_VALID(renderer()->GetVideoYUVProgram(precision)); |
99 EXPECT_PROGRAM_VALID(renderer()->GetVideoYUVAProgram(precision)); | 102 EXPECT_PROGRAM_VALID(renderer()->GetVideoYUVAProgram(precision)); |
100 // This is unlikely to be ever true in tests due to usage of osmesa. | 103 // This is unlikely to be ever true in tests due to usage of osmesa. |
101 if (renderer()->Capabilities().using_egl_image) | 104 if (renderer()->Capabilities().using_egl_image) |
102 EXPECT_PROGRAM_VALID(renderer()->GetVideoStreamTextureProgram(precision)); | 105 EXPECT_PROGRAM_VALID(renderer()->GetVideoStreamTextureProgram(precision)); |
103 else | 106 else |
104 EXPECT_FALSE(renderer()->GetVideoStreamTextureProgram(precision)); | 107 EXPECT_FALSE(renderer()->GetVideoStreamTextureProgram(precision)); |
105 } | 108 } |
106 }; | 109 }; |
(...skipping 1443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1550 base::MessageLoop::current()->Run(); | 1553 base::MessageLoop::current()->Run(); |
1551 | 1554 |
1552 // The sync point should have happened. | 1555 // The sync point should have happened. |
1553 EXPECT_EQ(1, sync_point_callback_count); | 1556 EXPECT_EQ(1, sync_point_callback_count); |
1554 EXPECT_EQ(1, other_callback_count); | 1557 EXPECT_EQ(1, other_callback_count); |
1555 } | 1558 } |
1556 #endif // OS_ANDROID | 1559 #endif // OS_ANDROID |
1557 | 1560 |
1558 } // namespace | 1561 } // namespace |
1559 } // namespace cc | 1562 } // namespace cc |
OLD | NEW |