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

Unified Diff: cc/output/program_binding.h

Issue 12665005: cc: Use highp precision for texture coords if available and needed (Closed) Base URL: http://git.chromium.org/chromium/src.git@highp2
Patch Set: rebase after all dependencies landed 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/output/gl_renderer_unittest.cc ('k') | cc/output/shader.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/program_binding.h
diff --git a/cc/output/program_binding.h b/cc/output/program_binding.h
index 0e5aa9e388832b7c9e16add6cc0911ae42ed98ce..ee9d284fa7ff12a4c228f3a200c4bfbb19e8c314 100644
--- a/cc/output/program_binding.h
+++ b/cc/output/program_binding.h
@@ -8,6 +8,7 @@
#include <string>
#include "base/logging.h"
+#include "cc/output/shader.h"
namespace WebKit { class WebGraphicsContext3D; }
@@ -49,10 +50,12 @@ class ProgramBindingBase {
template <class VertexShader, class FragmentShader>
class ProgramBinding : public ProgramBindingBase {
public:
- explicit ProgramBinding(WebKit::WebGraphicsContext3D* context) {
- ProgramBindingBase::Init(context,
- vertex_shader_.GetShaderString(),
- fragment_shader_.GetShaderString());
+ explicit ProgramBinding(WebKit::WebGraphicsContext3D* context,
+ TexCoordPrecision precision) {
+ ProgramBindingBase::Init(
+ context,
+ vertex_shader_.GetShaderString(),
+ fragment_shader_.GetShaderString(precision));
}
void Initialize(WebKit::WebGraphicsContext3D* context,
« no previous file with comments | « cc/output/gl_renderer_unittest.cc ('k') | cc/output/shader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698