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

Unified Diff: cc/shader.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/shader.h
diff --git a/cc/shader.h b/cc/shader.h
index 0d929f90f19af9a1fa20f191abee6468a66f8880..434ea748af75efbd26d636d513a5d5f4d3a48df5 100644
--- a/cc/shader.h
+++ b/cc/shader.h
@@ -328,12 +328,27 @@ public:
std::string getShaderString() const;
void init(WebKit::WebGraphicsContext3D*, unsigned program, bool usingBindUniform, int* baseUniformIndex);
+ int edgeLocation() const { return -1; }
int colorLocation() const { return m_colorLocation; }
private:
int m_colorLocation;
};
+class FragmentShaderColorAA {
+public:
+ FragmentShaderColorAA();
+ std::string getShaderString() const;
+
+ void init(WebKit::WebGraphicsContext3D*, unsigned program, bool usingBindUniform, int* baseUniformIndex);
+ int edgeLocation() const { return m_edgeLocation; }
+ int colorLocation() const { return m_colorLocation; }
+
+private:
+ int m_edgeLocation;
+ int m_colorLocation;
+};
+
class FragmentShaderCheckerboard {
public:
FragmentShaderCheckerboard();

Powered by Google App Engine
This is Rietveld 408576698