summaryrefslogtreecommitdiffstats
path: root/content
diff options
context:
space:
mode:
authorcpu@chromium.org <cpu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-18 09:41:15 +0000
committercpu@chromium.org <cpu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-18 09:41:15 +0000
commitdfaefb39a098db8ceae315424d0ab5ae51297b5c (patch)
tree74b535f95bb9c27948acf74ac6aa86bcc65b9582 /content
parent4ad4ce089223e144fb240751ba7a48f7c9064d27 (diff)
downloadchromium_src-dfaefb39a098db8ceae315424d0ab5ae51297b5c.zip
chromium_src-dfaefb39a098db8ceae315424d0ab5ae51297b5c.tar.gz
chromium_src-dfaefb39a098db8ceae315424d0ab5ae51297b5c.tar.bz2
Remove dwm function because it is going away in windows 8.1
I am guessing that this does nothing perf-wise, certainly resize wise I don't observe any improvement wrt to not having it. On the even more speculative angle (pun intended) it might be interfering with flip_ex present experiments. TBR=jam TEST=none BUG=224764 Review URL: https://chromiumcodereview.appspot.com/19114006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@212308 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content')
-rw-r--r--content/browser/renderer_host/render_widget_host_view_win.cc29
1 files changed, 4 insertions, 25 deletions
diff --git a/content/browser/renderer_host/render_widget_host_view_win.cc b/content/browser/renderer_host/render_widget_host_view_win.cc
index 8a32194..757d399 100644
--- a/content/browser/renderer_host/render_widget_host_view_win.cc
+++ b/content/browser/renderer_host/render_widget_host_view_win.cc
@@ -4,7 +4,6 @@
#include "content/browser/renderer_host/render_widget_host_view_win.h"
-#include <dwmapi.h>
#include <InputScope.h>
#include <wtsapi32.h>
#pragma comment(lib, "wtsapi32.lib")
@@ -332,22 +331,6 @@ void GetScreenInfoForWindow(gfx::NativeViewId id,
*results = screen_info;
}
-void SetDwmPresentParameters(HWND window) {
- if (base::win::GetVersion() >= base::win::VERSION_VISTA) {
- BOOL is_composited;
- HRESULT result = DwmIsCompositionEnabled(&is_composited);
- if (SUCCEEDED(result) && is_composited) {
- DWM_PRESENT_PARAMETERS present_parameters = {0};
- present_parameters.cbSize = sizeof(present_parameters);
- present_parameters.cBuffer = 2;
-
- result = DwmSetPresentParameters(window, &present_parameters);
- if (FAILED(result))
- DLOG(ERROR) << "Unable to set present parameters: 0x%08X", result;
- }
- }
-}
-
} // namespace
const wchar_t kRenderWidgetHostHWNDClass[] = L"Chrome_RenderWidgetHostHWND";
@@ -1244,7 +1227,6 @@ LRESULT RenderWidgetHostViewWin::OnCreate(CREATESTRUCT* create_struct) {
props_.push_back(ui::SetWindowSupportsRerouteMouseWheel(m_hWnd));
WTSRegisterSessionNotification(m_hWnd, NOTIFY_FOR_THIS_SESSION);
- SetDwmPresentParameters(m_hWnd);
UpdateDesiredTouchMode();
UpdateIMEState();
@@ -2582,19 +2564,16 @@ gfx::GLSurfaceHandle RenderWidgetHostViewWin::GetCompositingSurface() {
static_cast<int>(currentRect.bottom - currentRect.top));
compositor_host_window_ = CreateWindowEx(
- WS_EX_LEFT | WS_EX_LTRREADING | WS_EX_RIGHTSCROLLBAR,
- MAKEINTATOM(atom), 0,
- WS_CHILD | WS_CLIPCHILDREN | WS_CLIPSIBLINGS | WS_DISABLED,
- 0, 0, width, height, m_hWnd, 0, instance, 0);
+ WS_EX_LEFT | WS_EX_LTRREADING | WS_EX_RIGHTSCROLLBAR,
+ MAKEINTATOM(atom), 0,
+ WS_CHILD | WS_CLIPCHILDREN | WS_CLIPSIBLINGS | WS_DISABLED,
+ 0, 0, width, height, m_hWnd, 0, instance, 0);
ui::CheckWindowCreated(compositor_host_window_);
ui::SetWindowUserData(compositor_host_window_, this);
- SetDwmPresentParameters(compositor_host_window_);
-
gfx::GLSurfaceHandle surface_handle(compositor_host_window_,
gfx::NATIVE_TRANSPORT);
-
return surface_handle;
}