Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2374)

Unified Diff: Source/platform/graphics/angle/ANGLEPlatformBridge.cpp

Issue 25825003: Move ANGLEWebKitBridge to platform/graphics/angle/ANGLEPlatformBridge. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/platform/graphics/angle/ANGLEPlatformBridge.cpp
diff --git a/Source/core/platform/graphics/ANGLEWebKitBridge.cpp b/Source/platform/graphics/angle/ANGLEPlatformBridge.cpp
similarity index 93%
rename from Source/core/platform/graphics/ANGLEWebKitBridge.cpp
rename to Source/platform/graphics/angle/ANGLEPlatformBridge.cpp
index 4b5021d13824762b3576037d2afa4b674ff3a771..c0eb763042255db261049beedfc433912b1d8c8d 100644
--- a/Source/core/platform/graphics/ANGLEWebKitBridge.cpp
+++ b/Source/platform/graphics/angle/ANGLEPlatformBridge.cpp
@@ -25,7 +25,8 @@
#include "config.h"
-#include "core/platform/graphics/ANGLEWebKitBridge.h"
+#include "platform/graphics/angle/ANGLEPlatformBridge.h"
+
#include "wtf/OwnArrayPtr.h"
namespace WebCore {
@@ -132,7 +133,7 @@ static bool getSymbolInfo(ShHandle compiler, ShShaderInfo symbolType, Vector<ANG
return true;
}
-ANGLEWebKitBridge::ANGLEWebKitBridge(ShShaderOutput shaderOutput, ShShaderSpec shaderSpec)
+ANGLEPlatformBridge::ANGLEPlatformBridge(ShShaderOutput shaderOutput, ShShaderSpec shaderSpec)
: builtCompilers(false)
, m_fragmentCompiler(0)
, m_vertexCompiler(0)
@@ -143,12 +144,12 @@ ANGLEWebKitBridge::ANGLEWebKitBridge(ShShaderOutput shaderOutput, ShShaderSpec s
ShInitialize();
}
-ANGLEWebKitBridge::~ANGLEWebKitBridge()
+ANGLEPlatformBridge::~ANGLEPlatformBridge()
{
cleanupCompilers();
}
-void ANGLEWebKitBridge::cleanupCompilers()
+void ANGLEPlatformBridge::cleanupCompilers()
{
if (m_fragmentCompiler)
ShDestruct(m_fragmentCompiler);
@@ -160,7 +161,7 @@ void ANGLEWebKitBridge::cleanupCompilers()
builtCompilers = false;
}
-void ANGLEWebKitBridge::setResources(ShBuiltInResources resources)
+void ANGLEPlatformBridge::setResources(ShBuiltInResources resources)
{
// Resources are (possibly) changing - cleanup compilers if we had them already
cleanupCompilers();
@@ -168,7 +169,7 @@ void ANGLEWebKitBridge::setResources(ShBuiltInResources resources)
m_resources = resources;
}
-bool ANGLEWebKitBridge::compileShaderSource(const char* shaderSource, ANGLEShaderType shaderType, String& translatedShaderSource, String& shaderValidationLog, Vector<ANGLEShaderSymbol>& symbols, int extraCompileOptions)
+bool ANGLEPlatformBridge::compileShaderSource(const char* shaderSource, ANGLEShaderType shaderType, String& translatedShaderSource, String& shaderValidationLog, Vector<ANGLEShaderSymbol>& symbols, int extraCompileOptions)
{
if (!builtCompilers) {
m_fragmentCompiler = ShConstructCompiler(SH_FRAGMENT_SHADER, m_shaderSpec, m_shaderOutput, &m_resources);
« Source/platform/blink_platform.gyp ('K') | « Source/platform/graphics/angle/ANGLEPlatformBridge.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698