| 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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 precision, sampler, blend_mode, mask_for_background)); | 162 precision, sampler, blend_mode, mask_for_background)); |
| 163 EXPECT_PROGRAM_VALID(renderer()->GetRenderPassMaskColorMatrixProgram( | 163 EXPECT_PROGRAM_VALID(renderer()->GetRenderPassMaskColorMatrixProgram( |
| 164 precision, sampler, blend_mode, mask_for_background)); | 164 precision, sampler, blend_mode, mask_for_background)); |
| 165 } | 165 } |
| 166 } | 166 } |
| 167 } | 167 } |
| 168 }; | 168 }; |
| 169 | 169 |
| 170 namespace { | 170 namespace { |
| 171 | 171 |
| 172 #if !defined(OS_ANDROID) | 172 #if !defined(OS_ANDROID) && !defined(OS_WIN) |
| 173 TEST_F(GLRendererShaderPixelTest, AllShadersCompile) { TestShaders(); } | 173 TEST_F(GLRendererShaderPixelTest, AllShadersCompile) { TestShaders(); } |
| 174 #endif | 174 #endif |
| 175 | 175 |
| 176 class FakeRendererGL : public GLRenderer { | 176 class FakeRendererGL : public GLRenderer { |
| 177 public: | 177 public: |
| 178 FakeRendererGL(RendererClient* client, | 178 FakeRendererGL(RendererClient* client, |
| 179 const RendererSettings* settings, | 179 const RendererSettings* settings, |
| 180 OutputSurface* output_surface, | 180 OutputSurface* output_surface, |
| 181 ResourceProvider* resource_provider) | 181 ResourceProvider* resource_provider) |
| 182 : GLRenderer(client, | 182 : GLRenderer(client, |
| (...skipping 1799 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1982 base::MessageLoop::current()->Run(); | 1982 base::MessageLoop::current()->Run(); |
| 1983 | 1983 |
| 1984 // The sync point should have happened. | 1984 // The sync point should have happened. |
| 1985 EXPECT_EQ(1, sync_point_callback_count); | 1985 EXPECT_EQ(1, sync_point_callback_count); |
| 1986 EXPECT_EQ(1, other_callback_count); | 1986 EXPECT_EQ(1, other_callback_count); |
| 1987 } | 1987 } |
| 1988 #endif // OS_ANDROID | 1988 #endif // OS_ANDROID |
| 1989 | 1989 |
| 1990 } // namespace | 1990 } // namespace |
| 1991 } // namespace cc | 1991 } // namespace cc |
| OLD | NEW |