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

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     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