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

Unified Diff: src/core/SkCoreBlitters.h

Issue 1697863002: blitters for sRGB and float16 (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 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 | « src/core/SkBlitter_PM4f.cpp ('k') | src/core/SkShader.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkCoreBlitters.h
diff --git a/src/core/SkCoreBlitters.h b/src/core/SkCoreBlitters.h
index d2559f565b1803893b9cb298bb0a9c6da7f60628..06e106dd8ef2ca64a342d4d0f470280f0b822b74 100644
--- a/src/core/SkCoreBlitters.h
+++ b/src/core/SkCoreBlitters.h
@@ -49,6 +49,7 @@ protected:
uint32_t fShaderFlags;
const SkShader* fShader;
SkShader::Context* fShaderContext;
+ bool fConstInY;
private:
// illegal
@@ -177,7 +178,6 @@ private:
SkBlitRow::Proc32 fProc32;
SkBlitRow::Proc32 fProc32Blend;
bool fShadeDirectlyIntoDevice;
- bool fConstInY;
// illegal
SkARGB32_Shader_Blitter& operator=(const SkARGB32_Shader_Blitter&);
@@ -185,29 +185,13 @@ private:
typedef SkShaderBlitter INHERITED;
};
-class SkARGB32_Shader4f_Blitter : public SkARGB32_Shader_Blitter {
-public:
- SkARGB32_Shader4f_Blitter(const SkPixmap& device, const SkPaint& paint,
- SkShader::Context* shaderContext);
- virtual ~SkARGB32_Shader4f_Blitter();
- void blitH(int x, int y, int width) override;
- void blitV(int x, int y, int height, SkAlpha alpha) override;
- void blitRect(int x, int y, int width, int height) override;
- void blitAntiH(int x, int y, const SkAlpha[], const int16_t[]) override;
- void blitMask(const SkMask&, const SkIRect&) override;
-
-private:
- SkXfermode::PM4fState fState;
- SkXfermode::PM4fProc1 fProc1;
- SkXfermode::PM4fProcN fProcN;
- SkPM4f* fBuffer;
- bool fConstInY;
-
- // illegal
- SkARGB32_Shader4f_Blitter& operator=(const SkARGB32_Shader4f_Blitter&);
-
- typedef SkARGB32_Shader_Blitter INHERITED;
-};
+SkBlitter* SkBlitter_ARGB32_Create(const SkPixmap& device, const SkPaint& paint,
+ SkShader::Context* shaderContext,
+ SkTBlitterAllocator* allocator);
+
+SkBlitter* SkBlitter_ARGB64_Create(const SkPixmap& device, const SkPaint& paint,
+ SkShader::Context* shaderContext,
+ SkTBlitterAllocator* allocator);
///////////////////////////////////////////////////////////////////////////////
« no previous file with comments | « src/core/SkBlitter_PM4f.cpp ('k') | src/core/SkShader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698