gfx/angle/src/libGLESv2/renderer/Fence11.h

Sat, 03 Jan 2015 20:18:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Jan 2015 20:18:00 +0100
branch
TOR_BUG_3246
changeset 7
129ffea94266
permissions
-rw-r--r--

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 //
     2 // Copyright (c) 2013 The ANGLE Project Authors. All rights reserved.
     3 // Use of this source code is governed by a BSD-style license that can be
     4 // found in the LICENSE file.
     5 //
     7 // Fence11.h: Defines the rx::Fence11 class which implements rx::FenceImpl.
     9 #ifndef LIBGLESV2_RENDERER_Fence11_H_
    10 #define LIBGLESV2_RENDERER_Fence11_H_
    12 #include "libGLESv2/renderer/FenceImpl.h"
    14 namespace rx
    15 {
    16 class Renderer11;
    18 class Fence11 : public FenceImpl
    19 {
    20   public:
    21     explicit Fence11(rx::Renderer11 *renderer);
    22     virtual ~Fence11();
    24     GLboolean isFence();
    25     void setFence(GLenum condition);
    26     GLboolean testFence();
    27     void finishFence();
    28     void getFenceiv(GLenum pname, GLint *params);
    30   private:
    31     DISALLOW_COPY_AND_ASSIGN(Fence11);
    33     rx::Renderer11 *mRenderer;
    34     ID3D11Query *mQuery;
    35 };
    37 }
    39 #endif // LIBGLESV2_RENDERER_FENCE11_H_

mercurial