Commit b66a7015 by apatrick@chromium.org

Moved RefCountObject to common so it can be used by libEGL.

Review URL: https://codereview.appspot.com/5557064 git-svn-id: https://angleproject.googlecode.com/svn/trunk@956 736b8ea6-26fd-11df-bfd4-992fa37f6226
parent 551022eb
...@@ -169,6 +169,8 @@ ...@@ -169,6 +169,8 @@
'common/angleutils.h', 'common/angleutils.h',
'common/debug.cpp', 'common/debug.cpp',
'common/debug.h', 'common/debug.h',
'common/RefCountObject.cpp',
'common/RefCountObject.h',
'common/version.h', 'common/version.h',
'libGLESv2/IndexDataManager.cpp', 'libGLESv2/IndexDataManager.cpp',
'libGLESv2/IndexDataManager.h', 'libGLESv2/IndexDataManager.h',
...@@ -197,8 +199,6 @@ ...@@ -197,8 +199,6 @@
'libGLESv2/Program.h', 'libGLESv2/Program.h',
'libGLESv2/Query.h', 'libGLESv2/Query.h',
'libGLESv2/Query.cpp', 'libGLESv2/Query.cpp',
'libGLESv2/RefCountObject.cpp',
'libGLESv2/RefCountObject.h',
'libGLESv2/Renderbuffer.cpp', 'libGLESv2/Renderbuffer.cpp',
'libGLESv2/Renderbuffer.h', 'libGLESv2/Renderbuffer.h',
'libGLESv2/ResourceManager.cpp', 'libGLESv2/ResourceManager.cpp',
...@@ -233,6 +233,8 @@ ...@@ -233,6 +233,8 @@
'common/angleutils.h', 'common/angleutils.h',
'common/debug.cpp', 'common/debug.cpp',
'common/debug.h', 'common/debug.h',
'common/RefCountObject.cpp',
'common/RefCountObject.h',
'common/version.h', 'common/version.h',
'libEGL/Config.cpp', 'libEGL/Config.cpp',
'libEGL/Config.h', 'libEGL/Config.h',
......
...@@ -11,9 +11,6 @@ ...@@ -11,9 +11,6 @@
#include "RefCountObject.h" #include "RefCountObject.h"
namespace gl
{
RefCountObject::RefCountObject(GLuint id) RefCountObject::RefCountObject(GLuint id)
{ {
mId = id; mId = id;
...@@ -48,5 +45,3 @@ void RefCountObjectBindingPointer::set(RefCountObject *newObject) ...@@ -48,5 +45,3 @@ void RefCountObjectBindingPointer::set(RefCountObject *newObject)
mObject = newObject; mObject = newObject;
} }
}
...@@ -9,8 +9,8 @@ ...@@ -9,8 +9,8 @@
// that need to be reference counted for correct cross-context deletion. // that need to be reference counted for correct cross-context deletion.
// (Concretely, textures, buffers and renderbuffers.) // (Concretely, textures, buffers and renderbuffers.)
#ifndef LIBGLESV2_REFCOUNTOBJECT_H_ #ifndef COMMON_REFCOUNTOBJECT_H_
#define LIBGLESV2_REFCOUNTOBJECT_H_ #define COMMON_REFCOUNTOBJECT_H_
#include <cstddef> #include <cstddef>
...@@ -19,9 +19,6 @@ ...@@ -19,9 +19,6 @@
#include "common/debug.h" #include "common/debug.h"
namespace gl
{
class RefCountObject class RefCountObject
{ {
public: public:
...@@ -65,6 +62,4 @@ class BindingPointer : public RefCountObjectBindingPointer ...@@ -65,6 +62,4 @@ class BindingPointer : public RefCountObjectBindingPointer
ObjectType *operator -> () const { return get(); } ObjectType *operator -> () const { return get(); }
}; };
} #endif // COMMON_REFCOUNTOBJECT_H_
#endif // LIBGLESV2_REFCOUNTOBJECT_H_
#define MAJOR_VERSION 1 #define MAJOR_VERSION 1
#define MINOR_VERSION 0 #define MINOR_VERSION 0
#define BUILD_VERSION 0 #define BUILD_VERSION 0
#define BUILD_REVISION 955 #define BUILD_REVISION 956
#define STRINGIFY(x) #x #define STRINGIFY(x) #x
#define MACRO_STRINGIFY(x) STRINGIFY(x) #define MACRO_STRINGIFY(x) STRINGIFY(x)
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
#include <GLES2/gl2.h> #include <GLES2/gl2.h>
#include "common/angleutils.h" #include "common/angleutils.h"
#include "libGLESv2/RefCountObject.h" #include "common/RefCountObject.h"
namespace gl namespace gl
{ {
......
...@@ -21,9 +21,9 @@ ...@@ -21,9 +21,9 @@
#include <hash_map> #include <hash_map>
#include "common/angleutils.h" #include "common/angleutils.h"
#include "common/RefCountObject.h"
#include "libGLESv2/ResourceManager.h" #include "libGLESv2/ResourceManager.h"
#include "libGLESv2/HandleAllocator.h" #include "libGLESv2/HandleAllocator.h"
#include "libGLESv2/RefCountObject.h"
namespace egl namespace egl
{ {
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
#include <d3d9.h> #include <d3d9.h>
#include "common/angleutils.h" #include "common/angleutils.h"
#include "libGLESv2/RefCountObject.h" #include "common/RefCountObject.h"
namespace gl namespace gl
{ {
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
#include <d3d9.h> #include <d3d9.h>
#include "common/angleutils.h" #include "common/angleutils.h"
#include "libGLESv2/RefCountObject.h" #include "common/RefCountObject.h"
namespace gl namespace gl
{ {
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
#include <d3d9.h> #include <d3d9.h>
#include "common/angleutils.h" #include "common/angleutils.h"
#include "libGLESv2/RefCountObject.h" #include "common/RefCountObject.h"
namespace gl namespace gl
{ {
......
...@@ -17,10 +17,10 @@ ...@@ -17,10 +17,10 @@
#include <GLES2/gl2.h> #include <GLES2/gl2.h>
#include <d3d9.h> #include <d3d9.h>
#include "common/debug.h"
#include "common/RefCountObject.h"
#include "libGLESv2/Renderbuffer.h" #include "libGLESv2/Renderbuffer.h"
#include "libGLESv2/RefCountObject.h"
#include "libGLESv2/utilities.h" #include "libGLESv2/utilities.h"
#include "common/debug.h"
namespace egl namespace egl
{ {
......
...@@ -397,7 +397,7 @@ ...@@ -397,7 +397,7 @@
> >
</File> </File>
<File <File
RelativePath=".\RefCountObject.cpp" RelativePath="..\common\RefCountObject.cpp"
> >
</File> </File>
<File <File
...@@ -487,7 +487,7 @@ ...@@ -487,7 +487,7 @@
> >
</File> </File>
<File <File
RelativePath=".\RefCountObject.h" RelativePath="..\common\RefCountObject.h"
> >
</File> </File>
<File <File
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment