Commit 2ddf6e09 authored by jbauman@chromium.org's avatar jbauman@chromium.org

Revert 149083 - Add command-line option to have an extra delay before blitting.

This may help in tracking down any synchronization issues.


BUG=135546


Review URL: https://chromiumcodereview.appspot.com/10836018

TBR=jbauman@chromium.org

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@149686 0039d316-1c4b-4281-b951-d872f2087c98
parent feb2298b
...@@ -36,7 +36,6 @@ typedef HRESULT (WINAPI *Direct3DCreate9ExFunc)(UINT sdk_version, ...@@ -36,7 +36,6 @@ typedef HRESULT (WINAPI *Direct3DCreate9ExFunc)(UINT sdk_version,
const wchar_t kD3D9ModuleName[] = L"d3d9.dll"; const wchar_t kD3D9ModuleName[] = L"d3d9.dll";
const char kCreate3D9DeviceExName[] = "Direct3DCreate9Ex"; const char kCreate3D9DeviceExName[] = "Direct3DCreate9Ex";
const char kGpuBlitDelay[] = "gpu-blit-delay";
const char kUseOcclusionQuery[] = "use-occlusion-query"; const char kUseOcclusionQuery[] = "use-occlusion-query";
struct Vertex { struct Vertex {
...@@ -672,16 +671,6 @@ static base::TimeDelta GetSwapDelay() { ...@@ -672,16 +671,6 @@ static base::TimeDelta GetSwapDelay() {
return base::TimeDelta::FromMilliseconds(delay); return base::TimeDelta::FromMilliseconds(delay);
} }
static base::TimeDelta GetBlitDelay() {
CommandLine* cmd_line = CommandLine::ForCurrentProcess();
int delay = 0;
if (cmd_line->HasSwitch(kGpuBlitDelay)) {
base::StringToInt(cmd_line->GetSwitchValueNative(
kGpuBlitDelay).c_str(), &delay);
}
return base::TimeDelta::FromMilliseconds(delay);
}
void AcceleratedPresenter::DoPresentAndAcknowledge( void AcceleratedPresenter::DoPresentAndAcknowledge(
const gfx::Size& size, const gfx::Size& size,
int64 surface_handle, int64 surface_handle,
...@@ -783,10 +772,6 @@ void AcceleratedPresenter::DoPresentAndAcknowledge( ...@@ -783,10 +772,6 @@ void AcceleratedPresenter::DoPresentAndAcknowledge(
size.width(), size.height() size.width(), size.height()
}; };
static const base::TimeDelta blit_delay = GetBlitDelay();
if (blit_delay.ToInternalValue())
base::PlatformThread::Sleep(blit_delay);
{ {
TRACE_EVENT0("gpu", "Copy"); TRACE_EVENT0("gpu", "Copy");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment