gfx/angle/src/libGLESv2/renderer/BufferStorage.cpp

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 #include "precompiled.h"
     2 //
     3 // Copyright (c) 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 // BufferStorage.cpp Defines the abstract BufferStorage class.
    10 #include "libGLESv2/renderer/BufferStorage.h"
    12 namespace rx
    13 {
    15 unsigned int BufferStorage::mNextSerial = 1;
    17 BufferStorage::BufferStorage()
    18 {
    19     updateSerial();
    20 }
    22 BufferStorage::~BufferStorage()
    23 {
    24 }
    26 unsigned int BufferStorage::getSerial() const
    27 {
    28     return mSerial;
    29 }
    31 void BufferStorage::updateSerial()
    32 {
    33     mSerial = mNextSerial++;
    34 }
    36 void BufferStorage::markBufferUsage()
    37 {
    38 }
    40 }

mercurial