Rename renderer namespace to rx

Trac #21999
Author: Shannon Woods
Signed-off-by: Daniel Koch

git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1379 736b8ea6-26fd-11df-bfd4-992fa37f6226
diff --git a/src/libGLESv2/renderer/Renderer.h b/src/libGLESv2/renderer/Renderer.h
index 493c3ea..8f3c847 100644
--- a/src/libGLESv2/renderer/Renderer.h
+++ b/src/libGLESv2/renderer/Renderer.h
@@ -37,7 +37,7 @@
 class Display;
 }
 
-namespace renderer
+namespace rx
 {
 
 struct ConfigDesc
diff --git a/src/libGLESv2/renderer/Renderer9.cpp b/src/libGLESv2/renderer/Renderer9.cpp
index cda0256..c34befb 100644
--- a/src/libGLESv2/renderer/Renderer9.cpp
+++ b/src/libGLESv2/renderer/Renderer9.cpp
@@ -27,7 +27,7 @@
 #define ANGLE_ENABLE_D3D9EX 1
 #endif // !defined(ANGLE_ENABLE_D3D9EX)
 
-namespace renderer
+namespace rx
 {
 const D3DFORMAT Renderer9::mRenderTargetFormats[] =
     {
diff --git a/src/libGLESv2/renderer/Renderer9.h b/src/libGLESv2/renderer/Renderer9.h
index 63d659a..ce262b2 100644
--- a/src/libGLESv2/renderer/Renderer9.h
+++ b/src/libGLESv2/renderer/Renderer9.h
@@ -26,7 +26,7 @@
 #include "libGLESv2/renderer/ShaderCache.h"
 #include "libGLESv2/renderer/Renderer.h"
 
-namespace renderer
+namespace rx
 {
 
 class Renderer9 : public Renderer
diff --git a/src/libGLESv2/renderer/ShaderCache.h b/src/libGLESv2/renderer/ShaderCache.h
index 4aad88f..93d7267 100644
--- a/src/libGLESv2/renderer/ShaderCache.h
+++ b/src/libGLESv2/renderer/ShaderCache.h
@@ -4,7 +4,7 @@
 // found in the LICENSE file.
 //
 
-// ShaderCache: Defines renderer::ShaderCache, a cache of Direct3D shader objects
+// ShaderCache: Defines rx::ShaderCache, a cache of Direct3D shader objects
 // keyed by their byte code.
 
 #ifndef LIBGLESV2_RENDERER_SHADER_CACHE_H_
@@ -20,7 +20,7 @@
 
 #include "common/debug.h"
 
-namespace renderer
+namespace rx
 {
 template <typename ShaderObject>
 class ShaderCache
diff --git a/src/libGLESv2/renderer/SwapChain.cpp b/src/libGLESv2/renderer/SwapChain.cpp
index c2f6136..8f1ed98 100644
--- a/src/libGLESv2/renderer/SwapChain.cpp
+++ b/src/libGLESv2/renderer/SwapChain.cpp
@@ -15,7 +15,7 @@
 #include "libGLESv2/renderer/Renderer9.h"   // D3D9_REPLACE
 #include "libGLESv2/Context.h"
 
-namespace renderer
+namespace rx
 {
 
 SwapChain::SwapChain(Renderer9 *renderer, HWND window, HANDLE shareHandle,
diff --git a/src/libGLESv2/renderer/SwapChain.h b/src/libGLESv2/renderer/SwapChain.h
index e106ca2..acc4fbe 100644
--- a/src/libGLESv2/renderer/SwapChain.h
+++ b/src/libGLESv2/renderer/SwapChain.h
@@ -16,18 +16,18 @@
 #define EGLAPI
 #include <EGL/egl.h>
 
-#include <d3d9.h>  // D3D9_REPLACE

+#include <d3d9.h>  // D3D9_REPLACE
 
-#include "common/angleutils.h"

+#include "common/angleutils.h"
 
-namespace renderer
+namespace rx
 {
-class Renderer9;   // D3D9_REPLACE

+class Renderer9;   // D3D9_REPLACE
 
 class SwapChain
 {
   public:
-    SwapChain(Renderer9 *renderer, HWND window, HANDLE shareHandle,

+    SwapChain(Renderer9 *renderer, HWND window, HANDLE shareHandle,
               GLenum backBufferFormat, GLenum depthBufferFormat);
     virtual ~SwapChain();
 
@@ -45,7 +45,7 @@
 
     void release();
 
-    Renderer9 *mRenderer;   // D3D9_REPLACE

+    Renderer9 *mRenderer;   // D3D9_REPLACE
     EGLint mHeight;
     EGLint mWidth;
 
diff --git a/src/libGLESv2/renderer/TextureStorage.cpp b/src/libGLESv2/renderer/TextureStorage.cpp
index 7b53fb0..3724afa 100644
--- a/src/libGLESv2/renderer/TextureStorage.cpp
+++ b/src/libGLESv2/renderer/TextureStorage.cpp
@@ -172,7 +172,7 @@
     if (source && dest)
     {
         HRESULT result = D3DERR_OUTOFVIDEOMEMORY;
-        renderer::Renderer9 *renderer = getDisplay()->getRenderer9();
+        rx::Renderer9 *renderer = getDisplay()->getRenderer9();
         IDirect3DDevice9 *device = renderer->getDevice(); // D3D9_REPLACE
 
         if (fromManaged)
@@ -206,7 +206,7 @@
     return true;
 } 
 
-TextureStorage2D::TextureStorage2D(renderer::SwapChain *swapchain) : TextureStorage(D3DUSAGE_RENDERTARGET), mRenderTargetSerial(RenderbufferStorage::issueSerial())
+TextureStorage2D::TextureStorage2D(rx::SwapChain *swapchain) : TextureStorage(D3DUSAGE_RENDERTARGET), mRenderTargetSerial(RenderbufferStorage::issueSerial())
 {
     IDirect3DTexture9 *surfaceTexture = swapchain->getOffscreenTexture();
     mTexture = surfaceTexture;
diff --git a/src/libGLESv2/renderer/TextureStorage.h b/src/libGLESv2/renderer/TextureStorage.h
index 2b0edae..f2a3205 100644
--- a/src/libGLESv2/renderer/TextureStorage.h
+++ b/src/libGLESv2/renderer/TextureStorage.h
@@ -17,7 +17,7 @@
 
 #include "common/debug.h"
 
-namespace renderer
+namespace rx
 {
 class SwapChain;
 }
@@ -68,7 +68,7 @@
 class TextureStorage2D : public TextureStorage
 {
   public:
-    explicit TextureStorage2D(renderer::SwapChain *swapchain);
+    explicit TextureStorage2D(rx::SwapChain *swapchain);
     TextureStorage2D(int levels, GLenum internalformat, GLenum usage, bool forceRenderable, GLsizei width, GLsizei height);
 
     virtual ~TextureStorage2D();