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

Thu, 15 Jan 2015 21:03:48 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:03:48 +0100
branch
TOR_BUG_9701
changeset 11
deefc01c0e14
permissions
-rw-r--r--

Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)

     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