Moves portions of utilities specific to D3D9 to the Renderer's domain

TRAC #21931

Signed-off-by: Daniel Koch

Author:    Shannon Woods

git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1376 736b8ea6-26fd-11df-bfd4-992fa37f6226
diff --git a/src/libGLESv2/renderer/SwapChain.cpp b/src/libGLESv2/renderer/SwapChain.cpp
index 91c669b..c2f6136 100644
--- a/src/libGLESv2/renderer/SwapChain.cpp
+++ b/src/libGLESv2/renderer/SwapChain.cpp
@@ -11,13 +11,14 @@
 
 #include "common/debug.h"
 #include "libGLESv2/utilities.h"
-#include "libGLESv2/renderer/Renderer9.h"   // D3D9_REPLACE

+#include "libGLESv2/renderer/renderer9_utils.h" // D3D9_REPLACE
+#include "libGLESv2/renderer/Renderer9.h"   // D3D9_REPLACE
 #include "libGLESv2/Context.h"
 
 namespace renderer
 {
 
-SwapChain::SwapChain(Renderer9 *renderer, HWND window, HANDLE shareHandle,

+SwapChain::SwapChain(Renderer9 *renderer, HWND window, HANDLE shareHandle,
                      GLenum backBufferFormat, GLenum depthBufferFormat)
     : mRenderer(renderer), mWindow(window), mShareHandle(shareHandle),
       mBackBufferFormat(backBufferFormat), mDepthBufferFormat(depthBufferFormat)
@@ -209,7 +210,7 @@
         //
         // Some non-switchable AMD GPUs / drivers do not respect the source rectangle to Present. Therefore, when the vendor ID
         // is not Intel, the back buffer width must be exactly the same width as the window or horizontal scaling will occur.
-        if (mRenderer->getAdapterVendor() == VENDOR_ID_INTEL)

+        if (mRenderer->getAdapterVendor() == VENDOR_ID_INTEL)
         {
             presentParameters.BackBufferWidth = (presentParameters.BackBufferWidth + 63) / 64 * 64;
         }