summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorapatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-15 01:43:41 +0000
committerapatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-15 01:43:41 +0000
commit6556598eaf9a6a3249f5b965d8410305b6b6f4aa (patch)
treeb82d5af6a220f011a4ca00291f72691053878837 /app
parent661a94a7553e2cfc08e62df05892bb8d8bef0cd6 (diff)
downloadchromium_src-6556598eaf9a6a3249f5b965d8410305b6b6f4aa.zip
chromium_src-6556598eaf9a6a3249f5b965d8410305b6b6f4aa.tar.gz
chromium_src-6556598eaf9a6a3249f5b965d8410305b6b6f4aa.tar.bz2
Revert r77777 (a temporary hack) and roll in the fix from ANGLE (567:571).
I put both in the same patch so I can merge them into m11 atomically. ANGLE revisions: 571 ANGLE depends statically on D3DCompiler_x.dll. 570 Fix NULL dereference for empty constructors. 569 Newlines in multi-line comments don't count as a newline. 568 Improve debug log formatting. TEST=try, check D3DCompiler_42.dll is loaded before the sandbox is turned on. BUG=75349 Review URL: http://codereview.chromium.org/6694008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78145 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'app')
-rw-r--r--app/gfx/gl/gl_context_egl.cc22
1 files changed, 1 insertions, 21 deletions
diff --git a/app/gfx/gl/gl_context_egl.cc b/app/gfx/gl/gl_context_egl.cc
index 2b157dd..a367cd8 100644
--- a/app/gfx/gl/gl_context_egl.cc
+++ b/app/gfx/gl/gl_context_egl.cc
@@ -4,23 +4,15 @@
#include "app/gfx/gl/gl_context_egl.h"
-#include "base/file_path.h"
+#include "build/build_config.h"
#include "base/logging.h"
-#include "base/native_library.h"
-#include "base/path_service.h"
#include "base/scoped_ptr.h"
-#include "build/build_config.h"
#include "third_party/angle/include/EGL/egl.h"
// This header must come after the above third-party include, as
// it brings in #defines that cause conflicts.
#include "app/gfx/gl/gl_bindings.h"
-#if defined(OS_WIN)
-#include <d3d11.h>
-#include <d3dcompiler.h>
-#endif
-
#if defined(OS_LINUX)
extern "C" {
#include <X11/Xlib.h>
@@ -98,18 +90,6 @@ bool BaseEGLContext::InitializeOneOff() {
#else
EGLNativeDisplayType native_display = EGL_DEFAULT_DISPLAY;
#endif
-
-#if defined(OS_WIN)
- FilePath module_path;
- if (!PathService::Get(base::DIR_MODULE, &module_path))
- return false;
-
- if (!base::LoadNativeLibrary(module_path.Append(D3DCOMPILER_DLL))) {
- LOG(ERROR) << "Could not load " << D3DCOMPILER_DLL;
- return false;
- }
-#endif
-
g_display = eglGetDisplay(native_display);
if (!g_display) {
LOG(ERROR) << "eglGetDisplay failed with error " << GetLastEGLErrorString();