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

Unified Diff: cc/gl_renderer.h

Issue 11649005: cc: Support anti-aliasing for solid color layers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase and add DrawQuad::AntiAliasing struct. Created 7 years, 11 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
Index: cc/gl_renderer.h
diff --git a/cc/gl_renderer.h b/cc/gl_renderer.h
index 2e119334a12490aee423143d2878ca8df04a2f14..a3a52a9bdceffeaf1d88a3504341015ef4e3c2aa 100644
--- a/cc/gl_renderer.h
+++ b/cc/gl_renderer.h
@@ -168,7 +168,8 @@ private:
typedef ProgramBinding<VertexShaderPosTexYUVStretch, FragmentShaderYUVVideo> VideoYUVProgram;
// Special purpose / effects shaders.
- typedef ProgramBinding<VertexShaderPos, FragmentShaderColor> SolidColorProgram;
+ typedef ProgramBinding<VertexShaderQuad, FragmentShaderColor> SolidColorProgram;
+ typedef ProgramBinding<VertexShaderQuad, FragmentShaderColorAA> SolidColorProgramAA;
const TileProgram* tileProgram();
const TileProgramOpaque* tileProgramOpaque();
@@ -191,6 +192,7 @@ private:
const VideoStreamTextureProgram* videoStreamTextureProgram();
const SolidColorProgram* solidColorProgram();
+ const SolidColorProgramAA* solidColorProgramAA();
scoped_ptr<TileProgram> m_tileProgram;
scoped_ptr<TileProgramOpaque> m_tileProgramOpaque;
@@ -213,6 +215,7 @@ private:
scoped_ptr<VideoStreamTextureProgram> m_videoStreamTextureProgram;
scoped_ptr<SolidColorProgram> m_solidColorProgram;
+ scoped_ptr<SolidColorProgramAA> m_solidColorProgramAA;
OutputSurface* m_outputSurface;
WebKit::WebGraphicsContext3D* m_context;

Powered by Google App Engine
This is Rietveld 408576698