| 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 "cc/output/compositor_frame_metadata.h" | 7 #include "cc/output/compositor_frame_metadata.h" |
| 8 #include "cc/quads/draw_quad.h" | 8 #include "cc/quads/draw_quad.h" |
| 9 #include "cc/resources/prioritized_resource_manager.h" | 9 #include "cc/resources/prioritized_resource_manager.h" |
| 10 #include "cc/resources/resource_provider.h" | 10 #include "cc/resources/resource_provider.h" |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 EXPECT_PROGRAM_VALID(renderer_->GetTileProgramSwizzleAA()); | 52 EXPECT_PROGRAM_VALID(renderer_->GetTileProgramSwizzleAA()); |
| 53 EXPECT_PROGRAM_VALID(renderer_->GetTileCheckerboardProgram()); | 53 EXPECT_PROGRAM_VALID(renderer_->GetTileCheckerboardProgram()); |
| 54 EXPECT_PROGRAM_VALID(renderer_->GetRenderPassProgram()); | 54 EXPECT_PROGRAM_VALID(renderer_->GetRenderPassProgram()); |
| 55 EXPECT_PROGRAM_VALID(renderer_->GetRenderPassProgramAA()); | 55 EXPECT_PROGRAM_VALID(renderer_->GetRenderPassProgramAA()); |
| 56 EXPECT_PROGRAM_VALID(renderer_->GetRenderPassMaskProgram()); | 56 EXPECT_PROGRAM_VALID(renderer_->GetRenderPassMaskProgram()); |
| 57 EXPECT_PROGRAM_VALID(renderer_->GetRenderPassMaskProgramAA()); | 57 EXPECT_PROGRAM_VALID(renderer_->GetRenderPassMaskProgramAA()); |
| 58 EXPECT_PROGRAM_VALID(renderer_->GetTextureProgram()); | 58 EXPECT_PROGRAM_VALID(renderer_->GetTextureProgram()); |
| 59 EXPECT_PROGRAM_VALID(renderer_->GetTextureProgramFlip()); | 59 EXPECT_PROGRAM_VALID(renderer_->GetTextureProgramFlip()); |
| 60 EXPECT_PROGRAM_VALID(renderer_->GetTextureIOSurfaceProgram()); | 60 EXPECT_PROGRAM_VALID(renderer_->GetTextureIOSurfaceProgram()); |
| 61 EXPECT_PROGRAM_VALID(renderer_->GetVideoYUVProgram()); | 61 EXPECT_PROGRAM_VALID(renderer_->GetVideoYUVProgram()); |
| 62 EXPECT_PROGRAM_VALID(renderer_->GetVideoYUVAProgram()); |
| 62 // This is unlikely to be ever true in tests due to usage of osmesa. | 63 // This is unlikely to be ever true in tests due to usage of osmesa. |
| 63 if (renderer_->Capabilities().using_egl_image) | 64 if (renderer_->Capabilities().using_egl_image) |
| 64 EXPECT_PROGRAM_VALID(renderer_->GetVideoStreamTextureProgram()); | 65 EXPECT_PROGRAM_VALID(renderer_->GetVideoStreamTextureProgram()); |
| 65 else | 66 else |
| 66 EXPECT_FALSE(renderer_->GetVideoStreamTextureProgram()); | 67 EXPECT_FALSE(renderer_->GetVideoStreamTextureProgram()); |
| 67 EXPECT_PROGRAM_VALID(renderer_->GetDebugBorderProgram()); | 68 EXPECT_PROGRAM_VALID(renderer_->GetDebugBorderProgram()); |
| 68 EXPECT_PROGRAM_VALID(renderer_->GetSolidColorProgram()); | 69 EXPECT_PROGRAM_VALID(renderer_->GetSolidColorProgram()); |
| 69 EXPECT_PROGRAM_VALID(renderer_->GetSolidColorProgramAA()); | 70 EXPECT_PROGRAM_VALID(renderer_->GetSolidColorProgramAA()); |
| 70 ASSERT_FALSE(renderer_->IsContextLost()); | 71 ASSERT_FALSE(renderer_->IsContextLost()); |
| 71 } | 72 } |
| (...skipping 958 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1030 } | 1031 } |
| 1031 }; | 1032 }; |
| 1032 | 1033 |
| 1033 TEST_F(MockOutputSurfaceTestWithSendCompositorFrame, DrawFrame) { | 1034 TEST_F(MockOutputSurfaceTestWithSendCompositorFrame, DrawFrame) { |
| 1034 EXPECT_CALL(output_surface_, SendFrameToParentCompositor(_)).Times(1); | 1035 EXPECT_CALL(output_surface_, SendFrameToParentCompositor(_)).Times(1); |
| 1035 DrawFrame(); | 1036 DrawFrame(); |
| 1036 } | 1037 } |
| 1037 | 1038 |
| 1038 } // namespace | 1039 } // namespace |
| 1039 } // namespace cc | 1040 } // namespace cc |
| OLD | NEW |