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

Side by Side Diff: cc/shader.h

Issue 11269017: Plumb through cropped output size for VideoFrame (Closed) Base URL: https://git.chromium.org/git/chromium/src@git-svn
Patch Set: Found the windows failure, and fixed it. Thanks akalin@ Created 8 years, 1 month 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
« no previous file with comments | « cc/resource_provider.cc ('k') | cc/shader.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_SHADER_H_ 5 #ifndef CC_SHADER_H_
6 #define CC_SHADER_H_ 6 #define CC_SHADER_H_
7 7
8 #include "third_party/skia/include/core/SkColorPriv.h" 8 #include "third_party/skia/include/core/SkColorPriv.h"
9 #include <string> 9 #include <string>
10 10
(...skipping 17 matching lines...) Expand all
28 }; 28 };
29 29
30 class VertexShaderPosTexYUVStretch { 30 class VertexShaderPosTexYUVStretch {
31 public: 31 public:
32 VertexShaderPosTexYUVStretch(); 32 VertexShaderPosTexYUVStretch();
33 33
34 void init(WebKit::WebGraphicsContext3D*, unsigned program, bool usingBindUni form, int* baseUniformIndex); 34 void init(WebKit::WebGraphicsContext3D*, unsigned program, bool usingBindUni form, int* baseUniformIndex);
35 std::string getShaderString() const; 35 std::string getShaderString() const;
36 36
37 int matrixLocation() const { return m_matrixLocation; } 37 int matrixLocation() const { return m_matrixLocation; }
38 int yWidthScaleFactorLocation() const { return m_yWidthScaleFactorLocation; } 38 int texScaleLocation() const { return m_texScaleLocation; }
39 int uvWidthScaleFactorLocation() const { return m_uvWidthScaleFactorLocation ; }
40 39
41 private: 40 private:
42 int m_matrixLocation; 41 int m_matrixLocation;
43 int m_yWidthScaleFactorLocation; 42 int m_texScaleLocation;
44 int m_uvWidthScaleFactorLocation;
45 }; 43 };
46 44
47 class VertexShaderPos { 45 class VertexShaderPos {
48 public: 46 public:
49 VertexShaderPos(); 47 VertexShaderPos();
50 48
51 void init(WebKit::WebGraphicsContext3D*, unsigned program, bool usingBindUni form, int* baseUniformIndex); 49 void init(WebKit::WebGraphicsContext3D*, unsigned program, bool usingBindUni form, int* baseUniformIndex);
52 std::string getShaderString() const; 50 std::string getShaderString() const;
53 51
54 int matrixLocation() const { return m_matrixLocation; } 52 int matrixLocation() const { return m_matrixLocation; }
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 private: 338 private:
341 int m_alphaLocation; 339 int m_alphaLocation;
342 int m_texTransformLocation; 340 int m_texTransformLocation;
343 int m_frequencyLocation; 341 int m_frequencyLocation;
344 int m_colorLocation; 342 int m_colorLocation;
345 }; 343 };
346 344
347 } // namespace cc 345 } // namespace cc
348 346
349 #endif // CC_SHADER_H_ 347 #endif // CC_SHADER_H_
OLDNEW
« no previous file with comments | « cc/resource_provider.cc ('k') | cc/shader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698