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

Unified Diff: cc/output/color_lut_cache.cc

Issue 2371413002: make LUT calculation 3x faster (Closed)
Patch Set: Created 4 years, 3 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/color_lut_cache.cc
diff --git a/cc/output/color_lut_cache.cc b/cc/output/color_lut_cache.cc
index 7b1687236313f2135f658681b0882bf17f6039fa..60e44623d2c9c002363665ef0ca729c490082d3e 100644
--- a/cc/output/color_lut_cache.cc
+++ b/cc/output/color_lut_cache.cc
@@ -51,7 +51,7 @@ unsigned int ColorLUTCache::MakeLUT(const gfx::ColorSpace& from,
int lut_entries = lut_samples * lut_samples * lut_samples;
float inverse = 1.0f / (lut_samples - 1);
std::vector<unsigned char> lut(lut_entries * 4);
- std::vector<gfx::ColorTransform::TriStim> samples(lut_samples * 3);
+ std::vector<gfx::ColorTransform::TriStim> samples(lut_samples);
unsigned char* lutp = lut.data();
for (int y = 0; y < lut_samples; y++) {
for (int v = 0; v < lut_samples; v++) {
« 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