blob: 75299ecd5014b881ebee240eb0c3cdea758c409c [file] [log] [blame]
Shannon Woodse2632d22014-10-17 13:08:51 -04001//
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
11namespace rx
12{
13unsigned int RenderTarget::mCurrentSerial = 1;
14
15unsigned int RenderTarget::getSerial() const
16{
17 return mSerial;
18}
19
20unsigned int RenderTarget::issueSerials(unsigned int count)
21{
22 unsigned int firstSerial = mCurrentSerial;
23 mCurrentSerial += count;
24 return firstSerial;
25}
26}