Sat, 03 Jan 2015 20:18:00 +0100
Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.
michael@0 | 1 | Texture2D Texture : register(t0); |
michael@0 | 2 | SamplerState Sampler : register(s0); |
michael@0 | 3 | |
michael@0 | 4 | void VS_Passthrough( in float2 inPosition : POSITION, in float2 inTexCoord : TEXCOORD0, |
michael@0 | 5 | out float4 outPosition : SV_POSITION, out float2 outTexCoord : TEXCOORD0) |
michael@0 | 6 | { |
michael@0 | 7 | outPosition = float4(inPosition, 0.0f, 1.0f); |
michael@0 | 8 | outTexCoord = inTexCoord; |
michael@0 | 9 | } |
michael@0 | 10 | |
michael@0 | 11 | float4 PS_PassthroughRGBA(in float4 inPosition : SV_POSITION, in float2 inTexCoord : TEXCOORD0) : SV_TARGET0 |
michael@0 | 12 | { |
michael@0 | 13 | return Texture.Sample(Sampler, inTexCoord).rgba; |
michael@0 | 14 | } |
michael@0 | 15 | |
michael@0 | 16 | float4 PS_PassthroughRGB(in float4 inPosition : SV_POSITION, in float2 inTexCoord : TEXCOORD0) : SV_TARGET0 |
michael@0 | 17 | { |
michael@0 | 18 | return float4(Texture.Sample(Sampler, inTexCoord).rgb, 1.0f); |
michael@0 | 19 | } |
michael@0 | 20 | |
michael@0 | 21 | float4 PS_PassthroughLum(in float4 inPosition : SV_POSITION, in float2 inTexCoord : TEXCOORD0) : SV_TARGET0 |
michael@0 | 22 | { |
michael@0 | 23 | return float4(Texture.Sample(Sampler, inTexCoord).rrr, 1.0f); |
michael@0 | 24 | } |
michael@0 | 25 | |
michael@0 | 26 | float4 PS_PassthroughLumAlpha(in float4 inPosition : SV_POSITION, in float2 inTexCoord : TEXCOORD0) : SV_TARGET0 |
michael@0 | 27 | { |
michael@0 | 28 | return Texture.Sample(Sampler, inTexCoord).rrra; |
michael@0 | 29 | } |