| 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 <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include <set> | 9 #include <set> |
| 10 | 10 |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 | 168 |
| 169 EXPECT_PROGRAM_VALID(renderer()->GetTileProgram(precision, sampler)); | 169 EXPECT_PROGRAM_VALID(renderer()->GetTileProgram(precision, sampler)); |
| 170 EXPECT_PROGRAM_VALID(renderer()->GetTileProgramOpaque(precision, sampler)); | 170 EXPECT_PROGRAM_VALID(renderer()->GetTileProgramOpaque(precision, sampler)); |
| 171 EXPECT_PROGRAM_VALID(renderer()->GetTileProgramAA(precision, sampler)); | 171 EXPECT_PROGRAM_VALID(renderer()->GetTileProgramAA(precision, sampler)); |
| 172 EXPECT_PROGRAM_VALID(renderer()->GetTileProgramSwizzle(precision, sampler)); | 172 EXPECT_PROGRAM_VALID(renderer()->GetTileProgramSwizzle(precision, sampler)); |
| 173 EXPECT_PROGRAM_VALID( | 173 EXPECT_PROGRAM_VALID( |
| 174 renderer()->GetTileProgramSwizzleOpaque(precision, sampler)); | 174 renderer()->GetTileProgramSwizzleOpaque(precision, sampler)); |
| 175 EXPECT_PROGRAM_VALID( | 175 EXPECT_PROGRAM_VALID( |
| 176 renderer()->GetTileProgramSwizzleAA(precision, sampler)); | 176 renderer()->GetTileProgramSwizzleAA(precision, sampler)); |
| 177 EXPECT_PROGRAM_VALID(renderer()->GetVideoYUVProgram(precision, sampler)); | 177 EXPECT_PROGRAM_VALID(renderer()->GetVideoYUVProgram(precision, sampler)); |
| 178 EXPECT_PROGRAM_VALID(renderer()->GetVideoNV12Program(precision, sampler)); |
| 178 EXPECT_PROGRAM_VALID(renderer()->GetVideoYUVAProgram(precision, sampler)); | 179 EXPECT_PROGRAM_VALID(renderer()->GetVideoYUVAProgram(precision, sampler)); |
| 179 } | 180 } |
| 180 | 181 |
| 181 void TestShadersWithMasks(TexCoordPrecision precision, | 182 void TestShadersWithMasks(TexCoordPrecision precision, |
| 182 SamplerType sampler, | 183 SamplerType sampler, |
| 183 BlendMode blend_mode, | 184 BlendMode blend_mode, |
| 184 bool mask_for_background) { | 185 bool mask_for_background) { |
| 185 if (!renderer()->Capabilities().using_egl_image && | 186 if (!renderer()->Capabilities().using_egl_image && |
| 186 sampler == SAMPLER_TYPE_EXTERNAL_OES) { | 187 sampler == SAMPLER_TYPE_EXTERNAL_OES) { |
| 187 // This will likely be hit in tests due to usage of osmesa. | 188 // This will likely be hit in tests due to usage of osmesa. |
| (...skipping 2046 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2234 EXPECT_CALL(overlay_scheduler, | 2235 EXPECT_CALL(overlay_scheduler, |
| 2235 Schedule(1, gfx::OVERLAY_TRANSFORM_NONE, _, viewport_rect, | 2236 Schedule(1, gfx::OVERLAY_TRANSFORM_NONE, _, viewport_rect, |
| 2236 BoundingRect(uv_top_left, uv_bottom_right))).Times(1); | 2237 BoundingRect(uv_top_left, uv_bottom_right))).Times(1); |
| 2237 | 2238 |
| 2238 renderer.DrawFrame(&render_passes_in_draw_order_, 1.f, viewport_rect, | 2239 renderer.DrawFrame(&render_passes_in_draw_order_, 1.f, viewport_rect, |
| 2239 viewport_rect, false); | 2240 viewport_rect, false); |
| 2240 } | 2241 } |
| 2241 | 2242 |
| 2242 } // namespace | 2243 } // namespace |
| 2243 } // namespace cc | 2244 } // namespace cc |
| OLD | NEW |