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

Unified Diff: cc/shader.h

Issue 12393053: Re-land: cc: Added antialiasing support for solid color layers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More Chrome style formatting changes. Created 7 years, 9 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
« no previous file with comments | « cc/gl_renderer_pixeltest.cc ('k') | cc/shader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/shader.h
diff --git a/cc/shader.h b/cc/shader.h
index 6ae060d7f2ab1ae987b54e5fa39ed65572c9da66..1923e9e5713ebcb6725c7df356990c8d8a0c4a14 100644
--- a/cc/shader.h
+++ b/cc/shader.h
@@ -323,12 +323,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();
« no previous file with comments | « cc/gl_renderer_pixeltest.cc ('k') | cc/shader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698