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

Unified Diff: cc/output/shader.cc

Issue 2237003007: hi10p+LUT bugfix (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/shader.cc
diff --git a/cc/output/shader.cc b/cc/output/shader.cc
index 8a17e36022520448c7c4c8995a15dc704d697cbd..b5d163862d14e010aa19d5bcd083278366ed34b4 100644
--- a/cc/output/shader.cc
+++ b/cc/output/shader.cc
@@ -2149,7 +2149,7 @@ std::string FragmentShaderYUVVideo::GetShaderString(TexCoordPrecision precision,
}
vec3 yuv2rgb(vec3 yuv) {
- yuv = yuv * resource_multiplier - vec3(resource_offset);
+ yuv = (yuv - vec3(resource_offset)) * resource_multiplier;
return LUT(lut_texture, yuv, 32.0).xyz;
}
});
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698