shannon.woods@transgaming.com | bdf2d80 | 2013-02-28 23:16:20 +0000 | [diff] [blame] | 1 | #include "precompiled.h" |
shannon.woods@transgaming.com | 1dc3956 | 2013-02-28 23:07:37 +0000 | [diff] [blame] | 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 | void BufferStorage::markBufferUsage() |
| 37 | { |
| 38 | } |
| 39 | |
| 40 | } |