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

Unified Diff: ui/gfx/surface/accelerated_surface_win.cc

Issue 8625003: Revert 111040 - Reland 110355 - Use shared D3D9 texture to transport the compositor's backing buf... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 1 month 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
« no previous file with comments | « content/content_common.gypi ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/surface/accelerated_surface_win.cc
===================================================================
--- ui/gfx/surface/accelerated_surface_win.cc (revision 111041)
+++ ui/gfx/surface/accelerated_surface_win.cc (working copy)
@@ -27,14 +27,8 @@
namespace {
-typedef HRESULT (WINAPI *Direct3DCreate9ExFunc)(UINT sdk_version,
- IDirect3D9Ex **d3d);
-
const int64 kPollQueryInterval = 1;
-const wchar_t kD3D9ModuleName[] = L"d3d9.dll";
-const char kCreate3D9DeviceExName[] = "Direct3DCreate9Ex";
-
class QuerySyncThread
: public base::Thread,
public base::RefCounted<QuerySyncThread> {
@@ -336,17 +330,8 @@
HRESULT hr;
- HMODULE module = GetModuleHandle(kD3D9ModuleName);
- if (!module)
- return;
-
- Direct3DCreate9ExFunc create_func = reinterpret_cast<Direct3DCreate9ExFunc>(
- GetProcAddress(module, kCreate3D9DeviceExName));
- if (!create_func)
- return;
-
base::win::ScopedComPtr<IDirect3D9Ex> d3d;
- hr = create_func(D3D_SDK_VERSION, d3d.Receive());
+ hr = Direct3DCreate9Ex(D3D_SDK_VERSION, d3d.Receive());
if (FAILED(hr))
return;
« no previous file with comments | « content/content_common.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698