Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(375)

Side by Side Diff: cc/output/gl_renderer_unittest.cc

Issue 1013463003: Update from https://crrev.com/320931 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/output/gl_renderer.cc.rej ('k') | cc/output/latency_info_swap_promise.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « cc/output/gl_renderer.cc.rej ('k') | cc/output/latency_info_swap_promise.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698