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

Side by Side Diff: cc/shader.h

Issue 11420079: Allow using a larger-than-necessary texture as cached render pass backing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addresses feedback (on top of https://codereview.chromium.org/11543013/) Created 8 years 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_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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 78
79 class VertexShaderQuad { 79 class VertexShaderQuad {
80 public: 80 public:
81 VertexShaderQuad(); 81 VertexShaderQuad();
82 82
83 void init(WebKit::WebGraphicsContext3D*, unsigned program, bool usingBindUni form, int* baseUniformIndex); 83 void init(WebKit::WebGraphicsContext3D*, unsigned program, bool usingBindUni form, int* baseUniformIndex);
84 std::string getShaderString() const; 84 std::string getShaderString() const;
85 85
86 int matrixLocation() const { return m_matrixLocation; } 86 int matrixLocation() const { return m_matrixLocation; }
87 int pointLocation() const { return m_pointLocation; } 87 int pointLocation() const { return m_pointLocation; }
88 int texScaleLocation() const { return m_texScaleLocation; }
88 89
89 private: 90 private:
90 int m_matrixLocation; 91 int m_matrixLocation;
91 int m_pointLocation; 92 int m_pointLocation;
93 int m_texScaleLocation;
92 }; 94 };
93 95
94 class VertexShaderTile { 96 class VertexShaderTile {
95 public: 97 public:
96 VertexShaderTile(); 98 VertexShaderTile();
97 99
98 void init(WebKit::WebGraphicsContext3D*, unsigned program, bool usingBindUni form, int* baseUniformIndex); 100 void init(WebKit::WebGraphicsContext3D*, unsigned program, bool usingBindUni form, int* baseUniformIndex);
99 std::string getShaderString() const; 101 std::string getShaderString() const;
100 102
101 int matrixLocation() const { return m_matrixLocation; } 103 int matrixLocation() const { return m_matrixLocation; }
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 private: 340 private:
339 int m_alphaLocation; 341 int m_alphaLocation;
340 int m_texTransformLocation; 342 int m_texTransformLocation;
341 int m_frequencyLocation; 343 int m_frequencyLocation;
342 int m_colorLocation; 344 int m_colorLocation;
343 }; 345 };
344 346
345 } // namespace cc 347 } // namespace cc
346 348
347 #endif // CC_SHADER_H_ 349 #endif // CC_SHADER_H_
OLDNEW
« cc/gl_renderer_pixeltest.cc ('K') | « cc/gl_renderer_pixeltest.cc ('k') | cc/shader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698