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

Unified Diff: cc/output/color_lut_cache.h

Issue 2697253002: color: Add support for shader generation (Closed)
Patch Set: More bits of precision Created 3 years, 10 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 | cc/output/color_lut_cache.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/color_lut_cache.h
diff --git a/cc/output/color_lut_cache.h b/cc/output/color_lut_cache.h
index 12a1db5eba5d1a360162dd6d719c79a46f453774..b298b6b64a4175762707bd63c2752a97f824e4e9 100644
--- a/cc/output/color_lut_cache.h
+++ b/cc/output/color_lut_cache.h
@@ -11,6 +11,10 @@
#include "base/macros.h"
#include "ui/gfx/color_space.h"
+namespace gfx {
+class ColorTransform;
+}
+
namespace gpu {
namespace gles2 {
class GLES2Interface;
@@ -28,18 +32,16 @@ class ColorLUTCache {
int size;
};
- LUT GetLUT(const gfx::ColorSpace& from, const gfx::ColorSpace& to);
+ LUT GetLUT(const gfx::ColorTransform* transform);
// End of frame, assume all LUTs handed out are no longer used.
void Swap();
private:
template <typename T>
- unsigned int MakeLUT(const gfx::ColorSpace& from,
- gfx::ColorSpace to,
- int lut_samples);
+ unsigned int MakeLUT(const gfx::ColorTransform* transform, int lut_samples);
- typedef std::pair<gfx::ColorSpace, gfx::ColorSpace> CacheKey;
+ typedef const gfx::ColorTransform* CacheKey;
struct CacheVal {
CacheVal(LUT lut, uint32_t last_used_frame)
« no previous file with comments | « no previous file | cc/output/color_lut_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698