gfx/angle/src/libGLESv2/renderer/FenceImpl.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 // FenceImpl.h: Defines the rx::FenceImpl class.
     9 #ifndef LIBGLESV2_RENDERER_FENCEIMPL_H_
    10 #define LIBGLESV2_RENDERER_FENCEIMPL_H_
    12 #include "common/angleutils.h"
    14 namespace rx
    15 {
    17 class FenceImpl
    18 {
    19   public:
    20     FenceImpl() : mStatus(GL_FALSE), mCondition(GL_NONE) { };
    21     virtual ~FenceImpl() { };
    23     virtual GLboolean isFence() = 0;
    24     virtual void setFence(GLenum condition) = 0;
    25     virtual GLboolean testFence() = 0;
    26     virtual void finishFence() = 0;
    27     virtual void getFenceiv(GLenum pname, GLint *params) = 0;
    29   protected:
    30     void setStatus(GLboolean status) { mStatus = status; }
    31     GLboolean getStatus() const { return mStatus; }
    33     void setCondition(GLuint condition) { mCondition = condition; }
    34     GLuint getCondition() const { return mCondition; }
    36   private:
    37     DISALLOW_COPY_AND_ASSIGN(FenceImpl);
    39     GLboolean mStatus;
    40     GLenum mCondition;
    41 };
    43 }
    45 #endif // LIBGLESV2_RENDERER_FENCEIMPL_H_

mercurial