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

Side by Side Diff: cc/output/shader.h

Issue 881963002: Clamp YUV videos to their visible size in the shader (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 VertexShaderPosTexYUVStretchOffset(); 97 VertexShaderPosTexYUVStretchOffset();
98 98
99 void Init(gpu::gles2::GLES2Interface* context, 99 void Init(gpu::gles2::GLES2Interface* context,
100 unsigned program, 100 unsigned program,
101 int* base_uniform_index); 101 int* base_uniform_index);
102 std::string GetShaderString() const; 102 std::string GetShaderString() const;
103 103
104 int matrix_location() const { return matrix_location_; } 104 int matrix_location() const { return matrix_location_; }
105 int tex_scale_location() const { return tex_scale_location_; } 105 int tex_scale_location() const { return tex_scale_location_; }
106 int tex_offset_location() const { return tex_offset_location_; } 106 int tex_offset_location() const { return tex_offset_location_; }
107 int clamp_size_location() const { return clamp_size_location_; }
107 108
108 private: 109 private:
109 int matrix_location_; 110 int matrix_location_;
110 int tex_scale_location_; 111 int tex_scale_location_;
111 int tex_offset_location_; 112 int tex_offset_location_;
113 int clamp_size_location_;
112 114
113 DISALLOW_COPY_AND_ASSIGN(VertexShaderPosTexYUVStretchOffset); 115 DISALLOW_COPY_AND_ASSIGN(VertexShaderPosTexYUVStretchOffset);
114 }; 116 };
115 117
116 class VertexShaderPos { 118 class VertexShaderPos {
117 public: 119 public:
118 VertexShaderPos(); 120 VertexShaderPos();
119 121
120 void Init(gpu::gles2::GLES2Interface* context, 122 void Init(gpu::gles2::GLES2Interface* context,
121 unsigned program, 123 unsigned program,
(...skipping 649 matching lines...) Expand 10 before | Expand all | Expand 10 after
771 int tex_transform_location_; 773 int tex_transform_location_;
772 int frequency_location_; 774 int frequency_location_;
773 int color_location_; 775 int color_location_;
774 776
775 DISALLOW_COPY_AND_ASSIGN(FragmentShaderCheckerboard); 777 DISALLOW_COPY_AND_ASSIGN(FragmentShaderCheckerboard);
776 }; 778 };
777 779
778 } // namespace cc 780 } // namespace cc
779 781
780 #endif // CC_OUTPUT_SHADER_H_ 782 #endif // CC_OUTPUT_SHADER_H_
OLDNEW
« no previous file with comments | « cc/output/renderer_pixeltest.cc ('k') | cc/output/shader.cc » ('j') | cc/output/shader.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698