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

Unified Diff: cc/output/shader.h

Issue 2121043002: 16 bpp video stream capture, render and WebGL usage - Realsense R200 & SR300 support. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: bilinear filter for rg88, float and half float added. Created 4 years, 5 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/shader.h
diff --git a/cc/output/shader.h b/cc/output/shader.h
index 327c5edcd2145f8891ff1a6470bb817336702e10..15ae41e9b42027e87b66cfe579fad10d2157a9d7 100644
--- a/cc/output/shader.h
+++ b/cc/output/shader.h
@@ -801,6 +801,27 @@ class FragmentShaderYUVVideo : public FragmentTexBlendMode {
DISALLOW_COPY_AND_ASSIGN(FragmentShaderYUVVideo);
};
+class FragmentShaderYVideo : public FragmentTexOpaqueBinding {
+ public:
+ FragmentShaderYVideo();
+ std::string GetShaderString(TexCoordPrecision precision,
+ SamplerType sampler) const;
+ static std::string GetShaderHead();
+ static std::string GetShaderBody();
+
+ void Init(gpu::gles2::GLES2Interface* context,
+ unsigned program,
+ int* base_uniform_index);
+ int x_derivative_location() const { return x_derivative_location_; }
+ int y_derivative_location() const { return y_derivative_location_; }
+
+ private:
+ int x_derivative_location_;
+ int y_derivative_location_;
+
+ DISALLOW_COPY_AND_ASSIGN(FragmentShaderYVideo);
+};
+
class FragmentShaderColor : public FragmentTexBlendMode {
public:
FragmentShaderColor();
« no previous file with comments | « cc/output/gl_renderer.cc ('k') | cc/output/shader.cc » ('j') | cc/output/shader.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698