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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CC_OUTPUT_SHADER_H_ 5 #ifndef CC_OUTPUT_SHADER_H_
6 #define CC_OUTPUT_SHADER_H_ 6 #define CC_OUTPUT_SHADER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 783 matching lines...) Expand 10 before | Expand all | Expand 10 after
794 int a_texture_location_; 794 int a_texture_location_;
795 int alpha_location_; 795 int alpha_location_;
796 int yuv_matrix_location_; 796 int yuv_matrix_location_;
797 int yuv_adj_location_; 797 int yuv_adj_location_;
798 int ya_clamp_rect_location_; 798 int ya_clamp_rect_location_;
799 int uv_clamp_rect_location_; 799 int uv_clamp_rect_location_;
800 800
801 DISALLOW_COPY_AND_ASSIGN(FragmentShaderYUVVideo); 801 DISALLOW_COPY_AND_ASSIGN(FragmentShaderYUVVideo);
802 }; 802 };
803 803
804 class FragmentShaderYVideo : public FragmentTexOpaqueBinding {
805 public:
806 FragmentShaderYVideo();
807 std::string GetShaderString(TexCoordPrecision precision,
808 SamplerType sampler) const;
809 static std::string GetShaderHead();
810 static std::string GetShaderBody();
811
812 void Init(gpu::gles2::GLES2Interface* context,
813 unsigned program,
814 int* base_uniform_index);
815 int x_derivative_location() const { return x_derivative_location_; }
816 int y_derivative_location() const { return y_derivative_location_; }
817
818 private:
819 int x_derivative_location_;
820 int y_derivative_location_;
821
822 DISALLOW_COPY_AND_ASSIGN(FragmentShaderYVideo);
823 };
824
804 class FragmentShaderColor : public FragmentTexBlendMode { 825 class FragmentShaderColor : public FragmentTexBlendMode {
805 public: 826 public:
806 FragmentShaderColor(); 827 FragmentShaderColor();
807 std::string GetShaderString( 828 std::string GetShaderString(
808 TexCoordPrecision precision, SamplerType sampler) const; 829 TexCoordPrecision precision, SamplerType sampler) const;
809 static std::string GetShaderHead(); 830 static std::string GetShaderHead();
810 static std::string GetShaderBody(); 831 static std::string GetShaderBody();
811 832
812 void Init(gpu::gles2::GLES2Interface* context, 833 void Init(gpu::gles2::GLES2Interface* context,
813 unsigned program, 834 unsigned program,
(...skipping 21 matching lines...) Expand all
835 856
836 private: 857 private:
837 int color_location_; 858 int color_location_;
838 859
839 DISALLOW_COPY_AND_ASSIGN(FragmentShaderColorAA); 860 DISALLOW_COPY_AND_ASSIGN(FragmentShaderColorAA);
840 }; 861 };
841 862
842 } // namespace cc 863 } // namespace cc
843 864
844 #endif // CC_OUTPUT_SHADER_H_ 865 #endif // CC_OUTPUT_SHADER_H_
OLDNEW
« 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