Hash :
29233b29
Author :
Date :
2013-05-30T00:04:57
Call BufferStorage::markUsage when we retrieve a buffer pointer for rendering, instead of when we prepare data. The automatic call eliminates function calls from other points in the library. TRAC #22852 Signed-off-by: Geoff Lang Signed-off-by: Nicolas Capens Author: Jamie Madill git-svn-id: https://angleproject.googlecode.com/svn/branches/es3proto@2288 736b8ea6-26fd-11df-bfd4-992fa37f6226
#include "precompiled.h"
//
// Copyright (c) 2013 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.
//
// BufferStorage.cpp Defines the abstract BufferStorage class.
#include "libGLESv2/renderer/BufferStorage.h"
namespace rx
{
unsigned int BufferStorage::mNextSerial = 1;
BufferStorage::BufferStorage()
{
updateSerial();
}
BufferStorage::~BufferStorage()
{
}
unsigned int BufferStorage::getSerial() const
{
return mSerial;
}
void BufferStorage::updateSerial()
{
mSerial = mNextSerial++;
}
}