Chromium Code Reviews| Index: cc/output/gl_renderer.h |
| diff --git a/cc/output/gl_renderer.h b/cc/output/gl_renderer.h |
| index e6a668d2086386442426039228e7ef1553f0650e..bad3612122175f73aba8f665e68e95c83f0b46e9 100644 |
| --- a/cc/output/gl_renderer.h |
| +++ b/cc/output/gl_renderer.h |
| @@ -229,6 +229,15 @@ class CC_EXPORT GLRenderer : |
| typedef ProgramBinding<VertexShaderQuad, FragmentShaderRGBATexAlphaMaskAA> |
| RenderPassMaskProgramAA; |
| + typedef ProgramBinding<VertexShaderPosTexTransform, |
|
vangelis
2013/03/20 19:20:44
I don't believe the highp typedefs are needed. The
brianderson
2013/03/20 20:57:15
Ah yes, these are not needed and are not used. I u
|
| + FragmentShaderRGBATexAlpha> RenderPassProgramHighP; |
| + typedef ProgramBinding<VertexShaderPosTexTransform, |
| + FragmentShaderRGBATexAlphaMask> RenderPassMaskProgramHighP; |
| + typedef ProgramBinding<VertexShaderQuad, FragmentShaderRGBATexAlphaAA> |
| + RenderPassProgramAAHighP; |
| + typedef ProgramBinding<VertexShaderQuad, FragmentShaderRGBATexAlphaMaskAA> |
| + RenderPassMaskProgramAAHighP; |
| + |
| // Texture shaders. |
| typedef ProgramBinding<VertexShaderPosTexTransform, |
| FragmentShaderRGBATexVaryingAlpha> TextureProgram; |
| @@ -238,6 +247,14 @@ class CC_EXPORT GLRenderer : |
| FragmentShaderRGBATexRectVaryingAlpha> |
| TextureIOSurfaceProgram; |
| + typedef ProgramBinding<VertexShaderPosTexTransform, |
| + FragmentShaderRGBATexVaryingAlpha> TextureProgramHighP; |
| + typedef ProgramBinding<VertexShaderPosTexTransformFlip, |
| + FragmentShaderRGBATexVaryingAlpha> TextureProgramFlipHighP; |
| + typedef ProgramBinding<VertexShaderPosTexTransform, |
| + FragmentShaderRGBATexRectVaryingAlpha> |
| + TextureIOSurfaceProgramHighP; |
| + |
| // Video shaders. |
| typedef ProgramBinding<VertexShaderVideoTransform, |
| FragmentShaderOESImageExternal> |
| @@ -245,6 +262,12 @@ class CC_EXPORT GLRenderer : |
| typedef ProgramBinding<VertexShaderPosTexYUVStretch, FragmentShaderYUVVideo> |
| VideoYUVProgram; |
| + typedef ProgramBinding<VertexShaderVideoTransform, |
| + FragmentShaderOESImageExternal> |
| + VideoStreamTextureProgramHighP; |
| + typedef ProgramBinding<VertexShaderPosTexYUVStretch, FragmentShaderYUVVideo> |
| + VideoYUVProgramHighP; |
| + |
| // Special purpose / effects shaders. |
| typedef ProgramBinding<VertexShaderPos, FragmentShaderColor> |
| DebugBorderProgram; |
| @@ -261,17 +284,26 @@ class CC_EXPORT GLRenderer : |
| const TileProgramSwizzleAA* GetTileProgramSwizzleAA(); |
| const TileCheckerboardProgram* GetTileCheckerboardProgram(); |
| - const RenderPassProgram* GetRenderPassProgram(); |
| - const RenderPassProgramAA* GetRenderPassProgramAA(); |
| - const RenderPassMaskProgram* GetRenderPassMaskProgram(); |
| - const RenderPassMaskProgramAA* GetRenderPassMaskProgramAA(); |
| - |
| - const TextureProgram* GetTextureProgram(); |
| - const TextureProgramFlip* GetTextureProgramFlip(); |
| - const TextureIOSurfaceProgram* GetTextureIOSurfaceProgram(); |
| - |
| - const VideoYUVProgram* GetVideoYUVProgram(); |
| - const VideoStreamTextureProgram* GetVideoStreamTextureProgram(); |
| + const RenderPassProgram* GetRenderPassProgram( |
| + TexCoordPrecision precision); |
| + const RenderPassProgramAA* GetRenderPassProgramAA( |
| + TexCoordPrecision precision); |
| + const RenderPassMaskProgram* GetRenderPassMaskProgram( |
| + TexCoordPrecision precision); |
| + const RenderPassMaskProgramAA* GetRenderPassMaskProgramAA( |
| + TexCoordPrecision precision); |
| + |
| + const TextureProgram* GetTextureProgram( |
| + TexCoordPrecision precision); |
| + const TextureProgramFlip* GetTextureProgramFlip( |
| + TexCoordPrecision precision); |
| + const TextureIOSurfaceProgram* GetTextureIOSurfaceProgram( |
| + TexCoordPrecision precision); |
| + |
| + const VideoYUVProgram* GetVideoYUVProgram( |
| + TexCoordPrecision precision); |
| + const VideoStreamTextureProgram* GetVideoStreamTextureProgram( |
| + TexCoordPrecision precision); |
| const DebugBorderProgram* GetDebugBorderProgram(); |
| const SolidColorProgram* GetSolidColorProgram(); |
| @@ -290,13 +322,25 @@ class CC_EXPORT GLRenderer : |
| scoped_ptr<RenderPassMaskProgram> render_pass_mask_program_; |
| scoped_ptr<RenderPassMaskProgramAA> render_pass_mask_program_aa_; |
| + scoped_ptr<RenderPassProgram> render_pass_program_highp_; |
| + scoped_ptr<RenderPassProgramAA> render_pass_program_aa_highp_; |
| + scoped_ptr<RenderPassMaskProgram> render_pass_mask_program_highp_; |
| + scoped_ptr<RenderPassMaskProgramAA> render_pass_mask_program_aa_highp_; |
| + |
| scoped_ptr<TextureProgram> texture_program_; |
| scoped_ptr<TextureProgramFlip> texture_program_flip_; |
| scoped_ptr<TextureIOSurfaceProgram> texture_io_surface_program_; |
| + scoped_ptr<TextureProgram> texture_program_highp_; |
| + scoped_ptr<TextureProgramFlip> texture_program_flip_highp_; |
| + scoped_ptr<TextureIOSurfaceProgram> texture_io_surface_program_highp_; |
| + |
| scoped_ptr<VideoYUVProgram> video_yuv_program_; |
| scoped_ptr<VideoStreamTextureProgram> video_stream_texture_program_; |
| + scoped_ptr<VideoYUVProgram> video_yuv_program_highp_; |
| + scoped_ptr<VideoStreamTextureProgram> video_stream_texture_program_highp_; |
| + |
| scoped_ptr<DebugBorderProgram> debug_border_program_; |
| scoped_ptr<SolidColorProgram> solid_color_program_; |
| scoped_ptr<SolidColorProgramAA> solid_color_program_aa_; |