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

Unified Diff: include/core/SkBitmap.h

Issue 580863004: Adding 3D lut color filter (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: As color filter instead of image filter Created 6 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
Index: include/core/SkBitmap.h
diff --git a/include/core/SkBitmap.h b/include/core/SkBitmap.h
index b36a1fd3fddc59b211c21be88efd367af01bfb53..0752e2a669f71448d59fa0acae01ca6bc5303d24 100644
--- a/include/core/SkBitmap.h
+++ b/include/core/SkBitmap.h
@@ -198,6 +198,14 @@ public:
*/
void setIsVolatile(bool);
+ /** Returns true if the bitmap contains a 3D lut.
+ */
+ bool is3DLut() const;
+
+ /** Specify whether this bitmap contains a 3D lut. Bitmaps are not 3D luts by default.
+ */
+ void setIs3DLut(bool);
+
/** Reset the bitmap to its initial state (see default constructor). If we are a (shared)
owner of the pixels, that ownership is decremented.
*/
@@ -748,6 +756,7 @@ private:
*/
kHasHardwareMipMap_Flag = 0x08,
#endif
+ kIs3DLut_Flag = 0x10,
};
SkImageInfo fInfo;

Powered by Google App Engine
This is Rietveld 408576698