Shannon Woods | e2632d2 | 2014-10-17 13:08:51 -0400 | [diff] [blame] | 1 | // |
| 2 | // Copyright (c) 2012 The ANGLE Project Authors. All rights reserved. |
| 3 | // Use of this source code is governed by a BSD-style license that can be |
| 4 | // found in the LICENSE file. |
| 5 | // |
| 6 | |
| 7 | // RenderTarget.cpp: Implements serial handling for rx::RenderTarget |
| 8 | |
| 9 | #include "libGLESv2/renderer/RenderTarget.h" |
| 10 | |
| 11 | namespace rx |
| 12 | { |
| 13 | unsigned int RenderTarget::mCurrentSerial = 1; |
| 14 | |
| 15 | unsigned int RenderTarget::getSerial() const |
| 16 | { |
| 17 | return mSerial; |
| 18 | } |
| 19 | |
| 20 | unsigned int RenderTarget::issueSerials(unsigned int count) |
| 21 | { |
| 22 | unsigned int firstSerial = mCurrentSerial; |
| 23 | mCurrentSerial += count; |
| 24 | return firstSerial; |
| 25 | } |
| 26 | } |