summaryrefslogtreecommitdiffstats
path: root/content/common/gpu/client/gl_helper_scaling.h
diff options
context:
space:
mode:
Diffstat (limited to 'content/common/gpu/client/gl_helper_scaling.h')
-rw-r--r--content/common/gpu/client/gl_helper_scaling.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/content/common/gpu/client/gl_helper_scaling.h b/content/common/gpu/client/gl_helper_scaling.h
index ff5ba7c..097dfb6 100644
--- a/content/common/gpu/client/gl_helper_scaling.h
+++ b/content/common/gpu/client/gl_helper_scaling.h
@@ -28,6 +28,7 @@ class CONTENT_EXPORT GLHelperScaling {
SHADER_BILINEAR2X2,
SHADER_BICUBIC_UPSCALE,
SHADER_BICUBIC_HALF_1D,
+ SHADER_PLANAR,
};
typedef std::pair<ShaderType, bool> ShaderProgramKeyType;
@@ -45,6 +46,13 @@ class CONTENT_EXPORT GLHelperScaling {
bool vertically_flip_texture,
bool swizzle);
+ GLHelper::ScalerInterface* CreatePlanarScaler(
+ const gfx::Size& src_size,
+ const gfx::Rect& src_subrect,
+ const gfx::Size& dst_size,
+ bool vertically_flip_texture,
+ const float color_weights[4]);
+
private:
// A ScaleOp represents a pass in a scaler pipeline, in one dimension.
// Note that when quality is GOOD, multiple scaler passes will be