Hash :
1bd642c5
Author :
Date :
2014-11-04T17:05:00
Split the RenderTarget classes based on if they are backing a SwapChain. bug=angle:824 Change-Id: I89e475d4065102dbaa7fa1f1bfd02c7207def75c Reviewed-on: https://chromium-review.googlesource.com/227600 Reviewed-by: Shannon Woods <shannonwoods@chromium.org> Tested-by: Geoff Lang <geofflang@chromium.org>
//
// Copyright (c) 2012 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// RenderTarget.cpp: Implements serial handling for rx::RenderTarget
#include "libGLESv2/renderer/RenderTarget.h"
namespace rx
{
unsigned int RenderTarget::mCurrentSerial = 1;
RenderTarget::RenderTarget()
: mSerial(issueSerials(1))
{
}
RenderTarget::~RenderTarget()
{
}
unsigned int RenderTarget::getSerial() const
{
return mSerial;
}
unsigned int RenderTarget::issueSerials(unsigned int count)
{
unsigned int firstSerial = mCurrentSerial;
mCurrentSerial += count;
return firstSerial;
}
}