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

Side by Side Diff: client/deps/glbench/src.orig/yuv2rgb_2.glslf

Issue 870005: Move gl_Bench into a dep so that it can be re-used among tests (Closed)
Patch Set: Created 10 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
OLDNEW
1 /* 1 /*
2 * Copyright 2010, Google Inc. 2 * Copyright 2010, Google Inc.
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 * [0,1] to [-.5,.5] as part of the transform. 72 * [0,1] to [-.5,.5] as part of the transform.
73 */ 73 */
74 vec4 channels = vec4(yChannel, uChannel, vChannel, 1.0); 74 vec4 channels = vec4(yChannel, uChannel, vChannel, 1.0);
75 mat4 conversion = mat4( 1.0, 1.0, 1.0, 0.0, 75 mat4 conversion = mat4( 1.0, 1.0, 1.0, 0.0,
76 0.0, -0.344, 1.772, 0.0, 76 0.0, -0.344, 1.772, 0.0,
77 1.402, -0.714, 0.0, 0.0, 77 1.402, -0.714, 0.0, 0.0,
78 -0.701, 0.529, -0.886, 1.0); 78 -0.701, 0.529, -0.886, 1.0);
79 79
80 gl_FragColor = conversion * channels; 80 gl_FragColor = conversion * channels;
81 } 81 }
OLDNEW
« no previous file with comments | « client/deps/glbench/src.orig/yuv2rgb_1.glslv ('k') | client/deps/glbench/src.orig/yuv2rgb_2.glslv » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698