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

Unified Diff: src/gpu/GrImageIDTextureAdjuster.h

Issue 2150113002: Add getColorSpace to GrTextureProducer (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix newline Created 4 years, 5 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 | src/gpu/GrImageIDTextureAdjuster.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrImageIDTextureAdjuster.h
diff --git a/src/gpu/GrImageIDTextureAdjuster.h b/src/gpu/GrImageIDTextureAdjuster.h
index d516fc592c212a7f21786f080181c25ea7110825..c32bdb18a09d8b778c0dd85d63349e933397e551 100644
--- a/src/gpu/GrImageIDTextureAdjuster.h
+++ b/src/gpu/GrImageIDTextureAdjuster.h
@@ -21,6 +21,9 @@ class GrBitmapTextureAdjuster : public GrTextureAdjuster {
public:
explicit GrBitmapTextureAdjuster(const SkBitmap* bmp);
+protected:
+ SkColorSpace* getColorSpace() override;
+
private:
void makeCopyKey(const CopyParams& params, GrUniqueKey* copyKey) override;
@@ -37,6 +40,9 @@ class GrImageTextureAdjuster : public GrTextureAdjuster {
public:
explicit GrImageTextureAdjuster(const SkImage_Base* img);
+protected:
+ SkColorSpace* getColorSpace() override;
+
private:
void makeCopyKey(const CopyParams& params, GrUniqueKey* copyKey) override;
@@ -61,6 +67,8 @@ protected:
void didCacheCopy(const GrUniqueKey& copyKey) override;
+ SkColorSpace* getColorSpace() override;
+
private:
const SkBitmap fBitmap;
GrUniqueKey fOriginalKey;
@@ -84,6 +92,8 @@ protected:
void makeCopyKey(const CopyParams& stretch, GrUniqueKey* paramsCopyKey) override;
void didCacheCopy(const GrUniqueKey& copyKey) override;
+ SkColorSpace* getColorSpace() override;
+
private:
SkImageCacherator* fCacher;
const SkImage* fClient;
« no previous file with comments | « no previous file | src/gpu/GrImageIDTextureAdjuster.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698