gfx/angle/src/libGLESv2/Fence.h

Tue, 06 Jan 2015 21:39:09 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 06 Jan 2015 21:39:09 +0100
branch
TOR_BUG_9701
changeset 8
97036ab72558
permissions
-rw-r--r--

Conditionally force memory storage according to privacy.thirdparty.isolate;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.

     1 //
     2 // Copyright (c) 2002-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 // Fence.h: Defines the gl::Fence class, which supports the GL_NV_fence extension.
     9 #ifndef LIBGLESV2_FENCE_H_
    10 #define LIBGLESV2_FENCE_H_
    12 #include "common/angleutils.h"
    14 namespace rx
    15 {
    16 class Renderer;
    17 class FenceImpl;
    18 }
    20 namespace gl
    21 {
    23 class Fence
    24 {
    25   public:
    26     explicit Fence(rx::Renderer *renderer);
    27     virtual ~Fence();
    29     GLboolean isFence();
    30     void setFence(GLenum condition);
    31     GLboolean testFence();
    32     void finishFence();
    33     void getFenceiv(GLenum pname, GLint *params);
    35   private:
    36     DISALLOW_COPY_AND_ASSIGN(Fence);
    38     rx::FenceImpl *mFence;
    39 };
    41 }
    43 #endif   // LIBGLESV2_FENCE_H_

mercurial