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.
1 #include "precompiled.h"
2 //
3 // Copyright (c) 2002-2013 The ANGLE Project Authors. All rights reserved.
4 // Use of this source code is governed by a BSD-style license that can be
5 // found in the LICENSE file.
6 //
8 // Fence.cpp: Implements the gl::Fence class, which supports the GL_NV_fence extension.
10 #include "libGLESv2/Fence.h"
11 #include "libGLESv2/renderer/FenceImpl.h"
12 #include "libGLESv2/renderer/Renderer.h"
14 namespace gl
15 {
17 Fence::Fence(rx::Renderer *renderer)
18 {
19 mFence = renderer->createFence();
20 }
22 Fence::~Fence()
23 {
24 delete mFence;
25 }
27 GLboolean Fence::isFence()
28 {
29 return mFence->isFence();
30 }
32 void Fence::setFence(GLenum condition)
33 {
34 mFence->setFence(condition);
35 }
37 GLboolean Fence::testFence()
38 {
39 return mFence->testFence();
40 }
42 void Fence::finishFence()
43 {
44 mFence->finishFence();
45 }
47 void Fence::getFenceiv(GLenum pname, GLint *params)
48 {
49 mFence->getFenceiv(pname, params);
50 }
52 }