Home | History | Annotate | Download | only in renderer
      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 //
      7 
      8 // BufferStorage.cpp Defines the abstract BufferStorage class.
      9 
     10 #include "libGLESv2/renderer/BufferStorage.h"
     11 
     12 namespace rx
     13 {
     14 
     15 unsigned int BufferStorage::mNextSerial = 1;
     16 
     17 BufferStorage::BufferStorage()
     18 {
     19     updateSerial();
     20 }
     21 
     22 BufferStorage::~BufferStorage()
     23 {
     24 }
     25 
     26 unsigned int BufferStorage::getSerial() const
     27 {
     28     return mSerial;
     29 }
     30 
     31 void BufferStorage::updateSerial()
     32 {
     33     mSerial = mNextSerial++;
     34 }
     35 
     36 }
     37