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

Unified Diff: cc/output/program_binding.h

Issue 83883002: cc: Allow TEXTURE_RECTANGLE_ARB to be used for tile textures. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address review feedback Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/output/gl_renderer_unittest.cc ('k') | cc/output/shader.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/program_binding.h
diff --git a/cc/output/program_binding.h b/cc/output/program_binding.h
index 4c11902ecad0174899afccc6b87d2420a8f3c2df..4a75a01e3ba838f4a41b8fb39b8e1870e18266ab 100644
--- a/cc/output/program_binding.h
+++ b/cc/output/program_binding.h
@@ -53,7 +53,8 @@ class ProgramBinding : public ProgramBindingBase {
ProgramBinding() {}
void Initialize(ContextProvider* context_provider,
- TexCoordPrecision precision) {
+ TexCoordPrecision precision,
+ SamplerType sampler) {
DCHECK(context_provider);
DCHECK(!initialized_);
@@ -63,7 +64,7 @@ class ProgramBinding : public ProgramBindingBase {
if (!ProgramBindingBase::Init(
context_provider->Context3d(),
vertex_shader_.GetShaderString(),
- fragment_shader_.GetShaderString(precision))) {
+ fragment_shader_.GetShaderString(precision, sampler))) {
DCHECK(context_provider->IsContextLost());
return;
}
« no previous file with comments | « cc/output/gl_renderer_unittest.cc ('k') | cc/output/shader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698