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

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: 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 843 matching lines...) Expand 10 before | Expand all | Expand 10 after
854 int a_texture_location_; 854 int a_texture_location_;
855 int alpha_location_; 855 int alpha_location_;
856 int yuv_matrix_location_; 856 int yuv_matrix_location_;
857 int yuv_adj_location_; 857 int yuv_adj_location_;
858 int ya_clamp_rect_location_; 858 int ya_clamp_rect_location_;
859 int uv_clamp_rect_location_; 859 int uv_clamp_rect_location_;
860 860
861 DISALLOW_COPY_AND_ASSIGN(FragmentShaderYUVAVideo); 861 DISALLOW_COPY_AND_ASSIGN(FragmentShaderYUVAVideo);
862 }; 862 };
863 863
864 class FragmentShaderYVideo : public FragmentTexOpaqueBinding {
865 public:
866 std::string GetShaderString(
867 TexCoordPrecision precision, SamplerType sampler) const;
868 static std::string GetShaderHead();
869 static std::string GetShaderBody();
870 };
871
864 class FragmentShaderColor : public FragmentTexBlendMode { 872 class FragmentShaderColor : public FragmentTexBlendMode {
865 public: 873 public:
866 FragmentShaderColor(); 874 FragmentShaderColor();
867 std::string GetShaderString( 875 std::string GetShaderString(
868 TexCoordPrecision precision, SamplerType sampler) const; 876 TexCoordPrecision precision, SamplerType sampler) const;
869 static std::string GetShaderHead(); 877 static std::string GetShaderHead();
870 static std::string GetShaderBody(); 878 static std::string GetShaderBody();
871 879
872 void Init(gpu::gles2::GLES2Interface* context, 880 void Init(gpu::gles2::GLES2Interface* context,
873 unsigned program, 881 unsigned program,
(...skipping 21 matching lines...) Expand all
895 903
896 private: 904 private:
897 int color_location_; 905 int color_location_;
898 906
899 DISALLOW_COPY_AND_ASSIGN(FragmentShaderColorAA); 907 DISALLOW_COPY_AND_ASSIGN(FragmentShaderColorAA);
900 }; 908 };
901 909
902 } // namespace cc 910 } // namespace cc
903 911
904 #endif // CC_OUTPUT_SHADER_H_ 912 #endif // CC_OUTPUT_SHADER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698