Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / cc / output / program_binding.h
index 912329e..722c782 100644 (file)
@@ -58,13 +58,16 @@ class ProgramBinding : public ProgramBindingBase {
 
   void Initialize(ContextProvider* context_provider,
                   TexCoordPrecision precision,
-                  SamplerType sampler) {
+                  SamplerType sampler,
+                  BlendMode blend_mode = BlendModeNormal) {
     DCHECK(context_provider);
     DCHECK(!initialized_);
 
     if (context_provider->IsContextLost())
       return;
 
+    fragment_shader_.set_blend_mode(blend_mode);
+
     if (!ProgramBindingBase::Init(
             context_provider->ContextGL(),
             vertex_shader_.GetShaderString(),