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

Unified Diff: cc/output/program_binding.h

Issue 959283004: Background filters are affected by masks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixes and more tests Created 5 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: cc/output/program_binding.h
diff --git a/cc/output/program_binding.h b/cc/output/program_binding.h
index 9c3244ca52841384119bc6353a46d2e8038d5854..51669d5fb4afd1f28e44d7e18b8e62332dc1ac5a 100644
--- a/cc/output/program_binding.h
+++ b/cc/output/program_binding.h
@@ -59,7 +59,8 @@ class ProgramBinding : public ProgramBindingBase {
void Initialize(ContextProvider* context_provider,
TexCoordPrecision precision,
SamplerType sampler,
- BlendMode blend_mode = BLEND_MODE_NONE) {
+ BlendMode blend_mode = BLEND_MODE_NONE,
+ bool mask_for_background = false) {
enne (OOO) 2015/03/04 19:58:44 style nit: no default parameters in Chromium.
DCHECK(context_provider);
DCHECK(!initialized_);
@@ -67,6 +68,7 @@ class ProgramBinding : public ProgramBindingBase {
return;
fragment_shader_.set_blend_mode(blend_mode);
+ fragment_shader_.set_mask_for_background(mask_for_background);
if (!ProgramBindingBase::Init(
context_provider->ContextGL(),

Powered by Google App Engine
This is Rietveld 408576698