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

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: Dynamically set highp threshold based on actual mediump precision 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
Index: cc/output/program_binding.h
diff --git a/cc/output/program_binding.h b/cc/output/program_binding.h
index 77396cc46974b56a374174f5cada599b5562a467..d1aa3eb5dd1f7aa6b42cd06ca0b5b4900e15725a 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; }
@@ -46,10 +47,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,

Powered by Google App Engine
This is Rietveld 408576698