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

Side by Side Diff: src/gpu/effects/GrBicubicEffect.h

Issue 83153006: HQ filtering for tiled/bleed drawBitmap (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: combine lines Created 7 years 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright 2013 Google Inc. 2 * Copyright 2013 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef GrBicubicTextureEffect_DEFINED 8 #ifndef GrBicubicTextureEffect_DEFINED
9 #define GrBicubicTextureEffect_DEFINED 9 #define GrBicubicTextureEffect_DEFINED
10 10
11 #include "GrSingleTextureEffect.h" 11 #include "GrSingleTextureEffect.h"
12 #include "GrDrawEffect.h" 12 #include "GrDrawEffect.h"
13 #include "gl/GrGLEffect.h" 13 #include "gl/GrGLEffect.h"
14 #include "GrTBackendEffectFactory.h" 14 #include "GrTBackendEffectFactory.h"
15 15
16 class GrGLBicubicEffect; 16 class GrGLBicubicEffect;
17 17
18 class GrBicubicEffect : public GrSingleTextureEffect { 18 class GrBicubicEffect : public GrSingleTextureEffect {
19 public: 19 public:
20 enum {
21 kFilterTexelPad = 2, // Given a src rect in texels to be filtered, this number of
22 // surrounding texels are needed by the kernel in x and y.
23 };
20 virtual ~GrBicubicEffect(); 24 virtual ~GrBicubicEffect();
21 25
22 static const char* Name() { return "Bicubic"; } 26 static const char* Name() { return "Bicubic"; }
23 const float* coefficients() const { return fCoefficients; } 27 const float* coefficients() const { return fCoefficients; }
24 28
25 typedef GrGLBicubicEffect GLEffect; 29 typedef GrGLBicubicEffect GLEffect;
26 30
27 virtual const GrBackendEffectFactory& getFactory() const SK_OVERRIDE; 31 virtual const GrBackendEffectFactory& getFactory() const SK_OVERRIDE;
28 virtual void getConstantColorComponents(GrColor* color, uint32_t* validFlags ) const SK_OVERRIDE; 32 virtual void getConstantColorComponents(GrColor* color, uint32_t* validFlags ) const SK_OVERRIDE;
29 33
(...skipping 29 matching lines...) Expand all
59 float fCoefficients[16]; 63 float fCoefficients[16];
60 64
61 GR_DECLARE_EFFECT_TEST; 65 GR_DECLARE_EFFECT_TEST;
62 66
63 static const SkScalar gMitchellCoefficients[16]; 67 static const SkScalar gMitchellCoefficients[16];
64 68
65 typedef GrSingleTextureEffect INHERITED; 69 typedef GrSingleTextureEffect INHERITED;
66 }; 70 };
67 71
68 #endif 72 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698