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

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

Issue 12157002: Adding YUVA support for enabling Alpha Playback (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase and calming down the try bots Created 7 years, 6 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 | Annotate | Revision Log
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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 EXPECT_PROGRAM_VALID( 89 EXPECT_PROGRAM_VALID(
90 renderer()->GetRenderPassMaskColorMatrixProgramAA(precision)); 90 renderer()->GetRenderPassMaskColorMatrixProgramAA(precision));
91 EXPECT_PROGRAM_VALID( 91 EXPECT_PROGRAM_VALID(
92 renderer()->GetRenderPassColorMatrixProgramAA(precision)); 92 renderer()->GetRenderPassColorMatrixProgramAA(precision));
93 EXPECT_PROGRAM_VALID( 93 EXPECT_PROGRAM_VALID(
94 renderer()->GetRenderPassMaskColorMatrixProgram(precision)); 94 renderer()->GetRenderPassMaskColorMatrixProgram(precision));
95 EXPECT_PROGRAM_VALID(renderer()->GetTextureProgram(precision)); 95 EXPECT_PROGRAM_VALID(renderer()->GetTextureProgram(precision));
96 EXPECT_PROGRAM_VALID(renderer()->GetTextureProgramFlip(precision)); 96 EXPECT_PROGRAM_VALID(renderer()->GetTextureProgramFlip(precision));
97 EXPECT_PROGRAM_VALID(renderer()->GetTextureIOSurfaceProgram(precision)); 97 EXPECT_PROGRAM_VALID(renderer()->GetTextureIOSurfaceProgram(precision));
98 EXPECT_PROGRAM_VALID(renderer()->GetVideoYUVProgram(precision)); 98 EXPECT_PROGRAM_VALID(renderer()->GetVideoYUVProgram(precision));
99 EXPECT_PROGRAM_VALID(renderer()->GetVideoYUVAProgram(precision));
99 // This is unlikely to be ever true in tests due to usage of osmesa. 100 // This is unlikely to be ever true in tests due to usage of osmesa.
100 if (renderer()->Capabilities().using_egl_image) 101 if (renderer()->Capabilities().using_egl_image)
101 EXPECT_PROGRAM_VALID(renderer()->GetVideoStreamTextureProgram(precision)); 102 EXPECT_PROGRAM_VALID(renderer()->GetVideoStreamTextureProgram(precision));
102 else 103 else
103 EXPECT_FALSE(renderer()->GetVideoStreamTextureProgram(precision)); 104 EXPECT_FALSE(renderer()->GetVideoStreamTextureProgram(precision));
104 } 105 }
105 }; 106 };
106 107
107 namespace { 108 namespace {
108 109
(...skipping 1550 matching lines...) Expand 10 before | Expand all | Expand 10 after
1659 base::MessageLoop::current()->Run(); 1660 base::MessageLoop::current()->Run();
1660 1661
1661 // The sync point should have happened. 1662 // The sync point should have happened.
1662 EXPECT_EQ(1, sync_point_callback_count); 1663 EXPECT_EQ(1, sync_point_callback_count);
1663 EXPECT_EQ(1, other_callback_count); 1664 EXPECT_EQ(1, other_callback_count);
1664 } 1665 }
1665 #endif // OS_ANDROID 1666 #endif // OS_ANDROID
1666 1667
1667 } // namespace 1668 } // namespace
1668 } // namespace cc 1669 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698