Chromium Code Reviews| Index: cc/gl_renderer.h |
| diff --git a/cc/gl_renderer.h b/cc/gl_renderer.h |
| index 7b1f8f489e658237a1cce1751fe6691a56006081..0018c7517c1171db854295808268cf232839b9f5 100644 |
| --- a/cc/gl_renderer.h |
| +++ b/cc/gl_renderer.h |
| @@ -152,6 +152,16 @@ class CC_EXPORT GLRenderer : |
| gfx::Rect rect, |
| const gfx::Transform& draw_matrix); |
| + // Check if quad needs antialiasing and if so, inflate the quad and |
| + // fill edge array for fragment shader. localQuad is set to |
| + // inflated quad if antialiasing is required, otherwise it is left |
| + // unchanged. edge array is filled with inflated quad's edge data |
| + // if antialiasing is required, otherwise it is left unchanged. |
| + // Returns true if quad requires antialiasing and false otherwise. |
| + bool SetupQuadForAntialiasing(const gfx::Transform& deviceTransform, |
| + const DrawQuad* quad, gfx::QuadF* localQuad, |
|
danakj
2013/03/14 00:54:25
1 param per line if they don't all fit on a single
ernstm
2013/03/14 17:08:33
Done.
|
| + float edge[24]) const; |
| + |
| bool UseScopedTexture(DrawingFrame& frame, |
| const ScopedResource* resource, |
| gfx::Rect viewport_rect); |
| @@ -232,8 +242,10 @@ class CC_EXPORT GLRenderer : |
| VideoYUVProgram; |
| // Special purpose / effects shaders. |
| - typedef ProgramBinding<VertexShaderPos, FragmentShaderColor> |
| + typedef ProgramBinding<VertexShaderQuad, FragmentShaderColor> |
| SolidColorProgram; |
| + typedef ProgramBinding<VertexShaderQuad, FragmentShaderColorAA> |
| + SolidColorProgramAA; |
| const TileProgram* GetTileProgram(); |
| const TileProgramOpaque* GetTileProgramOpaque(); |
| @@ -256,6 +268,7 @@ class CC_EXPORT GLRenderer : |
| const VideoStreamTextureProgram* GetVideoStreamTextureProgram(); |
| const SolidColorProgram* GetSolidColorProgram(); |
| + const SolidColorProgramAA* GetSolidColorProgramAA(); |
| scoped_ptr<TileProgram> tile_program_; |
| scoped_ptr<TileProgramOpaque> tile_program_opaque_; |
| @@ -278,6 +291,7 @@ class CC_EXPORT GLRenderer : |
| scoped_ptr<VideoStreamTextureProgram> video_stream_texture_program_; |
| scoped_ptr<SolidColorProgram> solid_color_program_; |
| + scoped_ptr<SolidColorProgramAA> solid_color_program_aa_; |
| OutputSurface* output_surface_; |
| WebKit::WebGraphicsContext3D* context_; |